code stringlengths 3 6.57k |
|---|
validate_bool_kwarg(inplace, "inplace") |
is_bool(regex) |
AssertionError("'to_replace' must be 'None' if 'regex' is not a bool") |
self._consolidate_inplace() |
None (GH5319) |
is_dict_like(to_replace) |
is_dict_like(regex) |
isinstance(to_replace, (tuple, list) |
isinstance(self, ABCDataFrame) |
_single_replace(self, to_replace, method, inplace, limit) |
is_dict_like(to_replace) |
is_dict_like(regex) |
list(to_replace.items() |
zip(*items) |
else ([], []) |
is_dict_like(v) |
any(are_mappings) |
all(are_mappings) |
list(zip(*v.items() |
or ([], []) |
list(keys) |
list(values) |
is_dict_like(to_replace) |
is_dict_like(value) |
self.copy() |
to_replace.items() |
is_list_like(value) |
to_replace.items() |
len(keys) |
enumerate(keys) |
TypeError("value argument must be scalar, dict, or Series") |
is_list_like(to_replace) |
is_list_like(value) |
len(to_replace) |
len(value) |
len(to_replace) |
len(value) |
is_re_compilable(regex) |
is_list_like(regex) |
is_dict_like(regex) |
repr(type(regex) |
is_dict_like(value) |
value.items() |
is_list_like(value) |
repr(type(to_replace) |
self._update_inplace(new_data) |
self._constructor(new_data) |
__finalize__(self) |
df.interpolate(method='polynomial', order=5) |
values
(interpolate) |
values (extrapolate) |
polynomials
(Akima interpolator) |
pd.Series([0, 1, np.nan, 3]) |
s.interpolate() |
s.interpolate(method='pad', limit=2) |
pd.Series([0, 2, np.nan, 8]) |
s.interpolate(method='polynomial', order=2) |
forward (that is, going down) |
pd.DataFrame([(0.0, np.nan, -1.0, 1.0) |
list('abcd') |
df.interpolate(method='linear', limit_direction='forward', axis=0) |
interpolate(method='polynomial', order=2) |
Appender(_shared_docs["interpolate"] % _shared_doc_kwargs) |
validate_bool_kwarg(inplace, "inplace") |
self._get_axis_number(axis) |
_maybe_transposed_self._get_axis_number(ax) |
isinstance(_maybe_transposed_self.index, MultiIndex) |
_maybe_transposed_self._data.get_dtype_counts() |
get("object") |
np.arange(len(_maybe_transposed_self._get_axis(alt_ax) |
_maybe_transposed_self._get_axis(alt_ax) |
is_numeric_dtype(index) |
is_datetime64_any_dtype(index) |
is_timedelta64_dtype(index) |
isna(index) |
any() |
self._constructor(new_data) |
self._update_inplace(new_data) |
self._constructor(new_data) |
__finalize__(self) |
asof(self, where, subset=None) |
row(s) |
row (for each element in `where`, if list) |
columns (if not `None`) |
Date(s) |
row(s) |
pd.Series([1, 2, np.nan, 4], index=[10, 20, 30, 40]) |
s.asof(20) |
s.asof([5, 20]) |
s.asof(30) |
isinstance(where, str) |
Timestamp(where) |
ValueError("asof requires a sorted index") |
isinstance(self, ABCSeries) |
ValueError("subset is not valid for Series") |
is_list_like(subset) |
is_list_like(where) |
isinstance(self.index, PeriodIndex) |
Period(where, freq=self.index.freq) |
Series(index=self.columns, name=where, dtype=np.float64) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.