판다스 shape

1 개요[ | ]

Pandas 행수, 컬럼수 확인 shape
판다스 데이터프레임 shape
import pandas as pd
fruits = {'name':['apple', 'banana', 'cherry', 'lemon'], 'price':[100, 200, 300, 400]}
df = pd.DataFrame(fruits)
print( df.shape )
import pandas as pd
data = pd.read_csv("https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv")
df = pd.DataFrame(data)
print( df.shape )

2 같이 보기[ | ]

3 참고[ | ]

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