摘要: from pandas import Series; #定义,可以混合定义 x = Series(['a', True, 1], index=['first', 'second', 'third']); x = Series(['a', True, 1]); #追加一个序列 n = Series([ 阅读全文
posted @ 2020-07-01 22:44 topass123 阅读(113) 评论(0) 推荐(0) 编辑
摘要: from pandas import DataFrame; df = DataFrame(data={ 'age': [21, 22, 23], 'name': ['KEN', 'John', 'JIMI'] }, index=['1', '2', '3']); 查看: df 使用右键选择“edit 阅读全文
posted @ 2020-07-01 22:23 topass123 阅读(120) 评论(0) 推荐(0) 编辑