Python: Pandas library

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/111

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

112 Terms

1
New cards

read_csv()

read CSV file into DataFrame

2
New cards

read_excel()

read Excel file

3
New cards

read_sql()

read from SQL database

4
New cards

read_json()

read JSON file

5
New cards

read_html()

read HTML tables

6
New cards

read_clipboard()

read data from clipboard

7
New cards

read_parquet()

read Parquet file

8
New cards

read_feather()

read Feather file

9
New cards

read_orc()

read ORC file

10
New cards

read_hdf()

read HDF5 file

11
New cards

read_sas()

read SAS file

12
New cards

read_stata()

read Stata file

13
New cards

read_xml()

read XML data

14
New cards

to_datetime()

convert to datetime

15
New cards

to_numeric()

convert to numeric

16
New cards

to_timedelta()

convert to timedelta

17
New cards

concat()

concatenate DataFrames/Series

18
New cards

merge()

merge/join DataFrames

19
New cards

join()

join DataFrames by index

20
New cards

crosstab()

cross-tabulation of two factors

21
New cards

pivot()

create pivot table

22
New cards

pivot_table()

create pivot table with aggregation

23
New cards

melt()

unpivot a DataFrame

24
New cards

get_dummies()

convert categorical variables to dummy indicators

25
New cards

isna() / isnull()

detect missing values

26
New cards

notna() / notnull()

detect non-missing values

27
New cards

cut()

bin values into discrete intervals

28
New cards

qcut()

quantile-based discretization

29
New cards

unique()

return unique values

30
New cards

value_counts()

count occurrences of unique values

31
New cards

date_range()

create a range of dates

32
New cards

bdate_range()

business date range

33
New cards

period_range()

range of periods

34
New cards

interval_range()

range of intervals

35
New cards

index

row labels

36
New cards

columns

column labels

37
New cards

dtypes

data types of columns

38
New cards

shape

(rows, columns)

39
New cards

size

total elements

40
New cards

ndim

number of dimensions (always 2)

41
New cards

axes

list of row and column indexes

42
New cards

values

Numpy representation of data

43
New cards

head()

return first n rows

44
New cards

tail()

return last n rows

45
New cards

info()

summary of DataFrame

46
New cards

describe()

statistical summary

47
New cards

sample()

random rows

48
New cards

loc[]

label-based selection

49
New cards

iloc[]

integer-location selection

50
New cards

at[]

single value by label

51
New cards

iat[]

single value by position

52
New cards

xs()

cross-section

53
New cards

assign()

assign new columns

54
New cards

drop()

drop rows or columns

55
New cards

dropna()

remove missing values

56
New cards

fillna()

fill missing values

57
New cards

replace()

replace values

58
New cards

rename()

rename labels

59
New cards

set_index()

set index

60
New cards

reset_index()

reset index

61
New cards

sort_index()

sort by index

62
New cards

sort_values()

sort by values

63
New cards

sum()

column/row sum

64
New cards

mean()

average

65
New cards

median()

median

66
New cards

std()

standard deviation

67
New cards

var()

variance

68
New cards

min()

minimum

69
New cards

max()

maximum

70
New cards

count()

count non-null values

71
New cards

mode()

most frequent value

72
New cards

cumsum()

cumulative sum

73
New cards

cumprod()

cumulative product

74
New cards

groupby()

group by values

75
New cards

agg()

aggregate using custom functions

76
New cards

transform()

apply function element-wise

77
New cards

merge()

merge DataFrames

78
New cards

join()

join on index

79
New cards

concat()

concatenate along axis

80
New cards

append()

append rows (deprecated, use concat)

81
New cards

rolling()

rolling window calculations

82
New cards

expanding()

expanding window calculations

83
New cards

ewm()

exponential weighted functions

84
New cards

lower()

lowercase

85
New cards

upper()

uppercase

86
New cards

len()

length of each string

87
New cards

contains()

check substring

88
New cards

replace()

string replacement

89
New cards

split()

split strings

90
New cards

strip()

trim whitespace

91
New cards

get()

get element at position

92
New cards

startswith() / endswith()

check start/end

93
New cards

year

extract year

94
New cards

month

extract month

95
New cards

day

extract day

96
New cards

weekday

day of week

97
New cards

hour / minute / second

extract time

98
New cards

date

extract date part

99
New cards

strftime()

format dates

100
New cards

to_period()

convert to Period