>>> pd.pivot( index=np.array(['one', 'one', 'one', 'two', 'two', 'two']), columns=np.array(['A', 'B', 'C', 'A', 'B', 'C']), values=np.array([1,2,3,4,5,6])) out: A B C one 1 2 3 two 4 5 6 >>> df out: A B C D 0 foo one small 1 1 foo one la…
Python数据分析库pandas基本操作2017年02月20日 17:09:06 birdlove1987 阅读数:22631 标签: python 数据分析 pandas 更多 个人分类: Python第三方库 所属专栏: python第三方库 pandas是什么? 是它吗?....很显然pandas没有这个家伙那么可爱....我们来看看pandas的官网是怎么来定义自己的:pandas is an open source, easy-to-use data structures and d…