python import pandas as pd data = pd.read_csv('data.csv') print(data.head()) python import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [10, 5, 12, 8, 6] plt.plot(x, y) plt.title('Line Chart') plt.xlabel('X') plt.ylabel('Y') plt.show() python import seaborn as sns x = [1, 2, 3, 4, 5] y = [10, 5, 12, 8, 6] sns.scatterplot(x, y) plt.title('Scatter Plot') plt.xlabel('X') plt.ylabel('Y') plt.show()


上一篇:
下一篇:
切换中文