-
-
Save amankharwal/b5db7e4b859847df6d22c2124ee3c186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data["Year"] = data['Date'].str.split("-").str[-1] | |
data["Month-Year"] = data['Date'].str.split("-").str[1] + "-" + data['Date'].str.split("-").str[-1] | |
fig1 = px.bar(data["Month-Year"].value_counts(ascending=False), | |
orientation= "v", | |
color = data["Month-Year"].value_counts(ascending=False), | |
labels={'value':'Count', 'index':'Date','color':'Meter'}) | |
fig1.update_layout(title_text="Exploring higher sales by the date") | |
fig1.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment