我需要一段python语言从一个dataframe中提取出两列再用seaborn绘制线形图的代码

import pandas as pd import seaborn as sns# 读取数据 df = pd.read_csv('data.csv')# 提取需要的两列 x_data = df['column1'] y_data = df['column2']# 用seaborn绘制线形图 sns.lineplot(x_data, y_data)

猜你喜欢

转载自blog.csdn.net/weixin_42588672/article/details/129457700
今日推荐