Pandas 데이터프레임 컬럼명으로 컬럼 선택

1 개요[ | ]

Pandas 데이터프레임 컬럼명으로 컬럼 선택
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv")
print( df.head() )
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv")
df2 = df[['sepal_length','petal_length']]
print( df2.head() )

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}