In this other question, the result is coming in a good way, but not good enough. The bins are strings, and the frequency plot is not real. It is like every item is a string, but I want them to be int. How can I do that?
What I want is to know how big is, having thousands of rows with a 'date' for each action, the normal volume of entries for a normal day. This is my code:
df["dayOfYear"] = df["date"].dt.dayofyear
plt.hist(df.groupby(df["dayOfYear"]).count())
It gives me the answer, but bins are strings, not int, so the X axis is a collection of strings, avoiding me of getting a nice gaussian distribution.
I tried to int() it, but it doesn't work for a pandas.
Any help? Thank you! Miguel.