
import pandas as pd
def getDataframeSize(players: pd.DataFrame) -> List[int]:
return [len(players), len(players.columns)]
df.shape
(행, 열)로 출력되며 데이터타입은 tuple.
* tuple: list랑 유사하지만, 값 변경이 불가능한 자료형이다(immutable type). string도 immutable type임.
값이 한 개 일 때는 콤마를 꼭 붙여주어야 한다. 안 붙이면 int로 취급됨. (123,)
행 df.shape[0] 열df.shape[1]
행len(df) 열len(df.columns)