![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pandas
盾时想打你
这个作者很懒,什么都没留下…
展开
-
pandas - 02 - 索引 - part1
索引 单级索引 1.loc方法、iloc方法、[]操作符 loc方法 通过索引访问 (注意:所有在loc中使用的切片全部包含右端点! 单行索引 df.loc[1103] 返回第1103row 多行索引 df.loc[[1102,2304]] 返回第1102,2304row df.loc[1304:].head() 返回从1304到最后一row df.loc[2402::-1].head() df行...原创 2020-04-23 23:27:37 · 354 阅读 · 0 评论 -
pandas - 01
数据结构 - DataFrame 长得有点像与其说是2-d array,不如说像relation,有attribute(cols) 和examples(rows)。或者直接说是不知class feature的,有features的不同instance。 import pandas as pd # transform dictionary to dataframe data = {'Name': [...原创 2020-04-20 23:24:53 · 109 阅读 · 0 评论