0
y=set(df['year'])
sns.set(style='darkgrid',)
for item in list(y):
    data=df[df['year']==item]['day'].value_counts()
    sns.lineplot(data = data,palette = "hot", legend="brief",label=item)

plt.xticks(rotation=30)
plt.legend()
plt.title('Day- wise tweets',fontsize = 20)
plt.xlabel('Day',fontsize = 15)
plt.ylabel('Number of tweets',fontsize = 15)

I get days on the chart not consecutively, how can I change it? enter image description here

Wiktoria
  • 11
  • 1
  • Does this answer your question? [pandas dataframe group and sort by weekday](https://stackoverflow.com/questions/47741400/pandas-dataframe-group-and-sort-by-weekday) – Simon Crane Feb 08 '22 at 22:42

0 Answers0