码迷,mamicode.com
首页 > 其他好文 > 详细

DataFrame

时间:2016-12-27 23:11:59      阅读:437      评论:0      收藏:0      [点我收藏+]

标签:sel   elements   ted   ref   dimen   order   generate   tor   count   

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

标签:sel   elements   ted   ref   dimen   order   generate   tor   count   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!