上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: END 阅读全文
posted @ 2019-02-26 19:20 YangZhaonan 阅读(382) 评论(0) 推荐(0) 编辑
摘要: concatenating join, ('inner', 'outer') join_axes append END 阅读全文
posted @ 2019-02-26 14:56 YangZhaonan 阅读(450) 评论(0) 推荐(0) 编辑
摘要: Series 构造1列数据,data.plot() DataFrame 构造4列数据,data.plot() data.plot.scatter(x='A', y='C') END 阅读全文
posted @ 2019-02-26 14:55 YangZhaonan 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 以下是所有的输出结果: END 阅读全文
posted @ 2019-02-26 14:55 YangZhaonan 阅读(302) 评论(0) 推荐(0) 编辑
摘要: ` pd.Series() 构造数据 pd.date_range() 生成数据 pd.DataFrame() 构造数据 pd.DataFrame() 构造数据 pd.DataFrame() 构造数据 属性 df2.dtypes df2.index df2.columns df2.values df2 阅读全文
posted @ 2019-02-26 14:55 YangZhaonan 阅读(211) 评论(0) 推荐(0) 编辑
摘要: "官网The pandas I/O API" pickle格式是python自带的 END 阅读全文
posted @ 2019-02-26 14:55 YangZhaonan 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 赋值,新增列数据 df.iloc[2,2], df.loc['2013 01 03', 'D'] df.A[df.A 0], df['F'] 以下是所有的运行结果: END 阅读全文
posted @ 2019-02-26 14:55 YangZhaonan 阅读(125) 评论(0) 推荐(0) 编辑
摘要: select by label: loc 属性值 select by position: iloc 属性编号 mixed selection: ix 标签值+标签标号 Boolean indexing 布尔 下面是所有的输出结果: END 阅读全文
posted @ 2019-02-26 14:55 YangZhaonan 阅读(289) 评论(0) 推荐(0) 编辑
摘要: pd.merge( df1, df2, on=['key1', 'key2'], left_index=True, right_index=True, how=['left', 'right', 'outer', 'inner'], indicator='indicator_column', suf 阅读全文
posted @ 2019-02-26 14:29 YangZhaonan 阅读(637) 评论(0) 推荐(0) 编辑
摘要: np.set_printoptions(precision=3),只显示小数点后三位 How to extract a particular column from 1D array of tuples? How to convert a 1d array of tuples to a 2d num 阅读全文
posted @ 2019-02-25 19:05 YangZhaonan 阅读(397) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页