Skip to content

Pandas comparison

Coral uses pandas as a reference for supported operations. These conventions matter when comparing results:

AreaCoral behavior
Grouping and value_countsKeys keep first-seen order. Pandas normally sorts group keys or sorts value counts by frequency.
outer_joinLeft rows remain in order, followed by right-only rows. Its key column is converted to strings.
Joins with overlapping namesA right non-key column receives the _right suffix.
Join keysAs in pandas merge, duplicate keys give every matching pair and missing keys (NaN, or masked integers) match each other.
meltOutput columns are variable, value, then id columns; rows are grouped by source value column.
Missing valuesFloat columns use NaN; integer columns have a separate bool mask; string and bool columns have no missing marker.
GroupBy on NaN or masked keysMissing keys form one group. Pandas drops them by default (dropna=True).
GroupBy aggregationsFloat NaNs are not skipped; masked integers are. Pandas skips both.
describeNumeric columns use sample standard deviation (ddof=1) and linear-interpolation quartiles, as pandas does; non-numeric columns are omitted.
sort_by on stringsCoral's own character ranking, lowercase before uppercase. Pandas compares code points, uppercase first.
ewmadjust=False form only.

See I/O for file formats and output limits, including integer masks that are not preserved by the writers. See limitations for column-type constraints and the functions that chelis build rejects.