Spaces:
Sleeping
Sleeping
Commit
·
c68504b
1
Parent(s):
7a54c75
Update app.py
Browse files
app.py
CHANGED
@@ -5,5 +5,7 @@ import pandas as pd
|
|
5 |
dataset = load_dataset("merve/poetry", streaming=True)
|
6 |
df = pd.DataFrame.from_dict(dataset["train"])
|
7 |
|
8 |
-
st.write("
|
9 |
-
|
|
|
|
|
|
5 |
dataset = load_dataset("merve/poetry", streaming=True)
|
6 |
df = pd.DataFrame.from_dict(dataset["train"])
|
7 |
|
8 |
+
st.write("Number of poems for each author")
|
9 |
+
sns.catplot(x="author", data=df, kind="count", aspect = 4)
|
10 |
+
plt.xticks(rotation=90)
|
11 |
+
st.pyplot()
|