<jupyter_start><jupyter_text>Chapter 2 - Songs per Artist  Imports<jupyter_code>import pandas as pd
import numpy as np
import plotly.express as px<jupyter_output><empty_output><jupyter_text>Load data<jupyter_code>df = pd.read_csv("../data/all_titles-clear.csv")<jupyter_output><empty_output><jupyter_text>Data<jupyter_code>df.head()
songs_per_artist = df['Artist'].value_counts()
fig = px.bar(songs_per_artist, y='Artist', title="Songs per artist", labels={
                     "Artist": "Total songs",
                     "index": "Artist"
                 },)
fig.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1357615894039735, 'fraction_numerical': 0.0016556291390728477, 'mean_word_length': 4.401785714285714, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '388074', 'license': 'MIT', 'n_tokens_mistral': 224, 'n_tokens_neox': 219, 'n_words': 34, 'path': 'notebooks/Chapter #2.ipynb', 'repo_name': 'dobryjakchleb/Polish-Music-Dataset', 'size': '604'}