我的python代码未运行。下面给我一个错误

时间:2019-10-17 07:25:47

标签: python pandas

我是python的新手(人文背景)。这是我的第一次尝试。

我正在尝试运行以下代码:

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

df = pd.read_csv("my_data.csv")
plot = sns.boxplot( 
    data=df, 
    width=0.5,
    showmeans=True
)

plot.set(xticklabels = ['PRE', 'POST'] , ylabel='CAT score \n(0 to 40)' , title='some title')
plt.show()

但是它给了我这个错误:

C:\Users\Admin>& C:/Users/Admin/AppData/Local/Programs/Python/Python37/python.exe c:/Users/Admin/Downloads/box_and_whiskers.py
& was unexpected at this time.

This is the dataset

0 个答案:

没有答案