<jupyter_start><jupyter_text>area plot<jupyter_code>import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

%matplotlib inline

mpl.rcParams['axes.unicode_minus'] = False
df = pd.DataFrame(np.random.rand(10, 4), columns = ['a','b','c','d'])
df.head()
df.plot.area() # 비어있는 값은 0으로 채워짐, df.dropna() 나 df.fillna()로 전처리 권장
df.plot() # stacked 가 default 값임
df.plot.area(stacked=False, grid=True) # grid == 격자<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1518987341772152, 'fraction_numerical': 0.008438818565400843, 'mean_word_length': 5.884057971014493, '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': '348076', 'license': 'MIT', 'n_tokens_mistral': 210, 'n_tokens_neox': 214, 'n_words': 46, 'path': 'chapter_1/.ipynb_checkpoints/Pandas area plot-checkpoint.ipynb', 'repo_name': 'bluehyena/Data-Analysis-and-Visualization', 'size': '474'}