Pandas DataFrame: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 11: Line 11:


=Shape=
=Shape=
<code>shape</code> is a property of the DataFrame, containing a tuple that returns the dimensionality of the DataFrame: rows, columns.
=Create a DataFrame=
=Create a DataFrame=
==Create a DataFrame from a CSV File==
==Create a DataFrame from a CSV File==

Revision as of 18:09, 8 October 2023

External

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.

Shape

shape is a property of the DataFrame, containing a tuple that returns the dimensionality of the DataFrame: rows, columns.

Create a DataFrame

Create a DataFrame from a CSV File

Accessing Elements of a DataFrame

Operations on DataFrames