Supported pandas API¶
The following table shows the pandas APIs that implemented or non-implemented from pandas API on Spark. Some pandas API do not implement full parameters, so the third column shows missing parameters for each API.
‘Y’ in the second column means it’s implemented including its whole parameter.
‘N’ means it’s not implemented yet.
‘P’ means it’s partially implemented with the missing of some parameters.
All API in the list below computes the data with distributed execution except the ones that require the local execution by design. For example, DataFrame.to_numpy() requires to collect the data to the driver side.
If there is non-implemented pandas API or parameter you want, you can create an Apache Spark JIRA to request or to contribute by your own.
The API list is updated based on the latest pandas official API reference.
CategoricalIndex API¶
API |
Implemented |
Missing parameters |
---|---|---|
Y |
||
argsort |
N |
|
Y |
||
Y |
||
equals |
N |
|
Y |
||
max |
N |
|
min |
N |
|
reindex |
N |
|
Y |
||
Y |
||
Y |
||
Y |
||
searchsorted |
N |
|
Y |
||
tolist |
N |
DataFrame API¶
API |
Implemented |
Missing parameters |
---|---|---|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
asfreq |
N |
|
Y |
||
bfill |
N |
|
P |
|
|
P |
|
|
combine |
N |
|
Y |
||
compare |
N |
|
P |
|
|
P |
|
|
count |
N |
|
P |
|
|
cummax |
N |
|
cummin |
N |
|
cumprod |
N |
|
cumsum |
N |
|
Y |
||
P |
|
|
|
P |
|
Y |
||
P |
|
|
Y |
||
P |
|
|
Y |
||
P |
|
|
Y |
||
Y |
||
ffill |
N |
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
isetitem |
N |
|
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
P |
|
|
kurt |
N |
|
kurtosis |
N |
|
P |
|
|
P |
|
|
P |
|
|
max |
N |
|
mean |
N |
|
median |
N |
|
P |
|
|
memory_usage |
N |
|
P |
|
|
min |
N |
|
P |
|
|
Y |
||
P |
|
|
|
P |
|
P |
|
|
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
P |
|
|
Y |
||
P |
|
|
prod |
N |
|
product |
N |
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
P |
|
|
reorder_levels |
N |
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
Y |
||
sem |
N |
|
set_axis |
N |
|
P |
|
|
P |
|
|
skew |
N |
|
P |
|
|
P |
|
|
P |
|
|
std |
N |
|
P |
|
|
|
P |
|
sum |
N |
|
Y |
||
P |
|
|
to_feather |
N |
|
to_gbq |
N |
|
P |
|
|
to_markdown |
N |
|
to_numpy |
N |
|
P |
|
|
P |
|
|
to_period |
N |
|
Y |
||
to_stata |
N |
|
P |
|
|
to_timestamp |
N |
|
to_xml |
N |
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
P |
|
|
value_counts |
N |
|
var |
N |
|
P |
|
DatetimeIndex API¶
API |
Implemented |
Missing parameters |
---|---|---|
as_unit |
N |
|
Y |
||
Y |
||
Y |
||
get_loc |
N |
|
Y |
||
Y |
||
isocalendar |
N |
|
Y |
||
Y |
||
Y |
||
slice_indexer |
N |
|
snap |
N |
|
std |
N |
|
Y |
||
to_julian_date |
N |
|
to_period |
N |
|
to_pydatetime |
N |
|
tz_convert |
N |
|
tz_localize |
N |
Index API¶
API |
Implemented |
Missing parameters |
---|---|---|
all |
N |
|
any |
N |
|
Y |
||
P |
|
|
P |
|
|
argsort |
N |
|
Y |
||
asof_locs |
N |
|
astype |
N |
|
Y |
||
Y |
||
Y |
||
P |
|
|
Y |
||
Y |
||
Y |
||
duplicated |
N |
|
Y |
||
P |
|
|
format |
N |
|
get_indexer |
N |
|
get_indexer_for |
N |
|
get_indexer_non_unique |
N |
|
|
Y |
|
get_loc |
N |
|
get_slice_bound |
N |
|
groupby |
N |
|
|
Y |
|
Y |
||
infer_objects |
N |
|
Y |
||
P |
|
|
is_ |
N |
|
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
Y |
||
isin |
N |
|
isna |
N |
|
isnull |
N |
|
join |
N |
|
Y |
||
P |
|
|
memory_usage |
N |
|
P |
|
|
notna |
N |
|
notnull |
N |
|
putmask |
N |
|
ravel |
N |
|
reindex |
N |
|
Y |
||
P |
|
|
Y |
||
shift |
N |
|
slice_indexer |
N |
|
slice_locs |
N |
|
|
Y |
|
P |
|
|
sortlevel |
N |
|
Y |
||
take |
N |
|
to_flat_index |
N |
|
Y |
||
P |
|
|
Y |
||
Y |
||
Y |
||
where |
N |
MultiIndex API¶
API |
Implemented |
Missing parameters |
---|---|---|
append |
N |
|
argsort |
N |
|
astype |
N |
|
P |
|
|
delete |
N |
|
P |
|
|
dropna |
N |
|
duplicated |
N |
|
Y |
||
equals |
N |
|
fillna |
N |
|
format |
N |
|
|
Y |
|
get_loc |
N |
|
get_loc_level |
N |
|
get_locs |
N |
|
get_slice_bound |
N |
|
Y |
||
isin |
N |
|
memory_usage |
N |
|
putmask |
N |
|
remove_unused_levels |
N |
|
rename |
N |
|
reorder_levels |
N |
|
repeat |
N |
|
set_codes |
N |
|
set_levels |
N |
|
slice_locs |
N |
|
sortlevel |
N |
|
Y |
||
take |
N |
|
to_flat_index |
N |
|
P |
|
|
truncate |
N |
|
unique |
N |
|
view |
N |
Series API¶
API |
Implemented |
Missing parameters |
---|---|---|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
all |
N |
|
any |
N |
|
P |
|
|
P |
|
|
asfreq |
N |
|
Y |
||
Y |
||
bfill |
N |
|
P |
|
|
combine |
N |
|
Y |
||
P |
|
|
Y |
||
count |
N |
|
Y |
||
cummax |
N |
|
cummin |
N |
|
cumprod |
N |
|
cumsum |
N |
|
Y |
||
P |
|
|
|
P |
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
ffill |
N |
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
info |
N |
|
P |
|
|
isin |
N |
|
isna |
N |
|
isnull |
N |
|
Y |
||
Y |
||
kurt |
N |
|
kurtosis |
N |
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
max |
N |
|
mean |
N |
|
median |
N |
|
memory_usage |
N |
|
min |
N |
|
P |
|
|
Y |
||
P |
|
|
|
P |
|
P |
|
|
P |
|
|
notna |
N |
|
notnull |
N |
|
P |
|
|
Y |
||
P |
|
|
prod |
N |
|
product |
N |
|
P |
|
|
P |
|
|
ravel |
N |
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
reorder_levels |
N |
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
P |
|
|
P |
|
|
sem |
N |
|
set_axis |
N |
|
shift |
N |
|
skew |
N |
|
P |
|
|
P |
|
|
std |
N |
|
P |
|
|
|
P |
|
sum |
N |
|
Y |
||
take |
N |
|
Y |
||
Y |
||
to_markdown |
N |
|
to_period |
N |
|
P |
|
|
to_timestamp |
N |
|
Y |
||
P |
|
|
Y |
||
P |
|
|
Y |
||
var |
N |
|
view |
N |
|
P |
|
TimedeltaIndex API¶
API |
Implemented |
Missing parameters |
---|---|---|
ceil |
N |
|
floor |
N |
|
get_loc |
N |
|
median |
N |
|
round |
N |
|
std |
N |
|
sum |
N |
|
to_pytimedelta |
N |
|
total_seconds |
N |
General Function API¶
API |
Implemented |
Missing parameters |
---|---|---|
array |
N |
|
bdate_range |
N |
|
P |
|
|
crosstab |
N |
|
cut |
N |
|
P |
|
|
eval |
N |
|
factorize |
N |
|
from_dummies |
N |
|
Y |
||
infer_freq |
N |
|
interval_range |
N |
|
Y |
||
Y |
||
json_normalize |
N |
|
lreshape |
N |
|
P |
|
|
P |
|
|
Y |
||
merge_ordered |
N |
|
Y |
||
Y |
||
period_range |
N |
|
pivot |
N |
|
pivot_table |
N |
|
qcut |
N |
|
P |
|
|
P |
|
|
P |
|
|
read_feather |
N |
|
read_fwf |
N |
|
read_gbq |
N |
|
read_hdf |
N |
|
P |
|
|
P |
|
|
P |
|
|
P |
|
|
read_pickle |
N |
|
read_sas |
N |
|
read_spss |
N |
|
P |
|
|
P |
|
|
P |
|
|
read_stata |
N |
|
P |
|
|
read_xml |
N |
|
set_eng_float_format |
N |
|
show_versions |
N |
|
test |
N |
|
P |
|
|
P |
|
|
P |
|
|
to_pickle |
N |
|
Y |
||
unique |
N |
|
value_counts |
N |
|
wide_to_long |
N |
Expanding API¶
API |
Implemented |
Missing parameters |
---|---|---|
agg |
N |
|
aggregate |
N |
|
apply |
N |
|
corr |
N |
|
P |
|
|
cov |
N |
|
|
P |
|
P |
|
|
P |
|
|
median |
N |
|
P |
|
|
P |
|
|
rank |
N |
|
sem |
N |
|
|
P |
|
|
P |
|
P |
|
|
|
P |
|
Rolling API¶
API |
Implemented |
Missing parameters |
---|---|---|
agg |
N |
|
aggregate |
N |
|
apply |
N |
|
corr |
N |
|
P |
|
|
cov |
N |
|
|
P |
|
P |
|
|
P |
|
|
median |
N |
|
P |
|
|
P |
|
|
rank |
N |
|
sem |
N |
|
|
P |
|
|
P |
|
P |
|
|
|
P |
|
Window API¶
API |
Implemented |
Missing parameters |
---|---|---|
agg |
N |
|
aggregate |
N |
|
mean |
N |
|
std |
N |
|
sum |
N |
|
var |
N |
DataFrameGroupBy API¶
API |
Implemented |
Missing parameters |
---|---|---|
agg |
N |
|
aggregate |
N |
|
boxplot |
N |
|
corr |
N |
|
corrwith |
N |
|
cov |
N |
|
fillna |
N |
|
filter |
N |
|
hist |
N |
|
idxmax |
N |
|
idxmin |
N |
|
nunique |
N |
|
skew |
N |
|
take |
N |
|
transform |
N |
|
value_counts |
N |
GroupBy API¶
API |
Implemented |
Missing parameters |
---|---|---|
Y |
||
P |
|
|
Y |
||
Y |
||
Y |
||
Y |
||
P |
|
|
P |
|
|
P |
|
|
P |
|
|
describe |
N |
|
P |
|
|
Y |
||
|
Y |
|
Y |
||
Y |
||
Y |
||
Y |
||
P |
|
|
P |
|
|
Y |
||
P |
|
|
ngroup |
N |
|
ohlc |
N |
|
pct_change |
N |
|
Y |
||
P |
|
|
P |
|
|
resample |
N |
|
|
Y |
|
sample |
N |
|
P |
|
|
P |
|
|
Y |
||
P |
|
|
P |
|
|
Y |
||
P |
|
SeriesGroupBy API¶
API |
Implemented |
Missing parameters |
---|---|---|
|
P |
|
|
P |
|
apply |
N |
|
corr |
N |
|
cov |
N |
|
describe |
N |
|
fillna |
N |
|
filter |
N |
|
hist |
N |
|
idxmax |
N |
|
idxmin |
N |
|
P |
|
|
P |
|
|
nunique |
N |
|
skew |
N |
|
take |
N |
|
transform |
N |
|
Y |
||
P |
|