Pandas Concepts
Internal
Overview
pandas
is a Python package that provides fast, flexible, and expressive data structures designed to make working with "relational" or "labeled" data both easy and intuitive. It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python. Additionally, it has the broader goal of becoming the most powerful and flexible open source data analysis / manipulation tool available in any language.
Pandas is built in top of Numpy.
DataFrame
Series
Time Series Processing with Pandas
Axis
Both DataFrames and Series use the concept of axis. Formally define. By default, an axis comprises of monotonically increasing integers with step 1, from 0 to length - 1
Index
RangeIndex
RangeIndex(start=0, stop=3, step=1)
DatetimeIndex
This is what makes a Series a time series. Merge with Time_Series_Processing_with_Pandas
DataFrame Index
Series Index
Data Types
String
Datetime
TO PROCESS: https://pandas.pydata.org/docs/reference/api/pandas.Timestamp.html#pandas.Timestamp
Reported as datetime64[ns]
. What is this?
Also see
Date format when represented as string: YYYY-MM-DD
, "2023-10-01".
Visualization
Both the DataFrame and Series have a plot()
method, which delegates to matplotlib.