摘要:
from pandas import Series; #定义,可以混合定义 x = Series(['a', True, 1], index=['first', 'second', 'third']); x = Series(['a', True, 1]); #追加一个序列 n = Series([ 阅读全文
摘要:
from pandas import DataFrame; df = DataFrame(data={ 'age': [21, 22, 23], 'name': ['KEN', 'John', 'JIMI'] }, index=['1', '2', '3']); 查看: df 使用右键选择“edit 阅读全文