Pandas DataFrame shape 屬性
定義和用法
shape
屬性返回一個包含 DataFrame 形狀的元組。
形狀是 DataFrame 的行數和列數
語法
dataframe.shape
返回值
一個 Python 元組,顯示行數和列數。
shape
屬性返回一個包含 DataFrame 形狀的元組。
形狀是 DataFrame 的行數和列數
dataframe.shape
一個 Python 元組,顯示行數和列數。
如果您想將 W3Schools 服務用於教育機構、團隊或企業,請傳送電子郵件給我們
sales@w3schools.com
如果您想報告錯誤,或想提出建議,請傳送電子郵件給我們
help@w3schools.com