<jupyter_start><jupyter_text>Plotting your data Notebook adapted from Data Carpentry Python for Ecologists (http://www.datacarpentry.org/)<jupyter_code>import matplotlib.pyplot as plt
import pandas as pd<jupyter_output><empty_output><jupyter_text>Load your data We are studying the species and weight of animals caught in plots in our study area. The data sets are stored in .csv, and each row holds information for a single animal.<jupyter_code>df = pd.DataFrame.from_csv("plots.csv", index_col=None)
type(df)
df.head()<jupyter_output><empty_output><jupyter_text>Plot your data Let's plot the correlation between the record_id in our dataset and the plot id where the animals fell.<jupyter_code>plt.plot(df.record_id, df.plot_id)<jupyter_output><empty_output><jupyter_text>We can produce a scatter plot.<jupyter_code>plt.scatter(df.record_id, df.plot_id)<jupyter_output><empty_output><jupyter_text>We can produce a bar plot.<jupyter_code>plt.bar(df.record_id, df.plot_id)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09181636726546906, 'fraction_numerical': 0.0, 'mean_word_length': 7.646551724137931, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '20843', 'license': 'MIT', 'n_tokens_mistral': 349, 'n_tokens_neox': 336, 'n_words': 90, 'path': 'sample-notebooks/plots.ipynb', 'repo_name': 'inkandswitch/livebook', 'size': '1002'}