Published May 12, 2022Updated May 27, 2022
Contribute to Docs

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.


Used to apply a function along one axis of the DataFrame.
Returns a copy of a DataFrame or Series.
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 duplicate rows 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.
Checks whether the objects of a Dataframe or a Series contain missing or null values and returns a corresponding boolean value.
Accesses specified rows and/or columns of a DataFrame object.
Returns a DataFrame object after values within the DataFrame have been changed.
Resets the index of a DataFrame to be continuous
Returns the number of rows and columns of given DataFrame in tuple form.
Sorts values in a DataFrame by one or more selected columns or rows.

All contributors

Looking to contribute?

Learn Python:Pandas on Codecademy