首页 > 其他 > 详细

DataFrame

时间:2016-12-27 23:09:51      阅读:370      评论:0      收藏:0      [点我收藏+]

DataFrame

Constructor

DataFrame([data, index, columns, dtype, copy])

Two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns).

 

Axes

  • index: row labels
  • columns: column labels

DataFrame.as_matrix([columns])

Convert the frame to its Numpy-array representation.

DataFrame.dtypes

Return the dtypes in this object.

DataFrame.ftypes

Return the ftypes (indication of sparse/dense and dtype) in this object.

DataFrame.get_dtype_counts()

Return the counts of dtypes in this object.

DataFrame.get_ftype_counts()

Return the counts of ftypes in this object.

DataFrame.select_dtypes([include, exclude])

Return a subset of a DataFrame including/excluding columns based on their dtype.

DataFrame.values

Numpy representation of NDFrame

DataFrame.axes

Return a list with the row axis labels and column axis labels as the only members.

DataFrame.ndim

Number of axes / array dimensions

DataFrame.size

number of elements in the NDFrame

DataFrame.shape

Return a tuple representing the dimensionality of the DataFrame.

DataFrame.memory_usage([index, deep])

Memory usage of DataFrame columns.

DataFrame

原文:http://www.cnblogs.com/dreamafar/p/6227612.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!