定义
Pandas是基于Numpy的一种工具,目的是解决数据分析任务。...print('df[0:3]:\n', df[0:3])
# 按标签选择
print(df.loc[dates[0]])
print(df.loc[:,['A','B']])
print('获取某一个特定值...:\n', df.at[dates[0], 'A'])
# 通过位置选择
print('获取每个特定位置的值:\n', df.iloc[3])
print('切片操作:\n', df.iloc[3:5,...:\n', dataFrame['Age'].cumprod())
# 统计信息摘要
print('describe:\n', dataFrame.describe(include='all'))
"...# 2、upper() 将Series/Index中的字符串转换为大写。
# 3、len() 计算字符串长度。
# 4、strip() 帮助从两侧的系列/索引中的每个字符串中删除空格(包括换行符)。