Data Science Project Creating Boxplot using Healthcare Data

I use the following code to generate a new column, which is derived by dividing ‘Average Medicare Payment’ by ‘Average Covered Costs’ so to get the proportion of the cost covered by Medicare.
And then I draw a boxplot of that proportion column.
Wondering if this variable could be something that is worth looking at?
(This plot was created from the data in 2017, provided by cms.gov, not the one provided in the project. However, the code is based on the data provided in the project)


import codecademylib3_seaborn
import pandas as pd
from matplotlib import pyplot as plt

healthcare = pd.read_csv(“healthcare.csv”)
healthcare.columns = healthcare.columns.str.strip()
healthcare[‘Medicare Proportion’] = healthcare[‘Average Medicare Payments’]
/ healthcare[‘Average Covered Charges’]
print(healthcare.head())
states = healthcare[‘Provider State’].unique()
chest_pain = healthcare[healthcare[‘DRG Definition’] == ‘313 - CHEST PAIN’]

datasets =
datasets2 =
datasets3 =
for st in states:
datasets.append(chest_pain[chest_pain[‘Provider State’] == st][‘Average Covered Charges’].values)
datasets2.append(chest_pain[chest_pain[‘Provider State’] == st][‘Average Medicare Payments’].values)
datasets3.append(chest_pain[chest_pain[‘Provider State’] == st][‘Medicare Proportion’].values)

#print(costs.head())
plt.figure(figsize=(20,12))
ax = plt.subplot()
plt.subplot(311)
plt.boxplot(datasets, labels=states)
plt.xlabel(‘State’)
plt.ylabel(‘Average Covered Charges’)
plt.subplot(312)
plt.boxplot(datasets2, labels=states)
plt.xlabel(‘State’)
plt.ylabel(‘Average Medicare Payments’)
plt.subplot(313)
plt.boxplot(datasets3, labels=states)
plt.xlabel(‘State’)
plt.ylabel(‘Average Medicare Proportion’)
plt.subplots_adjust(hspace=2)
plt.savefig(‘Medicare.png’)
plt.show()