I have dataframe:
id meters availability1 availability2 availability3 0 0 70 80 90 1 50 75 75 80 2 100 100 90 100 3 150 87 85 80 4 200 60 90 100 I want to create a box plot that shows me what is availability for each specific meter. For example for 0-meter availability is from 90 to 70. So I want to create box plot for each row, not column. I can not found how to apply this not changing the structure of my dataframe.
The code that I use is the following:
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns file = 'D:\\test_box_plot.csv' df = pd.read_csv(file, sep = ";", usecols = ['availability1','availability2','availability3']) sns.boxplot(x="variable", y="value", data=pd.melt(df)) plt.show() I will appreciate any help