pandas Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

pd.ExcelFile( )

A

parse specified sheet(s) into DataFrame, equivalent to read_excel

data type
pandas.io.excel._base.ExcelFile

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

xls.sheet_names

A

return a list of sheet names in the xls

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

xls.parse( )

A

parse the sheet in xls into DataFrame

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

df.duplicated( )

A

return boolean Series denoting duplicates row

  • subset = [column label or sequence of labels]
    only consider/use certain columns for identifying duplicates, by default use all of the columns.
  • keep = {‘first’, ‘last’, False}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

pd.pivot_table( )

A

create a spreadsheet-style pivot table as a DataFrame

  • data: data frame providing the info
  • values
  • index
  • columns
  • ## aggfunc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

pivot table

A

a table of statistics that summarizes data of a more extensive table (such as from a database, spreadsheet, or business intelligence program)

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

df.isnull( )

A

To detect missing values, return bool values for each element in DataFrame

Parameters:
- None

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

se.map( )

A

Map values of Series according to input correspondence.

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

pd.concat( )

A

Concatenate pandas objects along a particular axis

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

df.se.str.cat( )

A

To join two columns in a data frame

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