我正在在线学习称为leanpython.org的本教程,并且正在关注有关pandas数据框的教程。我在下面运行了代码,并且在他们网站上的代码编辑器中运行良好,但是当我在文本编辑器(Brackets)上运行它时,它不起作用。代码是否错误?还是网站刚刚过期?
import pandas as pd
dict = { "word": ["hi", "bye", "apple", "orange", "tree", "google"], "numOfLetters": ["2", "3", "5", "6", "4", "6"]}
brics = pd.DataFrame(dict)
print(brics)