方向将数据加载到熊猫数据框中,为年份、水稻、小麦、玉米和大豆创建变量。生成如下图所示的图,图的大小为8×6
from google.colab import drive
drive.mount(('/content/drive'), force_remount=True)
url = '/content/drive/My_drive/crops.csv'
import matplotlib.pyplot as plt
import numpy as np
plt.figure(figsize=(8, 6))
plt.plot()
plt.title('Crops')
plt.xlabel('number of years')
plt.ylabel('number of crops')
plt.legend()
plt.show()
目前没有回答
相关问题 更多 >
编程相关推荐