![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python基础
AI小菜鸟
这个作者很懒,什么都没留下…
展开
-
python基础之numpy
In[1]:import numpy as np #为了方便使用numpy 采用np简写In[2]:array = np.array([[1,2,3],[2,3,4]]) #列表转化为矩阵 print(array) “”” array([[1, 2, 3], [2, 3, 4]]) “”“In[3]:print(‘number of dim:’,array.ndim) #原创 2017-07-20 16:37:50 · 468 阅读 · 0 评论 -
python基础之pandas
coding: utf-8In[3]:Series的 创建:import pandas as pd import numpy as np s = pd.Series([1,3,6,np.nan,44,1])#NaN(not a number),在数学表示上表示一个无法表示的数print(s) “”” 0 1.0 1 3.0 2 6.0 3 NaN 4原创 2017-07-21 16:42:35 · 370 阅读 · 0 评论