'How do I fix this? Boxplot is vertical by default. The output for this boxplot in my Jupyter notebook is horizontal

The output of my box plot does not change from horizontal to vertical even after setting the orient to be vertical, it remains horizontal. How can I fix this?

import seaborn as sns
#sns.set()
sns.set(style="darkgrid")
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline

import warnings
warnings.filterwarnings("ignore")
plt.rcParams['figure.figsize']=(10,10)

data_BM = pd.read_csv('bigmart_data.csv')

data_BM = data_BM.dropna(how="any")

data_BM["Visibility_Scaled"] = data_BM["Item_Visibility"] * 100

data_BM.head()

sns.boxplot(data_BM['Item_Outlet_Sales'], orient='v')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source