DataFrame

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.

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