摘要:
import numpy as np import pandas as pd s = pd.Series([12,-4,4,8]) s Out[4]: 0 12 1 -4 2 4 3 8 dtype: int64 s = pd.Series([12,-4,4,8],index=['a','b','c','d']) s Out[6]: a 12 b ... 阅读全文
摘要:
import numpy as np A = np.array([(1,'First',0.5,1+2j),(2,'Second',1.5,1+3j),(3,'Third',0.8,1-2j)],dtype=('i2,a6,f4,c8')) A Out[3]: array([(1, b'First', 0.5 , 1.+2.j), (2, b'Second',... 阅读全文