I am using the following code to plot a bar-chart:
import matplotlib.pyplot as pls my_df.plot(x=\'my_timestampe\', y=\'col_A\', kind=\'bar\') plt.show() >
Although the accepted answer works fine, since v0.21.0rc1 it gives a warning
UserWarning: Pandas doesn't allow columns to be created via a new attribute name
Instead, one can do
df[["X", "A", "B", "C"]].plot(x="X", kind="bar")