Skip to main content

Crate fp_frame

Crate fp_frame 

Source
Expand description

DataFrame / Series core for frankenpandas — the user-facing analytics surface, mirroring pandas’ DataFrame and Series APIs plus their groupby / window / resample / accessor families.

This is the largest workspace crate. It glues together:

  • fp-types: scalar values, dtypes, nan* reductions
  • fp-columnar: per-column storage (Column)
  • fp-index: row labels and binary-op alignment
  • fp-runtime: optional decision-recording policy

Most callers reach the contents of this crate via the frankenpandas umbrella prelude (use frankenpandas::prelude::*) or via direct imports (use fp_frame::DataFrame).

§Core data structures

  • DataFrame: columnar table with a row Index and an ordered column map. Constructors mirror pandas: from_dict, from_series, from_columns, from_records. Operations cover selection, mutation, reindexing, grouping, window-functions, joins, IO round-trips (via fp-io).
  • Series: single-column labeled vector. Built-in arithmetic, reductions, and accessor families (string / datetime / categorical / sparse).
  • FrameError: failure modes (column-not-found, length mismatch, dtype mismatch, alignment error, …).

§GroupBy and window operations

§Accessors

Mirror pandas .str / .dt / .cat / .sparse namespaces:

§Type coercion (pandas pd.to_* analogs)

§Frame combination

concat_dataframes, concat_series, concat_dataframes_with_* variants mirror pd.concat(..., axis=, join=, ignore_index=, keys=). Merge / join helpers live in the sibling fp-join crate (merge_dataframes_on, merge_asof, merge_ordered, join_series).

§SQL IO

Read / write IO for DataFrames lives in fp-io, which exposes the DataFrameIoExt extension trait so users can call df.to_parquet(path), df.to_sql(conn, ..), etc. directly on values from this crate.

Modules§

plotting
Free functions matching pandas.plotting (e.g. pandas.plotting.scatter_matrix, pandas.plotting.table).
testing
Testing assertions matching pandas.testing (assert_frame_equal, assert_series_equal, assert_index_equal).

Macros§

assert_frame_eq
Assert that two DataFrames are equal using default or custom options. Panics on failure.
assert_index_eq
Assert that two Indexes are equal using default or custom options. Panics on failure.
assert_series_eq
Assert that two Series are equal using default or custom options. Panics on failure.

Structs§

BoxPlotSpec
Backend-neutral boxplot request produced by boxplot() hooks.
CategoricalAccessor
Accessor for categorical operations on a Series.
CategoricalMetadata
ColumnStore
Order-preserving, duplicate-tolerant column store.
ColumnStoreIter
Name-sorted merging iterator behind ColumnStore::iter.
ColumnStoreIterMut
Mutable iterator over columns in positional order.
ConvertDtypes
pandas’ convert_dtypes switches (infer_objects, convert_string, convert_integer, convert_boolean, convert_floating), all on by default.
DataFrame
DataFrameCsvReadOptions
DataFrameDictSplit
DataFrameDictTight
Pandas 2.2 to_dict(orient='tight') payload.
DataFrameEwm
Exponentially weighted moving window over a DataFrame’s numeric columns.
DataFrameExpanding
Expanding window aggregation over a DataFrame’s numeric columns.
DataFrameFlags
DataFrameGroupBy
Deferred GroupBy object for DataFrame.
DataFrameResample
Time-based resampling view over a DataFrame’s numeric columns.
DataFrameRolling
Rolling window aggregation over a DataFrame’s numeric columns.
DataFrameTransposeView
DataFrameXArrayDataset
DataFrameXArrayVariable
DatetimeAccessor
DayMonthGuess
The guess guess_day_month_format makes.
DenseGroupLayout
The dense group ids of one grouping key - each row’s group number in first-seen order, and the group count - computed by the first groupby that needs them and shared by every SeriesGroupBy built over that key with Series::groupby_sharing: pandas’ groupby object factorizes its keys once for all its column selections (g['a'].sum(); g['b'].max()), where each selection here refactorized them (br-frankenpandas-vug8g). The ids are an Arc so a hand-out is O(1) (n usizes, 16 MB at 2M rows). A frame groupby over one text key keeps its dense grouping here too (DataFrameGroupBy::sharing): g.size(); g.sum() factorized the key’s million strings each call (12 ms; pandas 1.6 once its grouper is made; br-frankenpandas-e186m).
Ewm
Exponentially weighted moving window aggregation over a Series.
Expanding
Expanding window aggregation over a Series.
Float64BlockView
O(1) zero-copy view of a block-backed homogeneous-float DataFrame, matching pandas’ df.values on a single-block float frame (an F-contiguous (rows, cols) array sharing the frame’s memory).
GroupByEwm
Grouped exponentially weighted window over a DataFrameGroupBy.
GroupByExpanding
Grouped expanding window over a DataFrameGroupBy.
GroupByResample
GroupByRolling
Grouped rolling window over a DataFrameGroupBy.
HistogramSpec
Backend-neutral histogram request produced by hist() hooks.
IndexSlice
Slicing specification for index and MultiIndex selections, matching pd.IndexSlice.
JsonOptions
pandas’ to_json keywords around the orient (the dates are the caller’s): the floats’ double_precision (PandasJsonDouble) and whether the split / table orients carry the index (index=False leaves it out; br-frankenpandas-gl38f).
LabelName
A Series’ name, like an axis’ name, is a LabelName: its text, and its typed label when it is not a string (fvsao.32, fvsao.64). A pandas name - a Series’ name, an index’s or a column axis’ name: its text - what it is keyed and printed as - and, when it is not a string, the typed pandas label it stands for (df[0]’s name is the integer 0, df.set_index(0).index.name too; they were the strings ‘0’; fvsao.32, fvsao.64). It reads as the text (Deref, Display, Debug, serde, comparison with a string), and the label rides along wherever the name is cloned; a name rebuilt from text alone is a string.
ListAccessor
Accessor for list operations on a Series.
OnlineEwm
Streaming EWM accumulator. Returned by Ewm::online.
PandasJsonDouble
A float’s text as pandas’ to_json writes it (its vendored ujson encoder) at precision decimals (double_precision, 0..=15), built on the stack: above 1e16 or below 1e-15 C’s %.{p}g (‘1.23456789e+20’); anything else fixed point - the fraction scaled by 10^p, truncated and then rounded (a half up when the digit is odd or zero), carried into the whole part, its trailing zeros trimmed (‘2.0’ keeps one); not finite, null. serde_json’s shortest round trip wrote 0.30000000000000004 for pandas’ 0.3 and 1e-12 for its 0.0 (br-frankenpandas-6udgl).
PlotSeriesSpec
One logical series ready for a future plotting backend.
PlotSpec
Backend-neutral plot request produced by plot() hooks.
Resample
Time-based resampling view over a Series.
ResampleGrouping
ResampleLayout
The bins of a resampler’s rows, computed by its first single-pass reduction and read by the rest - and by every column of a frame’s - so they only fold their values, as pandas’ resampler holds its binner (each reduction read every row’s stamp twice; br-frankenpandas-xmwso).
Rolling
Rolling window aggregation over a Series.
ScatterMatrixSpec
Backend-neutral scatter matrix request produced by scatter_matrix() hooks.
Series
SeriesGroupBy
GroupBy for Series, grouping by values of another Series.
SeriesGroupByEwm
Grouped exponentially weighted window over a SeriesGroupBy.
SeriesGroupByExpanding
Grouped expanding window over a SeriesGroupBy.
SeriesGroupByResample
Grouped resampling over a SeriesGroupBy.
SeriesGroupByRolling
Grouped rolling window over a SeriesGroupBy.
SeriesXArrayDataArray
xarray DataArray representation of a Series.
SparseAccessor
Accessor for sparse operations on a Series.
SparseDataFrameView
StringAccessor
StructAccessor
Accessor for struct operations on a Series.
StyledDataFrame
A lightweight analogue of pandas’ Styler, returned by DataFrame::style.
TablePlotSpec
Backend-neutral table plot request produced by table() hooks (pandas pandas.plotting.table).
ToDatetimeOptions
ToNumericOptions
Options for to_numeric_with_options.
ToTimedeltaOptions
Options for to_timedelta conversion.
TzLocalizeOptions

Enums§

ColumnSelection
ConcatJoin
CsvQuoting
DataFrameArithmeticOperand
DataFrameColumnInput
DataFrameComparisonOperand
DataFrameDictAxisLabels
DataFrameDictResult
DatetimeErrors
pandas’ to_datetime(errors=).
DatetimeTextKey
How pandas’ .loc / [] reads a text key on a datetime index.
DropNaHow
FrameError
KdeBandwidthMethod
Bandwidth selection rule for 1-D Gaussian Kernel Density Estimation, matching scipy.stats.gaussian_kde (pandas.Series.plot.kde / DataFrame.plot.kde).
PlotKind
Logical plot kind requested by a pandas-style plotting hook.
ResampleClosed
Shared resample grouping used by Series and DataFrame resample paths.
ResampleLabel
SeriesResetIndexResult
SeriesTypedValues
Borrowed typed numeric values for a Series.
ToDatetimeOrigin
ToNumericErrors
Convert a Series to a numeric dtype.
ToTimedeltaErrors
Error handling mode for to_timedelta conversions.
TzAmbiguousPolicy
Datetime accessor for Series, analogous to pd.Series.dt.
TzNonexistentPolicy
ValueCountsOrder
The order a grouped value_counts emits its (group, value) rows in (SeriesGroupBy::value_counts_with_options).

Constants§

JSON_DOUBLE_PRECISION
pandas’ to_json default double_precision.
NUMPY_BOOL_SUBTRACT
numpy’s TypeError for subtracting booleans, which pandas lets through from bool - bool and from a quantile interpolating bool values.

Traits§

DataFrameApplyArg

Functions§

add_calendar_months
nanos plus months calendar months, the day clipped to the target month’s length and the time of day kept - dateutil’s relativedelta, which pandas’ DateOffset(years=, months=) applies (Jan 31 + 1 month is Feb 29 in 2024).
array
Construct a 1D array / Series, matching pd.array(data, dtype=None).
aware_datetime_parts
An aware datetime to_datetime could not put in one zone with the rest (mixed offsets; pandas answers an object column of Timestamps): its UTC nanoseconds, the zone pandas names it by - UTC for a zero offset, UTC+01:00 for another, a named zone by its name - and its offset from UTC in seconds.
calendar_date_range
pandas date_range over a calendar offset (W and W-MON..W-SAT, MS/ME, QS/QE, YS/YE, B, BMS/BME, BQS/BQE, BYS/BYE, SMS/SME, anchored and with a count): the offset’s anchors from start on (periods of them, or every one through end), or the periods anchors that end on or before end. Each keeps the endpoint’s time of day, as pandas’ offsets do (date_range('2024-01-01 10:00', periods=3, freq='MS') is 10:00 on the first of each month). Ok(None) for a fixed step (D, h, min, …), which the caller ranges affinely.
categorical_array_ordering_refusal
pandas’ refusal to order a categorical against plain values - Categorical._cat_compare_op orders only two categoricals - naming op as the categorical sees it (br-frankenpandas-x6p40).
centered_offset_window_bounds
pandas’ variable-window indexer centred (rolling('3D', center=True)) over monotonic timestamps ts: row i‘s window is the interval of length offset centred on ts[i] - from ts[i] - offset / 2 (open, closed as closed says) to ts[i] + offset / 2 (closed on the right when closed is) - found as pandas’ calculate_variable_window_bounds finds it: the first row’s window starts at row 0, a start scanned forward from the previous row’s, an end scanned forward from the previous row’s end (br-frankenpandas-gv69z; it was refused).
column_key
A Series’ name, like an axis’ name, is a LabelName: its text, and its typed label when it is not a string (fvsao.32, fvsao.64). The canonical name a typed column label keys its column under: its pandas text (0, 1.5, True, 2024-01-01 00:00:00), the string itself for a string label. The binding keys columns by it, so a label and its name always agree.
concat_dataframes
Concatenate DataFrames along axis 0 (row-wise).
concat_dataframes_with_axis
Concatenate DataFrames along the requested axis.
concat_dataframes_with_axis_join
Concatenate DataFrames along axis with explicit join policy.
concat_dataframes_with_axis_join_ignoring_index
concat_dataframes_with_axis_join whose outer row concat builds a RangeIndex when ignore_index: the frames’ indexes were concatenated (each as an i64 view) and then dropped (concat(ignore_index=True) of 300k rows 0.52x pandas; br-frankenpandas-uxjm4).
concat_dataframes_with_ignore_index
Concatenate DataFrames along axis 0 with optional index reset.
concat_dataframes_with_keys
Concatenate DataFrames with keys for hierarchical labeling.
concat_series
Concatenate multiple Series along axis 0 (row-wise).
concat_series_with_ignore_index
Concatenate Series with optional index reset.
convert_column_dtypes_with
pandas’ convert_dtypes (pandas.core.dtypes.cast) for one column: with infer_objects the column’s object values inferred first; nullable, string, categorical and datetime columns kept; then, in pandas’ order, text to string (convert_string); int kinds to Int64, float and bool kinds whose present values are all whole to Int64 (convert_integer); float and bool kinds to Float64 - Int64 when whole and convert_integer (convert_floating); bools, and an object column of bools, to boolean (convert_boolean) - so bools without convert_boolean become Int64, as pandas’. What no switch retypes keeps its dtype. The switches were not taken (br-frankenpandas-di8vx).
cov_matrix_all_valid
The covariance matrix (row-major, columns.len() squared) of all-valid float columns of one length, each pair the bits Series::cov_with_options answers for it: each column’s mean (a sum in row order over all its rows) once, then every pair’s centered cross-sum in one pass over the rows, each pair its own accumulator in row order. The pairwise calls ran two latency-bound passes a pair (df.cov() of 200k x 3 0.61x pandas). A caller passes no column holding a NaN.
crosstab
Compute a contingency table (crosstab) from two Series (pd.crosstab).
crosstab_normalize
Compute a normalized contingency table (crosstab) from two Series (pd.crosstab(..., normalize=...)).
current_year
The current year, as dateutil reads it to put a two-digit year in a century (UTC here; dateutil’s local clock differs only around New Year).
cut
cut_bins
Bin values into the explicit intervals defined by edges.
cut_bins_with_precision
cut_bins with pandas’ precision= (the digits of the interval labels; 3 in cut_bins).
cut_with_precision
cut with pandas’ precision= (the digits of the interval labels; 3 in cut).
datetime_index_text_key
datetime_text_key of a DatetimeIndex held as typed instants, sorted and holding no NaT: the period’s rows found by a binary search of the instants, the index’s resolution read off them only for text naming less than a day - the labels were made and read, the resolution and the order scanned and every row tested, on each lookup (df.set_index(ts).loc[“2023-03”] 0.30x pandas; br-frankenpandas-vssqa). None for another index or text that is not a date: datetime_text_key of the labels answers those.
datetime_list_label
A label a list key names on a datetime index: date text is its instant (pandas converts the list with to_datetime, so “2024-02” is 2024-02-01); every other label, or any label on another index, is itself.
datetime_text_key
text against a datetime index as pandas’ DatetimeIndex.get_loc reads it (see DatetimeTextKey); None when labels are not all datetimes or text is not a date. The index’s resolution is the coarsest unit (a day at most) every instant is a multiple of. An Err is pandas’ KeyError: a sorted index lying wholly before or after the period. Text was compared as text, so ts.loc['2024-02-01'] and ts.loc['2024-02'] raised.
dateutil_date
dateutil’s reading of a date pandas cannot guess a format for - a two-digit year (01/02/24, 24-01-02, 5 Jan 24) - as pandas falls back to it element by element: three date tokens (numbers, or one month name) split by /, -, ., , or spaces, then optionally a clock (H:MM[:SS[.f]], an AM / PM). The order is dateutil’s resolve_ymd under dayfirst / yearfirst (a number past 31 is the year, a leading one past 12 the day); a year of one or two digits goes to the century that keeps it within 50 years of this_year, as dateutil’s convertyear. None for anything else or a day the month lacks.
day_month_format_warning
pandas’ UserWarning for to_datetime(values, dayfirst=) when the first string can only be read in the other day/month order.
describe_percentile_label
pandas’ describe row label of a percentile: ‘25%’, ‘33.3%’, ‘0.05%’.
downcast_numeric
pd.to_numeric(..., downcast=...)’s narrowing of a numeric Series (fvsao.23): the smallest dtype of the downcast family - ‘integer’ / ‘signed’ int8, int16, int32; ‘unsigned’ uint8 … uint64 when no value is negative; ‘float’ float32 - no wider than the Series’ own that holds every value, as pandas’ maybe_downcast_numeric accepts it: an integer width when each value cast to it is equal (so whole floats downcast too, and a missing value keeps the Series as it is), float32 when each value is within 5e-4 of its float32. The Series is returned unchanged when no candidate holds it, or when it is not numpy numeric.
evaluate_kde_1d
Evaluate the 1-D Gaussian KDE over grid for finite samples using method, matching scipy.stats.gaussian_kde(finite, bw_method=method)(grid).
factorize
Factorize values into integer codes and unique values (pd.factorize).
factorize_with_options
Factorize values into integer codes and unique values with options (pd.factorize(..., sort=..., use_na_sentinel=...)).
fill_column
column with its missing values filled by fill_value: a categorical column by that category, keeping its categories and ordering (a value outside them is pandas’ TypeError; the fill raised ‘cannot cast scalar of dtype Utf8 to Categorical’ for any value; br-frankenpandas-k2bwx), any other as Column::fillna fills.
fixed_window_bounds
pandas’ fixed-window indexer: row i’s window for a count window, trailing or centred, with closed saying which ends of the interval (i - window, i] (shifted by half a window when centred) it holds.
from_dummies
Convert dummy/indicator DataFrame back to categorical/string columns (pd.from_dummies).
get_dummies
Convert categorical variable into dummy/indicator variables (pd.get_dummies).
get_dummies_with_options
Convert categorical variable into dummy/indicator variables with options (pd.get_dummies).
get_indexer_with_method
pandas’ Index.get_indexer(target, method, limit, tolerance) with a fill method: each target label’s position in source - its own when present, else by method (‘pad’ / ‘ffill’, ‘backfill’ / ‘bfill’, ‘nearest’) under limit and tolerance (one per target label), as reindex(method=) resolves them. pandas’ uniqueness and monotonicity checks are the caller’s (br-frankenpandas-n57tz: the keywords were unexpected).
guess_day_month_format
pandas’ guess_datetime_format for the numeric dates dayfirst changes: three /, - or . separated numbers with a four-digit year first or last, then optionally (after a space or T) HH:MM, HH:MM:SS or HH:MM:SS.f, with an AM/ PM for a 12-hour clock. The two short slots read day then month when dayfirst, month then day otherwise, swapped when the value is only valid the other way round (13/02/2024) - except year-first without dayfirst (2024-13-01), which pandas does not guess. Two-digit years and other shapes are None.
indent_pandas_json
Compact JSON text laid out as pandas’ to_json(indent=n) writes it (its ujson encoder): a newline after each opening bracket and each comma, each element indented n spaces a level, the closing bracket on its own line a level out (an empty container { blank line }), no space after a colon; strings untouched. n of 0 leaves the text compact (br-frankenpandas-gl38f).
index_to_frame
Convert an Index to a single-column DataFrame.
index_to_series
Convert an Index to a Series.
infer_format_warning
pandas’ UserWarning when it cannot guess a column’s format from its first value and falls back to dateutil element by element - said only when another value follows (see dateutil_date).
is_on_anchored_offset
Whether nanos’ date is an anchor of the calendar offset freq (the time of day does not matter, as pandas’ is_on_offset).
kde_bandwidth_1d
Compute the 1-D Gaussian KDE bandwidth h = factor * std(ddof=1) for finite samples, matching scipy.stats.gaussian_kde.
lreshape
Reshape wide-format DataFrame to long-format with grouped columns (pd.lreshape).
masked_index_column
A masked index’s labels as the masked column of its dtype - pandas’ IntegerArray / FloatingArray / BooleanArray under its Index - a missing label the column’s missing value (br-frankenpandas-05cm6); None for any other index.
melt
Reshape DataFrame by unpivoting wide format columns into long format rows (pd.melt).
normalize_categories
A categorical’s categories as pandas’ CategoricalDtype makes them: an int / float mix is float64, every int its float, as pandas’ Index infers it; none may be missing (“Categorical categories cannot be null”) and none may equal another by pandas’ equality - 1, 1.0 and True are one value - (“Categorical categories must be unique”). They were kept as given: Categorical([1, 1.0], categories=[1, 1.0]) built two categories where pandas raises (br-frankenpandas-7zs0a), and add_categories([2.5]) on int categories left them object (br-frankenpandas-yrjrc).
normalize_describe_percentiles
pandas’ describe percentiles: each in [0, 1], no repeats, the median added, sorted (the binding’s datetime rows share them).
offset_window_bounds
pandas’ variable-window indexer over monotonic timestamps ts: row i’s window holds the rows whose time lies in the interval of length offset ending at ts[i], closed as closed says (‘right’: (t - offset, t]), and a closed right end stops at the row itself (a later row at the same time is not in it), an open one before the first row at t.
overflow_policy_for_mode
Map the runtime’s compatibility mode onto the temporal overflow policy.
partial_date_bounds
The first and last nanosecond a date string names at its own resolution, as pandas’ partial-string indexing reads it: “2024” a year, “2024-01” a month, “2024-01-05” a day; with a time, its hour, minute or second (a fractional second is exact). Public for the bindings’ MultiIndex lookups, whose datetime levels read a date string the same way (br-frankenpandas-c4v57).
pivot
Reshape DataFrame by pivoting columns into a multidimensional layout (pd.pivot).
pivot_table
Create a spreadsheet-style pivot table as a DataFrame (pd.pivot_table).
pivot_table_with_dropna
Create a spreadsheet-style pivot table with explicit dropna control (pd.pivot_table(..., dropna=...)).
qcut
Quantile-based binning.
qcut_at_quantiles
Quantile-based binning at an explicit sequence of quantile probabilities.
qcut_probabilities
pandas’ qcut(x, q) probabilities for an integer q: numpy’s linspace(0, 1, q + 1), i * (1 / q) with the last exactly 1 (i / q differs in the last bit: 3 / 10 is 0.3, 3 * (1 / 10) 0.30000000000000004).
qcut_with_edges
qcut_at_quantiles and the edges it cut at, pandas’ qcut(..., retbins=True): the sample quantiles as pandas’ Series.quantile finds them (numpy’s percentile, numpy_lerp), the distinct ones under duplicates='drop'. With no value to bin the edges are NaN - repeated, so duplicates='raise' refuses them as pandas (every value came back NaN).
qcut_with_edges_precision
qcut_with_edges with pandas’ precision= (the digits of the interval labels; 3 in qcut_with_edges).
reindex_column_with_invented_gaps
Reindex one column by positions, applying br-frankenpandas-nywa8 RULE 1 to any gap the operation INVENTS.
reindex_fill_column
The column reindex(fill_value=) builds from values, the kept source cells and the fills: the source’s dtype promoted by the fill, as pandas’ maybe_promote. Inferring it from the cells alone let an int fill decide once no valid source cell was kept - a float column whose kept cells were NaN read as int64 holding NaN, an object one of None as int64 (br-frankenpandas-tct51).
resample_bin_labels
The resample bin of each of labels under freq, labelled as a resample result labels it (its edge), None for a label in no bin (a missing one): pandas’ TimeGrouper among groupby keys, groupby([Grouper(key=‘t’, freq=‘D’), ‘k’]) (br-frankenpandas-h06ox).
sample_seed
The generator seed for sample: the caller’s random_state, or with none a fresh one per call, as pandas draws from numpy’s global generator. A missing seed used to mean 42, so every unseeded sample was the same draw (br-frankenpandas-u1e54). std’s RandomState is keyed randomly per process and advances per call, and the clock is mixed in besides.
select_dtype_canonical
pandas’ canonical type of a select_dtypes name - the numpy scalar type it resolves to (‘int’ / ‘int64’ / ‘Int64’ one type, ‘integer’ another): include and exclude overlap only on the same one (br-frankenpandas-cmv2p).
shift_by_anchored_offset
nanos moved n anchors of the calendar offset freq (an anchored alias: ME, MS, QE-DEC, QS-MAR, YE-JUN, W-MON, B, BME, SME-15, …), keeping its time of day, as pandas adds an anchored offset: forward to the n-th anchor date strictly after its date, back to the |n|-th strictly before it, and for n = 0 its own date when that is an anchor, else the next one (rollforward).
show_versions
Print information about FrankenPandas and system dependencies (pd.show_versions).
timedelta_overflow_message
pandas’ OutOfBoundsTimedelta text for an int past the nanosecond range in unit (“Cannot convert 1000000000000 days to timedelta64[ns] without overflow”; br-frankenpandas-4g57c).
timedelta_total_seconds
Convert a timedelta-like Series to total seconds as Float64.
to_datetime
Convert a Series of strings or integers to normalized ISO 8601 datetime strings.
to_datetime_values_with_options
Convert scalar values to datetime with explicit pandas-like options.
to_datetime_with_format
Convert to datetime with an explicit format string.
to_datetime_with_options
Convert to datetime with explicit pandas-like options.
to_datetime_with_unit
Convert numeric epoch values using an explicit unit.
to_numeric
Convert a Series of strings/bools to numbers, matching pd.to_numeric(arg): errors='raise' by default, so an unparseable value is rejected with an Err. Pass ToNumericErrors::Coerce via to_numeric_with_options to map unparseable values to NaN instead (br-frankenpandas-mlaht).
to_numeric_with_options
Convert a Series of strings/bools to numbers with an explicit errors= policy, matching pd.to_numeric(arg, errors=...).
to_pandas_json
value as compact JSON text with pandas’ to_json floats at precision decimals (PandasJsonDouble).
to_timedelta
Convert a Series of strings or numbers to Timedelta64 representation.
to_timedelta_with_options
Convert to timedelta with explicit options.
to_timedelta_with_unit
Convert numeric values to timedelta using explicit unit.
typed_multiindex_level_column
A MultiIndex level as the typed column a reset_index makes of an int or text level - a coded level’s read through its codes - in its zone when zoned; None for any other level (a missing label among them), whose caller makes its column its own way. MultiIndex.to_frame made each column from a Scalar a row (0.23x pandas; br-frankenpandas-wxrtu).
uniform_zone_datetime_column
Timezone-aware datetime strings in one zone, NaT where a value is missing, as pandas types them: a datetime64[ns, zone] column of UTC nanoseconds. A single dtype cannot hold a mixture of zones, so any naive, non-string, invalid or differently-zoned value declines it (None), as does a column with no aware value. iso_only reads only what pandas’ ISO reader reads (format=‘ISO8601’).
unique
Return unique values of a Series in order of appearance (pd.unique).
value_counts
Return a Series containing counts of unique values (pd.value_counts).
value_counts_with_options
Return a Series containing counts of unique values with options (pd.value_counts).
wide_to_long
Reshape a wide DataFrame to long form (pd.wide_to_long).

Type Aliases§

Flags
Alias for DataFrameFlags matching pd.Flags.