- 博客(3)
- 收藏
- 关注
原创 机器学习笔记——pandas
文章目录一.Pandas基本介绍创建序列1.Series2.DataFrame3.DataFrame的简单运用二.Pandas选择数据一.Pandas基本介绍Pandas一般搭配Numpy使用创建序列1.Seriesimport pandas as pdimport numpy as nps = pd.Series([1,3,6,np.nan,12,1])print(s)Series的字符串表现形式为:索引在左边,值在右边。由于没有为数据指定索引。于是会自动创建一个0到N-1(N为长度)
2022-01-23 10:16:54 1718
原创 Python库——Matplotlib笔记(1)基本用法
Python库——Matplotlib笔记(1)基本用法一.figure图像——对图像框进行改变的方法代码:import matplotlib.pyplot as pltimport numpy as npx = np.linspace(-3, 3, 50)y1 = 2*x + 1y2 = x**2plt.figure(num=3, figsize=(8, 5),)plt.plot(x, y2)plt.plot(x, y1, color='red', linewidth=1.0, l
2021-12-08 21:22:38 496
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人