请写成一段可复制的代码

动态 未结 0 133
小小草
小小草 LV1 2023年9月23日 23:40 发表
完整代码如下: ```python import pandas as pd import matplotlib.pyplot as plt # Load the data into a DataFrame data = pd.read_csv("https://raw.githubusercontent.com/lazyprogrammer/machine_learning_examples/master/tf2.0/sbux.csv") # Create a figure and axis fig, ax = plt.subplots() # Add a scatter plot of "Volume" vs. "Adj Close" ax.scatter(data["Volume"], data["Adj Close"]) # Set the x-axis label to "Volume" ax.set_xlabel("Volume") # Set the y-axis label to "Adjusted Closing Price" ax.set_ylabel("Adjusted Closing Price") # Show the plot plt.show() ``` 你可以将其复制到 Python 环境中运行。
收藏(0)  分享
相关标签: 智能问答
问题没解决?让AI助手帮你作答 AI助手
0个回复
  • 消灭零回复