728x90 pandas1 Pandas(DataFrame) 1. pandas 불러오기 import pandas as pd 2. pd.read_csv("data.csv") df_ins = pd.read_csv("insurance.csv") print(df_ins.shape) #data size df_ins.head(10)#top 10 data print(default = 5) 3. dataframe column indexing #dataframe column df_ins.columns #column select(1-column) df_ins['age'] #column select(multi-column) df_ins[['age', 'smoker','charges']] 연습1) PulseRates.csv data import pandas as pd df_pr = p.. 2023. 5. 16. 이전 1 다음