摘要: df_obj = DataFrame() #创建DataFrame对象df_obj.dtypes #查看各行的数据格式df_obj['列名'].astype(int)#转换某列的数据类型df_obj.head() #查看前几行的数据,默认前5行df_obj.tail() #查看后几行的数据,默认后5 阅读全文
posted @ 2021-12-01 17:17 faithtwo 阅读(567) 评论(0) 推荐(0)
摘要: pandas.DataFrame.groupby() ,反悔的结果是一个Key,value的 新的Dataframe Parameters: by : mapping function / list of functions, dict, Series, or tuple / list of col 阅读全文
posted @ 2021-12-01 16:04 faithtwo 阅读(71) 评论(0) 推荐(0)