Python - Pandas 기본
·
Programming/Python
1.Basic데이터 프레임 만들기import pandas as pddf1 = pd.DataFrame( [[3,2,5],[10,0,2],[6,5,3]], columns=["사과", "자두", "포도"], index=["이성계", "김유신", "이순신"]) values, index, columnsdf1.values# array([[ 3, 2, 5],# [10, 0, 2],# [ 6, 5, 3]])df1.index# Index(['이성계', '김유신', '이순신'], dtype='object')df1.columns# Index(['사과', '자두', '포도'], dtype='object')## numpy와 같이 pandas도 value를 조건에 따라 bool..