Pandas Flashcards

1
Q

Pandas

A

Pandas, and in particular its Series and DataFrame objects, builds on the NumPy array structure and provides efficient access to these sorts of “data munging” tasks that occupy much of a data scientist’s time.”

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

Pandas Series

A
  • A dictionary is a structure that maps arbitrary keys to a set of arbitrary values, and a Series is a structure that maps typed keys to a set of typed values.
  • It is like a column in a table. It is a one-dimensional array holding data of any type.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Dataframe

A

• this is a 2 dimensional data structure, like a 2 dimensional array, or a table with rows and columns.

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

CSV

A
  • A simple way to store big data sets it to use CSV files.

* Csv files contain plain text and is a well know format that can be read by everyone including pandas.

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

Concat

A

• This combines all dataframes into one. Rows are added to create a bigger table.

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

Merge

A

• Merge is a way to combine dtaFrames column-wise, result is wider and with more columns. This is similar to a join in SQL.

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

Inner join

A

• get matching values only from both dataframes. Non-matching values will be dropped.

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

Outer Join

A

• this will combine everything from both dataframes.Will contain matching and non-matching values.

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

Left/Right Join

A

• This will include every value from the left/right dataframe and pull in matching items from the other dataframe

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

Groupby

A

• This can be used to run computations against different groups of rows.

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

Pivot

A

• This can help collapse data spread across multiple rows into a single row with data now spread across columns.

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