月度归档: 2021 年 6 月

2 篇文章

pandas基础学习
import pandas as pd data1 = [1,2,3,4,5] s = pd.Series(data1) s 0 1 1 2 2 3 3 4 4 5 dtype: int64 s2 = pd.Series(data1,index = ['a','b','d','g','f']) s2 #自定义索引 a 1 b 2 d 3 g 4 f…
numpy基础练习
import numpy as np #导入 numpy 包 data1 = [1,2,3,4,5] array1 = np.array(data1) array1 array([1, 2, 3, 4, 5]) data2 = [[1,3,5],[2,4,6]] array2 = np.array(data2) array2 array([[1, …