Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Meet Series1:14 with Craig Dennis
A Series is like a Python dictionary and a NumPy array got together and had a kid.
A series is a one-dimensional array with additional labels that allow you to access specific values.
It feels an awful lot like a Python dictionary wrapped around a NumPy Array.
We are just about to start exploring how to create and interact with a Series data structure. I'm going to do that in the next step.
There are links throughout each of these Instruction Steps for places to go and learn more.
Pandas introduces a new data structure called a series.
A series is a single dimensional container object.
It's ordered and it's typed, it's also indexable.
It's like a Python dictionary and a NumPy array got together and had a kid.
It inherits the qualities of both of its parents.
You know how you can specify the data type or d type of a NumPy array?
Well, the same is true here of our cute little series.
You can constrain and ensure that you're only using the memory and
space that you need.
And you already know how powerful dictionaries are for accessing data.
You can grab a value by key as well as check for the existence of a specific key.
Well, this little series kid here can do that too.
The series calls what a dictionary would refer to as keys, labels.
You'll also hear the keys defined as the index of the series.
There are a couple of differences, labels are not required to be unique,
unlike the keys of a dictionary.
All Pandas data structures come with some extra tricks, they are missing data aware.
You'll find familiar NumPy array methods on the series, but those methods
are actually taking missing data into account during their calculations,
we'll take a look at those here shortly.
I'm sure you're ready to get your hands on this new series object, so
let's explore it a bit and then learn more about what makes them so powerful
You need to sign up for Treehouse in order to download course files.Sign up