<jupyter_start><jupyter_text>Example Notebook 7 Exercise Create a Notebook (using Pandas) where you, starting from a dataset of your choice, analise it, cleaning it if necessary and finally add some visualizations with matPlotLib.<jupyter_code># call libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt<jupyter_output><empty_output><jupyter_text>`The dataset can be downloaded from internet, read from a excel file or criated from scratch from a python dictionary, as below:`<jupyter_code># create a data dictionary
data = {
  "calories": [420, 380, 390],
  "duration": [50, 40, 45]
}<jupyter_output><empty_output><jupyter_text>`Try see from your data types, shapes and statistical info`<jupyter_code># confirm data type
type(data)
# load data into a DataFrame object:
df = pd.DataFrame(data)
type(df)
# see data shape
df.shape
df.head()
df.info()
df.describe()<jupyter_output><empty_output><jupyter_text>`Create some nice plots (vizualization) from your data`<jupyter_code>plt.plot(df.calories)
plt.title("Calories");<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09749303621169916, 'fraction_numerical': 0.014856081708449397, 'mean_word_length': 6.926470588235294, 'pattern_counts': {'":': 2, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '54566', 'license': 'MIT', 'n_tokens_mistral': 372, 'n_tokens_neox': 345, 'n_words': 117, 'path': '00_Curso_Folder/1_Fundamentals/Class_4/notebooks/Example_Pandas_exercice.ipynb', 'repo_name': 'vssorru/UNIFEI-IESTI01-T01-2021.1', 'size': '1077'}