C3 AI Documentation Home

Supported Data Spark DataFrame APIs

The C3 Agentic AI Platform supports many Pandas APIs on Spark through Data Spark to perform dataset operations.

Below is a list of supported DataFrame APIs. Functionality is similar to functionality from Pandas. Methods annotated with an * are partially supported.

API NameLink to Pandas on Spark 3.5.8Comment
TT
absabs
addadd
add_prefixadd_prefix
add_suffixadd_suffix
aggagg
allall
anyany
appendappend
*applyapplyDoesn't support external reference inside lambda function
*applymapapplymapDoesn't support external reference inside lambda function
astypeastype
at_timeat_time
backfillbackfill
between_timebetween_time
bfillbfill
boolbool
clipclip
columnscolumns
combine_firstcombine_first
copycopy
corrcorr
corrwithcorrwith
countcount
covcov
cummaxcummax
cummincummin
cumprodcumprod
cumsumcumsum
describedescribe
diffdiff
divdiv
dividedivide
dotdot
dropdrop
drop_duplicatesdrop_duplicates
dropleveldroplevel
dropnadropna
duplicatedduplicated
emptyempty
eqeq
equalsequals
evaleval
explodeexplode
ffillffill
fillnafillna
filterfilter
firstfirst
first_valid_indexfirst_valid_index
floordivfloordiv
gege
getget
groupbygroupby
gtgt
headhead
idxmaxidxmax
idxminidxmin
*ilocilocOnly supports get values. Set values have no effect.
indexindex
insertinsert
interpolateinterpolate
isinisin
isnaisna
isnullisnull
itemsitems
iteritemsiteritems
iterrowsiterrows
itertuplesitertuples
joinjoin
keyskeys
kurtkurt
kurtosiskurtosis
lastlast
last_valid_indexlast_valid_index
lele
loclocOnly supports get values. Set values have no effect.
ltlt
madmad
maskmask
maxmax
meanmean
medianmedian
meltmelt
mergemerge
minmin
modmod
modemode
mulmul
ndimndim
nene
nlargestnlargest
notnanotna
notnullnotnull
nsmallestnsmallest
nuniquenunique
padpad
pct_changepct_change
*pipepipeDoesn't support external reference inside lambda function
pivotpivot
pivot_tablepivot_table
poppop
powpow
prodprod
productproduct
quantilequantile
queryquery
raddradd
rankrank
rdivrdiv
reindexreindex
reindex_likereindex_like
renamerename
rename_axisrename_axis
replacereplace
resampleresample
reset_indexreset_index
rfloordivrfloordiv
rmodrmod
rmulrmul
roundround
rpowrpow
rsubrsub
rtruedivrtruediv
samplesample
select_dtypesselect_dtypes
semsem
set_indexset_index
shapeshape
shiftshift
sizesize
skewskew
sort_indexsort_index
sort_valuessort_values
squeezesqueeze
stackstack
stdstd
subsub
sumsum
swapaxesswapaxes
swaplevelswaplevel
tailtail
taketake
to_csvto_csv
to_deltato_delta
to_dictto_dict
to_excelto_excel
to_htmlto_html
to_jsonto_json
to_latexto_clipboard
to_markdownto_markdown
to_numpyto_numpy
to_orcto_orc
to_pandasto_pandas
to_parquetto_parquet
to_sparkto_spark
to_spark_ioto_spark_io
to_stringto_string
to_tableto_table
*transformtransformDoesn't support external reference inside lambda function
transposetranspose
truedivtruediv
truncatetruncate
unstackunstack
updateupdate
valuesvalues
varvar
wherewhere
xsxs
Was this page helpful?