Twitter-Pandas,第一版

Thanks to some great help from contributors, we’ve just pushed the first release of twitter pandas, v0.0.1.

多亏了贡献者的大力帮助,我们才推出了Twitter熊猫v0.0.1的第一版。

The first release is aimed at replicating the data-providing (no create/update/delete functions) from the tweepy API with the git-pandas style pandas interface.

第一个发行版旨在使用git-pandas样式pandas接口从tweepy API复制提供数据的数据(不创建/更新/删除功能)。

To install twitterpandas, just use pip

要安装twitterpandas,只需使用pip

pip install twitterpandas

And then you can use it right away:

然后您可以立即使用它:

from twitterpandas import TwitterPandas

# create a twitter pandas client object
tp = TwitterPandas(
    TWITTER_OAUTH_TOKEN,
    TWITTER_OAUTH_SECRET,
    TWITTER_CONSUMER_KEY,
    TWITTER_CONSUMER_SECRET
)

# create a dataframe with 10 of my own followers
df = tp.followers(limit=10)
print(df.head())

# create a dataframe with my own information
df = tp.me()
print(df)

# get a dataframe with the information of user willmcginnis
df = tp.get_user(screen_name='willmcginnis')
print(df)

# get back 10 users who match the query willmcginnis
df = tp.search_users(query='willmcginnis', limit=10)
print(df)

In the next release the focus will be on documentation, stabilization, clarity, and testing.  Following that, higher-level helper functions for common analytic tasks will be tackled.

在下一个版本中,重点将放在文档,稳定性,清晰度和测试上。 之后,将解决用于常见分析任务的更高级别的辅助功能。

So head over to github and check it out, help us out, or just use it and let us know what you think.

因此,请转到github并进行检查,帮助我们或只是使用它,让我们知道您的想法。

翻译自: https://www.pybloggers.com/2016/07/twitter-pandas-first-release/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值