Spaces:
Sleeping
Sleeping
| from datasets import load_dataset | |
| import streamlit as st | |
| import seaborn as sns | |
| dataset = load_dataset("merve/poetry", streaming=True) | |
| df = pd.DataFrame.from_dict(dataset["train"]) | |
| st.write("Number of poems for each author") | |
| sns.catplot(x="author", data=df, kind="count", aspect = 4) | |
| plt.xticks(rotation=90) | |
| st.pyplot() | |