Link Search Menu Expand Document

pandas

DESCRIPTION


Attributes

DataFrame.index
DataFrame.columns

Methods

methodDataFrameSeriesIndexnote
describeOOX 
headOOX 
uniqueXOO 
value_countsOOOReturn a Series containing counts of unique rows
sort_valuesOOOby values (along either axis)
sort_indexOOXby labels (along an axis)
isnullOOO 
notnullOOO 
astypeOOO 
to_numpyOOOconvert to NumPy array : values() 대체
argmaxXOOReturn row integer position -> iloc[]
idxmaxOOXReturn label -> loc[]
isinOOO완전 일치 -> boolean_mask
df.isin(values) : df 값들이 values 중에 있는지
str.containsXOX문자열 부분 일치(포함) -> boolean_mask
Series.str.contains(pat) : pat 패턴이 Series 값에서 나타는지
str.splitXOX-> Series, Index, DataFrame or MultiIndex of splitted str list
str.startswithXOX-> Series or Index of bool (boolean_mask)
applyOOX★apply a function along on axis(DataFrame)/values(Series)
comparison : apply, applymap, map
applymapOX ★apply a function elementwise
mapXOO★substitute each value with another value(elementwise)
sumOOXTrue=1 / False=0
iterrowsOXXIterate over DataFrame rows as (index, Series) pairs.

Table of contents