Pandas, head() function
发布时间
阅读量:
阅读量
在利用Pandas完成数据读取操作后,可通过调用其内置的head()函数对所获取的数据进行初步查看。该函数默认仅展示数据集的前五条记录,具体显示效果可参考下图所示。

对于该head()函数的具体实现方式,可以参考如下内容:
def head(self, n=5):
"""
Return the first `n` rows.
5. This function returns the first `n` rows for the object based
on position. It is useful for quickly testing if your object
has the right type of data in it.
9. Parameters
----------
n : int, default 5
Number of rows to se
全部评论 (0)
还没有任何评论哟~
