Skip to content

Commit 9fc0be4

Browse files
Add files via upload
Generates a graph from matsbystate.csv
1 parent 59c296e commit 9fc0be4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

graph-newmats.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import pandas as pd
2+
import plotly.express as px
3+
4+
df = pd.read_csv('matsbystate.csv')
5+
6+
fig = px.bar(df,
7+
x = 'State',
8+
y = 'Mats',
9+
color='Mats',
10+
title="Yoga Mats Sold Last Month"
11+
)
12+
13+
fig.update_layout(
14+
font_color="black",
15+
font_size=30
16+
)
17+
18+
19+
fig.show()
20+
21+
fig.write_image("mats.jpeg")
22+

0 commit comments

Comments
 (0)