Series - PANDAS Series Flashcards

1
Q

SERIES - A Pandas Series is like a column in a table.

A

Pandas Series

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SERIES - It is a one-dimensional array holding data of any type.

A

Pandas Series

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

LABELS - If nothing else is specified, the values are labeled with their index number. First value has index 0, second value has index 1 etc.

A

Labels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

LABELS - This label can be used to access a specified value.

A

Labels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

LABELS - With the index argument, you can name your own labels.

A

Create Labels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

LABELS - When you have created labels, you can access an item by referring to the label.

A

Create Labels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

LABELS - You can also use a key/value object, like a dictionary, when creating a Series.

A

Key/Value Objects as Series

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

LABELS - The keys of the dictionary become the labels.

A

Keys of Dictionary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

INDEX - To select only some of the items in the dictionary, use the index argument and specify only the items you want to include in the Series.

A

Index Argument

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

DATAFRAMES - Data sets in Pandas are usually multi-dimensional tables, called DataFrames.

A

DataFrames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

DATAFRAMES - Series is like a column, a DataFrame is the whole table.

A

DataFrames

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

EXERCISE - True or False. A Series is like a row in a table.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

EXERCISE - Insert the correct Pandas method to create a Series.

A

pd.Series (mylist)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

EXERCISE - Insert the correct syntax to return the first value of a Pandas Series called “myseries”?

A

myseries[0]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Insert the correct syntax to add the labels “x”, “y”, and “z” to a Pandas Series.

A

pd.Series(mylist, index = [“x”, “y”, “z”])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly