code stringlengths 3 6.57k |
|---|
left.fillna(method=method, axis=fill_axis, limit=limit) |
right.fillna(method=method, axis=fill_axis, limit=limit) |
is_datetime64tz_dtype(left.index) |
left.__finalize__(self) |
right.__finalize__(other) |
isinstance(self, ABCSeries) |
ValueError("cannot align series to a series other than axis 0") |
self.index.equals(other.index) |
self._reindex_indexer(join_index, lidx, copy) |
other._reindex_indexer(join_index, ridx, copy) |
self.index.equals(other.index) |
fdata.reindex_indexer(join_index, lidx, axis=1) |
self.columns.equals(other.index) |
fdata.reindex_indexer(join_index, lidx, axis=0) |
ValueError("Must specify axis=0 or 1") |
fdata.copy() |
self._constructor(fdata) |
other.reindex(join_index, level=level) |
notna(fill_value) |
or (method is not None) |
left.fillna(fill_value, method=method, limit=limit, axis=fill_axis) |
right.fillna(fill_value, method=method, limit=limit) |
or (not is_series and axis == 0) |
is_datetime64tz_dtype(left.index) |
left.__finalize__(self) |
right.__finalize__(other) |
validate_bool_kwarg(inplace, "inplace") |
com.apply_if_callable(cond, self) |
isinstance(cond, NDFrame) |
cond.align(self, join="right", broadcast_axis=1) |
hasattr(cond, "shape") |
np.asanyarray(cond) |
ValueError("Array conditional must be same shape as self") |
self._constructor(cond, **self._construct_axes_dict() |
bool(inplace) |
cond.fillna(fill_value) |
isinstance(cond, ABCDataFrame) |
is_bool_dtype(cond) |
ValueError(msg.format(dtype=cond.dtype) |
is_bool_dtype(dt) |
ValueError(msg.format(dtype=dt) |
hasattr(other, "align") |
other._get_axis(i) |
equals(ax) |
enumerate(self.axes) |
isinstance(other, np.ndarray) |
len(other) |
np.array(other[0]) |
len(cond[icond]) |
len(other) |
first (if try_quick) |
np.asarray(self) |
new_other.copy() |
self._constructor(other, **self._construct_axes_dict() |
getattr(other, "ndim", 0) |
self._get_axis_number(axis) |
self._get_block_manager_axis(axis) |
self._check_inplace_setting(other) |
self._update_inplace(new_data) |
self._constructor(new_data) |
__finalize__(self) |
s (though pandas doesn't check it) |
s (though pandas doesn't check it) |
type (if possible) |
df1.where(m, df2) |
np.where(m, df1, df2) |
pd.Series(range(5) |
s.where(s > 0) |
s.mask(s > 0) |
s.where(s > 1, 10) |
pd.DataFrame(np.arange(10) |
reshape(-1, 2) |
df.where(m, -df) |
df.where(m, -df) |
np.where(m, df, -df) |
df.where(m, -df) |
df.mask(~m, -df) |
com.apply_if_callable(other, self) |
validate_bool_kwarg(inplace, "inplace") |
com.apply_if_callable(cond, self) |
hasattr(cond, "__invert__") |
np.array(cond) |
rule (e.g. 'EOM') |
df.shift(periods=3) |
df.shift(periods=1, axis='columns') |
df.shift(periods=3, fill_value=0) |
Appender(_shared_docs["shift"] % _shared_doc_kwargs) |
self.copy() |
self._get_block_manager_axis(axis) |
self.tshift(periods, freq) |
self._constructor(new_data) |
__finalize__(self) |
slice_shift(self: FrameOrSeries, periods: int = 1, axis=0) |
slice(None, -periods) |
slice(periods, None) |
slice(-periods, None) |
slice(None, periods) |
self._slice(vslicer, axis=axis) |
self._get_axis(axis) |
new_obj.set_axis(shifted_axis, axis=axis, inplace=True) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.