BackEnd/Automation Program with Python
from pandas import Series #matplotlib, pandas_datareader #Series1 선언 series1 = Series([92600, 92400, 92100, 94300, 92300]) #출력 print(series1) #총 개수 print('count',series1.count()) #요약 print('count',series1.describe()) #인덱스 접근 print(series1[0]) #Series2 선언 series2 = Series([92600, 92400, 92100, 94300, 92300], index=['2018-02-19','2018-02-18','2018-02-17','2018-02-16','2018-02-15']) #출력2 print(seri..
BackEnd/Automation Program with Python
import pandas as pd import csv #기본 읽기 df = pd.read_csv('csv_s1.csv') print(df) #행 스킵 df = pd.read_csv('csv_s1.csv', skiprows=[0]) print(df) #행 스킵, 헤더 생략 df = pd.read_csv('csv_s1.csv', skiprows=[0],header=None) print(df) #헤더 정의 df = pd.read_csv('csv_s1.csv', skiprows=[0],header=None, names=["Month",1958,1959,1960]) print(df) #인덱스 컬럼 정의 df = pd.read_csv('csv_s1.csv', skiprows=[0],header=None, name..