Pandas DataFrame shape 属性
定义和用法
shape
属性返回一个包含 DataFrame 形状的元组。
形状是 DataFrame 的行数和列数
语法
dataframe.shape
返回值
一个 Python 元组,显示行数和列数。
shape
属性返回一个包含 DataFrame 形状的元组。
形状是 DataFrame 的行数和列数
dataframe.shape
一个 Python 元组,显示行数和列数。
如果您想将 W3Schools 服务用于教育机构、团队或企业,请发送电子邮件给我们
sales@w3schools.com
如果您想报告错误,或想提出建议,请发送电子邮件给我们
help@w3schools.com