So I'm very new to Python and I'm having the following issue: I want to display a boxplot but everytime I'm trying to name the axis or yaxis I'm getting the following error: AttributeError: module 'matplotlib.pyplot' has no attribute 'xaxis' I would appreciate some help as I have no idea whats causing this. Other than the error, the boxplot does show correctly.
import pandas as pd
import matplotlib.pyplot as plt
myFile = pd.read_csv("myFile.csv", sep=";")
data_to_plot = [myFile.Class_1,myFile.Class_2]
plt.boxplot(data_to_plot)
plt.xaxis("X - Axis")
plt.yaxis("Y - Axis")
plt.show()
pandasalready includematplotlibfuncionalities. In my answer you got a pandas only solution.