Python数据分析:pandas数据读取、预处理、筛选、计算,时间序列、透视、拼接、导出.pdfVIP

  • 1
  • 0
  • 约1.47万字
  • 约 8页
  • 2023-09-17 发布于上海
  • 举报

Python数据分析:pandas数据读取、预处理、筛选、计算,时间序列、透视、拼接、导出.pdf

Python数据分析:pandas数据读取、预处理、筛选、计算,时间 序列、透视、拼接、导出 ⼀、Pandas数据结构 查找某个包 anaconda search -t conda tensorflow 下载某个包 anaconda show package data={‘⼩写’:[‘a’,’b’,’c’],’⼤写’:[‘A’,’B’,’C’]} 传⼊字典 Df=Pd.DataFrame(data) Df.index() df.columns() 建⽴分层索引的dataframe:pd.MultiIndex.from_arrays([[,,]],name=[,,]) ⼆、读取数据⼆、读取数据⼆、读取数据⼆、读取数据 index_col指定⾏索引,header指定列索引index_col指定⾏索引,header指定列索引index_col指定⾏索引,header指定列索引 df.head(2) 展⽰前两⾏,默认展⽰前5⾏ df.shape 显⽰数据⼏⾏⼏列,不包含⾏和列索引 ()可查看表中数据的类型 df.describe() 可获得表中数值类型指端的分布值(和、平均值、⽅差等) 三、数据预处理 多个Series合并成DataFra

文档评论(0)

1亿VIP精品文档

相关文档