A DataFrame is the primary object used by the Pandas module to store and manipulate data. It is a structured collection of data arranged in rows and columns, similar to a database table.

Many Pandas functions, such as .read_csv(), return DataFrame objects. Other functions take DataFrame objects and accept them as parameters. In addition, most of Pandas’ functionality is implemented through the DataFrame object. Methods and properties of the DataFrame object are listed below.


Returns a DataFrame object with rows or columns removed based on column or index names.
Returns a DataFrame object with rows or columns with NA values removed.
Returns a DataFrame object with NA values replaced with the specified value.
Groups a DataFrame using a mapper or a series of columns and returns a GroupBy object.
Accesses specified rows and/or columns of a DataFrame object.
Returns a DataFrame object after values within the DataFrame have been changed.
Returns the number of rows and columns of given DataFrame in tuple form.


Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Python:Pandas on Codecademy