keep-loving-pythonのブログ

Pythonを愛し続けたいです(Pythonが流行っている限りですが。。。)

jupyter nbconvert --to python で、pyファイルにして実行したときのエラーで無条件にコメントアウトして問題なかった行。(2個)

jupyter nbconvert --to python で、pyファイルにして実行したときのエラーで無条件にコメントアウトして問題なかった行。

無条件にコメントアウトして問題なかった行

-- d --

display

display(df.iloc[(one_indexes[0]-3):(one_indexes[0]+2), 0:5].head(n=5))

↓ printにするのが良い。

print(df.iloc[(one_indexes[0]-3):(one_indexes[0]+2), 0:5].head(n=5))

-- g --

get_ipython

get_ipython().run_line_magic('matplotlib', 'inline')

コメント

順次たします。
しかし、珍しいのは、10回に1回も出会わないはず。
「display⇒print」が示されていた。。。過去の自分に拍手。。。。