I have an error with the datatype in my pandas dataframe which is preventing matplotlib from being able to create a bar chart.
I understand to fix this I need the code dtype=object but I cannot find in the documentation where this goes. Please help.
plt.figure(figsize=(20,5))
plt.title("Population by State", fontsize=14)
plt.bar(x=uspop_pd.index, y=uspop_pd['POPESTIMATE2019'], height = 1)
plt.xlabel("State")
plt.ylabel("Population vs Customers")
dtype=object
plt.show()