<jupyter_start><jupyter_text>Pandas SeriesOne dimensional data structure DataframeTwo or more dimensional data structure: often a table with columns and rows<jupyter_code>%matplotlib inline

import matplotlib
import pandas as pd
import matplotlib.pyplot as plt<jupyter_output><empty_output><jupyter_text>https://data.world/datafiniti/hotel-reviews<jupyter_code>df = pd.read_csv('data/hotel_reviews.csv')
#df.head(5)
df.sample(2)
#df.tail()
df[df.city == 'Atlanta'].sample(2)
df.city.describe()
plt.figure(figsize=(20,10))
df['city'].sample(100).value_counts().plot(kind='pie',title='Cities')
plt.show()
def preprocessing(text):
    return text.lower()

df['city'].apply(preprocessing)
your_data = {'A': [1,2,3,4,5], 'B': [5,4,3,2,1]}

df2 = pd.DataFrame(your_data)

df2
import numpy as np
data = np.random.rand(10, 4)
data
df3 = pd.DataFrame(data, columns=['a', 'b', 'c', 'd'])
df3.plot.area();
df3.plot.scatter(x='a', y='b', s=df3['c'] * 200);
df3.plot.hexbin(x='a', y='b', gridsize=15)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1887905604719764, 'fraction_numerical': 0.0344149459193707, 'mean_word_length': 7.276422764227642, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '253439', 'license': 'MIT', 'n_tokens_mistral': 424, 'n_tokens_neox': 409, 'n_words': 74, 'path': 'notebooks/Data Visualization/Data visualization.ipynb', 'repo_name': 'egmaziero/PLN-IA', 'size': '1017'}