Pandas DataFrame: Difference between revisions
Jump to navigation
Jump to search
(→Shape) |
|||
Line 8: | Line 8: | ||
=Overview= | =Overview= | ||
A DataFrame is a two-dimensional data structure with columns of potentially different types. Can be thought of as a dict-like container for [[#Series|Series]] objects. | A DataFrame is a two-dimensional data structure with columns of potentially different types. Can be thought of as a dict-like container for [[#Series|Series]] objects. The dimensionality of the DataFrame is given by its <code>[[#Shape|shape]]</code> property. | ||
=Shape= | =Shape= |
Revision as of 18:10, 8 October 2023
External
- https://pandas.pydata.org/docs/user_guide/dsintro.html#dataframe
- https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame
Internal
Overview
A DataFrame is a two-dimensional data structure with columns of potentially different types. Can be thought of as a dict-like container for Series objects. The dimensionality of the DataFrame is given by its shape
property.
Shape
shape
is a property of the DataFrame, containing a tuple that returns the dimensionality of the DataFrame: rows, columns.