ggplot Bar Plot semantics

342 views Asked by At

I am trying to use ggplot in Python for the first time and the semantics are completely unobvious to me.

I have a pandas dataframe with two columns: date and entries_sum. What I would like to do is plot a bar plot with the date column as each entry on the x-axis and entries_sum as the respective heights.

I cannot figure out how to do this with the ggplot API. Am I formatting my data wrong for this?

1

There are 1 answers

2
cr1msonB1ade On BEST ANSWER

How about:

ggplot(aes(x='date', y='entries_sum'), data=data) + geom_bar(stat='identity')