随笔分类 -  Pandas

Pandas的基本操作使用教程
摘要:基本的统计方法 Method Description count Number of non-NA values describe Compute set of summary statistics for Series or each DataFrame column min,max Comput 阅读全文
posted @ 2022-01-24 16:38 溪奇的数据 阅读(229) 评论(0) 推荐(0)
摘要:Pandas继承了Numpy的运算功能,可以快速对每个元素进行运算,即包括基本运算(加减乘除等),也包括复杂运算(三角函数、指数函数和对数函数等)。 通用函数使用 apply和applymap apply(func,axis=0,broadcast=None,raw=False,reduce=Non 阅读全文
posted @ 2022-01-24 16:28 溪奇的数据 阅读(304) 评论(0) 推荐(0)
摘要:Series和DataFrame对象与Numpy数组和标准Python字典的数据索引和选择模式一样。 字典形式选择和索引 Series In [1]: import pandas as pd In [2]: data = pd.Series([0.25,0.5,0.75,1.0],index=['a 阅读全文
posted @ 2022-01-24 15:53 溪奇的数据 阅读(83) 评论(0) 推荐(0)
摘要:Pandas是Python的一个扩展程序库,是在Numpy基础上建立的,提供高性能、易使用的数据结构和数据分析工具。 Pandas 可以从各种文件格式比如 CSV、JSON、SQL、Excel 等中导入数据; Pandas 可以对各种数据进行运算操作,比如归并、再成形、选择,还有数据清洗和数据加工特 阅读全文
posted @ 2022-01-24 15:27 溪奇的数据 阅读(592) 评论(0) 推荐(0)