我是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.