Python中的Display()

介绍

本文介绍了Python中的Display()的处理方法

NameError:未定义名称’display’

data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])

推荐答案

display 是 IPython.display 模块,该模块运行适当的dunder方法以获取适当的数据以显示。如果您真的要运行它

from IPython.display import display
import pandas as pd
data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])
display(data.head(10))

同时需要安装第三方库 display Pandas

------本页内容已结束,喜欢请分享------

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容