Python - 数据框的维度 [英] Python - Dimension of Data Frame

查看:72
本文介绍了Python - 数据框的维度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python 新手.

在 R 中,您可以使用 dim(...) 获取矩阵的维数.Python Pandas 的数据框对应的函数是什么?

In R, you can get the dimension of a matrix using dim(...). What is the corresponding function in Python Pandas for their data frame?

推荐答案

df.shape,其中 df 是您的 DataFrame.

df.shape, where df is your DataFrame.

这篇关于Python - 数据框的维度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆