Pandas Series: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* [[Pandas_Concepts#Series|Pandas Concepts]] | * [[Pandas_Concepts#Series|Pandas Concepts]] | ||
=Overview= | =Overview= | ||
A series is a one-dimensional array of values, where each value has a label. The labels are referred to as "axis labels" and they are managed by the series's [[#Index|index]]. By default, in absence of any explicit specification, a series gets a monotonic integer [[#RangeIndex|range index]], starting with 0 and with the step 1. | |||
By default, in absence of any explicit specification, a series gets a monotonic integer [[#RangeIndex|range index]], starting with 0 and with the step 1. | |||
=Index= | =Index= |
Revision as of 17:32, 8 October 2023
External
- https://pandas.pydata.org/docs/user_guide/dsintro.html#series
- https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series
- https://www.geeksforgeeks.org/python-pandas-series/
Internal
Overview
A series is a one-dimensional array of values, where each value has a label. The labels are referred to as "axis labels" and they are managed by the series's index. By default, in absence of any explicit specification, a series gets a monotonic integer range index, starting with 0 and with the step 1.
Index
RangeIndex
RangeIndex(start=0, stop=3, step=1)
Create a Series
Accessing Elements of a Series
This is known as indexing or subset selection.
Operations on Series
Filtering
Transformation
This class of operations are referred to as transformations or conversions.