0
categorical=[]

for column in df_features:
    if is_string_dtype(df_features[column]):
        categorical.append(column)
fig, ax = plt.subplots(nrows = 8, ncols = 4, figsize=(25, 30))

for variable, subplot in zip(categorical, ax.flatten()):
    sns.countplot(df_vaccine[variable], ax = subplot)

# display the plot
plt.show()

i have been trying to plot this countplot but getting this same error again and again i cannot drop the column to continue either.

i tried to check for unnecessary spaces but didn't work.

the data is loaded from a csv file.

Tim Roberts
  • 48,973
  • 4
  • 21
  • 30

0 Answers0