5-1.Python Pandas_Series
준비물 import pandas as pd from pandas import Series, DataFrame Series 란? array같은 1차원 object Series 생성 data = pd.Series([5000, 6000,7000, 8000]) coffee = pd.Series([5000, 6000, 7000, 6500], index=['americano', 'cappuccino', 'frappuccino', 'caffe latte']) coffee2 = pd.Series({'Flat White': 5500, 'Cold Brew': 7000, 'Caffe Mocha': 6500}) print(coffee) >>>americano 5000 >>>cappuccino 6000 >>>frappuccin..
2020. 6. 12.
4.Pyplot Visualization
준비물 %matplotlib inline import matplotlib.pyplot as plt import numpy as np Line graph plt.plot(x축 리스트,y축 리스트, color='', marker='', linestyle='solid') plt.title('') plt.ylabel('') plt.xlabel('') plt.show() plt.legend() #범주박스(범례) plt.legend(loc='best') # 'best', 'upper right', 'upper left', 'lower left', 'lower right', # 'right', 'center left', 'center right', 'lower center', 'upper center', 'cente..
2020. 6. 8.