<jupyter_start><jupyter_text>Pandas built in DV features<jupyter_code>import pandas as pd
import numpy as np
import seaborn as sns
df1 = pd.read_csv('../../data/my_csv.csv', index_col=0, low_memory=False)
df1.head()
df1['Y'].hist()
df1['Y'].hist(bins=30)<jupyter_output><empty_output><jupyter_text>creating histogram through plot<jupyter_code>df1['Y'].plot(kind="hist", bins=30)
df1['Y'].plot.hist(bins=30)
# show area
df1.plot.area(alpha=0.4)
# show bar plot
df1.plot.bar(stacked=True) 
# show line plot
df1.plot.line(x=df1.index, y='K', figsize=(12,3), lw=1)
#scatter plot
df1.plot.scatter(x='Y', y='W', c='K', cmap='coolwarm') # df1.plot.scatter(x='Y', y='W', s=df1['K']*10)
df1.plot.box(by='K', cmap='coolwarm')
# hex plot
df = pd.DataFrame(np.random.rand(1000, 2), columns=('A', 'B'))
df.plot.hexbin(x='A', y='B', gridsize=25, cmap='coolwarm')
# kernal density plot
df.plot.density()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.21459694989106753, 'fraction_numerical': 0.0392156862745098, 'mean_word_length': 7.132743362831858, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '526053', 'license': 'MIT', 'n_tokens_mistral': 421, 'n_tokens_neox': 396, 'n_words': 68, 'path': 'Data Visualization/Pandas-built-in-Data-visulization/Pandas built in Data Visualization features.ipynb', 'repo_name': 'PS3132/pyDS_ML_bootcamp', 'size': '918'}