Posts tagged set
Python Set vs Pandas.Index
- 06 March 2024
For the past few weeks, I have been meeting with some fantastic clients in
one-on-one sessions to cover the core Python and pandas skills needed to perform
rapid data analysis. We have discussed a variety of topics, but this week has been one
of my favorites because we are doing a deep dive into pandas. Of course, the
framing for pandas is all about the Index
, so I decided to keep it light and
ensure we tie it back to some core Python concepts.
When discussing the Index
in pandas, I always find it useful to contrast it against
a Python built-in that exhibits some similar behaviors: the set
. This week,
I want to focus on each of these data structures to understand where they overlap, their differences, and the lessons they can teach us.