<jupyter_start><jupyter_text>COMPOSITION GRAPHS with matplotlib<jupyter_code>planets = pd.read_csv("planets.csv")
planets
ax = sns.scatterplot(x="distance", y="orbital_period",sizes=(10,200),size="mass",data=planets,hue="year")
# smallest mass will have a value of 10, and largest will have a value of 300
diamonds
count = diamonds.groupby(by=["clarity"]).count()
count ["carat"]
fig1, ax1=plt.subplots()
ax1.pie(count['carat'],labels=count.index, autopct="%1.1f%%")
ax1.axis('equal')
plt.show()
diamonds
sns.set_theme()

diamond_cat = pd.read_csv("diamonds.csv")
diamond_cat.drop_duplicates(inplace=True)
# diamond_cat

diamond = diamond_cat("x", "y", "z")

f, ax = plt.subplots(figsize=(9, 6))
sns.heatmap(diamond, annot=True, fmt="d", linewidths=.5, ax=ax)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17870722433460076, 'fraction_numerical': 0.024081115335868188, 'mean_word_length': 8.404761904761905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '301793', 'license': 'MIT', 'n_tokens_mistral': 341, 'n_tokens_neox': 312, 'n_words': 55, 'path': 'USCDSCvisualization.ipynb', 'repo_name': 'Cyber-Dust/DSCI250', 'size': '789'}