coversion R fuction in Python function

ggplot(data = df) + geom_bar(aes(y = comment))

can someone please tell me how can i change that R code into python(matplotlib) code.

Something like this?

It just calls matplotlib for the plot.
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.plot.bar.html