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 rowIndexand 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
SeriesGroupBy(and the corresponding DataFrame-side wrappers): pandas.groupby()semantics including aggregation, transformation, filtering, andapply.Rolling/Expanding/Ewm: window-function builders for Series (rolling, expanding, exponentially-weighted moving stats).DataFrameRolling/DataFrameExpanding/DataFrameEwm: column-wise variants for DataFrame inputs.Resample/DataFrameResample: pandas.resample(freq)for time-indexed Series / DataFrames.
§Accessors
Mirror pandas .str / .dt / .cat / .sparse namespaces:
StringAccessor: vectorized string ops on Utf8 Series.DatetimeAccessor: per-element datetime field extraction. See alsoTzLocalizeOptions/TzAmbiguousPolicy/TzNonexistentPolicyfor tz-aware localization.CategoricalAccessor+CategoricalMetadata: ordered / unordered categorical type machinery.SparseAccessor: paired with fp-columnar’sSparseColumn.
§Type coercion (pandas pd.to_* analogs)
to_numeric: best-effort string -> Int64/Float64 witherrors='raise'|'coerce'semantics.to_datetime/to_datetime_with_format/to_datetime_with_unit/to_datetime_with_options: parse a Series of dates with explicit format / unit / origin (ToDatetimeOrigin) controls. Options bundle:ToDatetimeOptions.to_timedelta/to_timedelta_with_unit: parse ISO-8601 / pandas-shorthand durations.ToTimedeltaOptions/ToTimedeltaErrorsfor tunables.
§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§
- BoxPlot
Spec - Backend-neutral boxplot request produced by
boxplot()hooks. - Categorical
Accessor - Accessor for categorical operations on a Series.
- Categorical
Metadata - Column
Store - Order-preserving, duplicate-tolerant column store.
- Column
Store Iter - Name-sorted merging iterator behind
ColumnStore::iter. - Column
Store Iter Mut - Mutable iterator over columns in positional order.
- Convert
Dtypes - pandas’
convert_dtypesswitches (infer_objects,convert_string,convert_integer,convert_boolean,convert_floating), all on by default. - Data
Frame - Data
Frame CsvRead Options - Data
Frame Dict Split - Data
Frame Dict Tight - Pandas 2.2
to_dict(orient='tight')payload. - Data
Frame Ewm - Exponentially weighted moving window over a DataFrame’s numeric columns.
- Data
Frame Expanding - Expanding window aggregation over a DataFrame’s numeric columns.
- Data
Frame Flags - Data
Frame Group By - Deferred GroupBy object for DataFrame.
- Data
Frame Resample - Time-based resampling view over a DataFrame’s numeric columns.
- Data
Frame Rolling - Rolling window aggregation over a DataFrame’s numeric columns.
- Data
Frame Transpose View - Data
FrameX Array Dataset - Data
FrameX Array Variable - Datetime
Accessor - DayMonth
Guess - The guess
guess_day_month_formatmakes. - Dense
Group Layout - 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
SeriesGroupBybuilt over that key withSeries::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 anArcso 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.
- Float64
Block View - O(1) zero-copy view of a block-backed homogeneous-float
DataFrame, matching pandas’df.valueson a single-block float frame (an F-contiguous(rows, cols)array sharing the frame’s memory). - Group
ByEwm - Grouped exponentially weighted window over a
DataFrameGroupBy. - Group
ByExpanding - Grouped expanding window over a
DataFrameGroupBy. - Group
ByResample - Group
ByRolling - Grouped rolling window over a
DataFrameGroupBy. - Histogram
Spec - Backend-neutral histogram request produced by
hist()hooks. - Index
Slice - Slicing specification for index and MultiIndex selections, matching
pd.IndexSlice. - Json
Options - pandas’
to_jsonkeywords around the orient (the dates are the caller’s): the floats’double_precision(PandasJsonDouble) and whether thesplit/tableorients carry the index (index=Falseleaves it out; br-frankenpandas-gl38f). - Label
Name - 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.nametoo; 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. - List
Accessor - Accessor for list operations on a Series.
- Online
Ewm - Streaming EWM accumulator. Returned by
Ewm::online. - Pandas
Json Double - A float’s text as pandas’
to_jsonwrites it (its vendored ujson encoder) atprecisiondecimals (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). - Plot
Series Spec - One logical series ready for a future plotting backend.
- Plot
Spec - Backend-neutral plot request produced by
plot()hooks. - Resample
- Time-based resampling view over a Series.
- Resample
Grouping - Resample
Layout - 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.
- Scatter
Matrix Spec - Backend-neutral scatter matrix request produced by
scatter_matrix()hooks. - Series
- Series
Group By - GroupBy for Series, grouping by values of another Series.
- Series
Group ByEwm - Grouped exponentially weighted window over a
SeriesGroupBy. - Series
Group ByExpanding - Grouped expanding window over a
SeriesGroupBy. - Series
Group ByResample - Grouped resampling over a
SeriesGroupBy. - Series
Group ByRolling - Grouped rolling window over a
SeriesGroupBy. - SeriesX
Array Data Array - xarray DataArray representation of a Series.
- Sparse
Accessor - Accessor for sparse operations on a Series.
- Sparse
Data Frame View - String
Accessor - Struct
Accessor - Accessor for struct operations on a Series.
- Styled
Data Frame - A lightweight analogue of pandas’
Styler, returned byDataFrame::style. - Table
Plot Spec - Backend-neutral table plot request produced by
table()hooks (pandaspandas.plotting.table). - ToDatetime
Options - ToNumeric
Options - Options for
to_numeric_with_options. - ToTimedelta
Options - Options for to_timedelta conversion.
- TzLocalize
Options
Enums§
- Column
Selection - Concat
Join - CsvQuoting
- Data
Frame Arithmetic Operand - Data
Frame Column Input - Data
Frame Comparison Operand - Data
Frame Dict Axis Labels - Data
Frame Dict Result - Datetime
Errors - pandas’
to_datetime(errors=). - Datetime
Text Key - How pandas’
.loc/[]reads a text key on a datetime index. - Drop
NaHow - Frame
Error - KdeBandwidth
Method - Bandwidth selection rule for 1-D Gaussian Kernel Density Estimation,
matching
scipy.stats.gaussian_kde(pandas.Series.plot.kde/DataFrame.plot.kde). - Plot
Kind - Logical plot kind requested by a pandas-style plotting hook.
- Resample
Closed - Shared resample grouping used by Series and DataFrame resample paths.
- Resample
Label - Series
Reset Index Result - Series
Typed Values - Borrowed typed numeric values for a
Series. - ToDatetime
Origin - ToNumeric
Errors - Convert a Series to a numeric dtype.
- ToTimedelta
Errors - Error handling mode for to_timedelta conversions.
- TzAmbiguous
Policy - Datetime accessor for Series, analogous to
pd.Series.dt. - TzNonexistent
Policy - Value
Counts Order - The order a grouped value_counts emits its (group, value) rows in
(
SeriesGroupBy::value_counts_with_options).
Constants§
- JSON_
DOUBLE_ PRECISION - pandas’
to_jsondefaultdouble_precision. - NUMPY_
BOOL_ SUBTRACT - numpy’s TypeError for subtracting booleans, which pandas lets through
from
bool - booland from a quantile interpolating bool values.
Traits§
Functions§
- add_
calendar_ months nanosplusmonthscalendar 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_datetimecould 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 -UTCfor a zero offset,UTC+01:00for another, a named zone by its name - and its offset from UTC in seconds. - calendar_
date_ range - pandas
date_rangeover 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 fromstarton (periodsof them, or every one throughend), or theperiodsanchors that end on or beforeend. 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
opas the categorical sees it (br-frankenpandas-x6p40). - centered_
offset_ window_ bounds - pandas’ variable-window indexer centred (
rolling('3D', center=True)) over monotonic timestampsts: rowi‘s window is the interval of lengthoffsetcentred onts[i]- fromts[i] - offset / 2(open, closed asclosedsays) tots[i] + offset / 2(closed on the right whenclosedis) - 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_joinwhose outer row concat builds a RangeIndex whenignore_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_objectsthe column’s object values inferred first; nullable,string, categorical and datetime columns kept; then, in pandas’ order, text tostring(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 bitsSeries::cov_with_optionsanswers 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_binswith pandas’precision=(the digits of the interval labels; 3 incut_bins).- cut_
with_ precision cutwith pandas’precision=(the digits of the interval labels; 3 incut).- datetime_
index_ text_ key datetime_text_keyof 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_keyof 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 textagainst a datetime index as pandas’DatetimeIndex.get_locreads it (seeDatetimeTextKey); None whenlabelsare not all datetimes ortextis not a date. The index’s resolution is the coarsest unit (a day at most) every instant is a multiple of. AnErris pandas’ KeyError: a sorted index lying wholly before or after the period. Text was compared as text, sots.loc['2024-02-01']andts.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’sresolve_ymdunderdayfirst/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 ofthis_year, as dateutil’sconvertyear. 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 thedowncastfamily - ‘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_numericaccepts 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
gridforfinitesamples usingmethod, matchingscipy.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 columnwith its missing values filled byfill_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 asColumn::fillnafills.- fixed_
window_ bounds - pandas’ fixed-window indexer: row
i’s window for a countwindow, trailing or centred, withclosedsaying 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 insource- its own when present, else bymethod(‘pad’ / ‘ffill’, ‘backfill’ / ‘bfill’, ‘nearest’) underlimitandtolerance(one per target label), asreindex(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_formatfor the numeric datesdayfirstchanges: three/,-or.separated numbers with a four-digit year first or last, then optionally (after a space orT)HH:MM,HH:MM:SSorHH:MM:SS.f, with anAM/PMfor a 12-hour clock. The two short slots read day then month whendayfirst, month then day otherwise, swapped when the value is only valid the other way round (13/02/2024) - except year-first withoutdayfirst(2024-13-01), which pandas does not guess. Two-digit years and other shapes areNone. - 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 indentednspaces a level, the closing bracket on its own line a level out (an empty container{blank line}), no space after a colon; strings untouched.nof 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 offsetfreq(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)forfinitesamples, matchingscipy.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: rowi’s window holds the rows whose time lies in the interval of lengthoffsetending atts[i], closed asclosedsays (‘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 att. - 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 integerq: numpy’slinspace(0, 1, q + 1),i * (1 / q)with the last exactly 1 (i / qdiffers in the last bit: 3 / 10 is 0.3, 3 * (1 / 10) 0.30000000000000004). - qcut_
with_ edges qcut_at_quantilesand the edges it cut at, pandas’qcut(..., retbins=True): the sample quantiles as pandas’Series.quantilefinds them (numpy’s percentile,numpy_lerp), the distinct ones underduplicates='drop'. With no value to bin the edges are NaN - repeated, soduplicates='raise'refuses them as pandas (every value came back NaN).- qcut_
with_ edges_ precision qcut_with_edgeswith pandas’precision=(the digits of the interval labels; 3 inqcut_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 fromvalues, 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
labelsunderfreq, labelled as a resample result labels it (its edge),Nonefor 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’srandom_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’sRandomStateis 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 nanosmovednanchors of the calendar offsetfreq(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 anErr. PassToNumericErrors::Coerceviato_numeric_with_optionsto map unparseable values toNaNinstead (br-frankenpandas-mlaht). - to_
numeric_ with_ options - Convert a Series of strings/bools to numbers with an explicit
errors=policy, matchingpd.to_numeric(arg, errors=...). - to_
pandas_ json valueas compact JSON text with pandas’ to_json floats atprecisiondecimals (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_onlyreads 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
DataFrameFlagsmatchingpd.Flags.