code stringlengths 3 6.57k |
|---|
isinstance(existing, Index) |
object.__setattr__(self, name, value) |
object.__setattr__(self, name, value) |
except (AttributeError, TypeError) |
isinstance(self, ABCDataFrame) |
and (is_list_like(value) |
object.__setattr__(self, name, value) |
_dir_additions(self) |
self._info_axis.unique(level=0) |
isinstance(c, str) |
c.isidentifier() |
super() |
_dir_additions() |
union(additions) |
_protect_consolidate(self, f) |
len(self._data.blocks) |
f() |
len(self._data.blocks) |
self._clear_item_cache() |
_consolidate_inplace(self) |
f() |
self._data.consolidate() |
self._protect_consolidate(f) |
_consolidate(self, inplace: bool_t = False) |
validate_bool_kwarg(inplace, "inplace") |
self._consolidate_inplace() |
self._data.consolidate() |
self._protect_consolidate(f) |
self._constructor(cons_data) |
__finalize__(self) |
_is_mixed_type(self) |
self._protect_consolidate(f) |
_is_numeric_mixed_type(self) |
self._protect_consolidate(f) |
_check_inplace_setting(self, value) |
is_float(value) |
np.isnan(value) |
_get_numeric_data(self) |
self._constructor(self._data.get_numeric_data() |
__finalize__(self) |
_get_bool_data(self) |
self._constructor(self._data.get_bool_data() |
__finalize__(self) |
values(self) |
dtypes (even of numeric types) |
type (e.g., int64) |
columns(e.g., str/object, int64, float32) |
types (e.g., object) |
pd.DataFrame([('parrot', 24.0, 'second') |
self._consolidate_inplace() |
self._data.as_array(transpose=self._AXIS_REVERSED) |
_values(self) |
_internal_get_values(self) |
dtypes(self) |
pd.Timestamp('20180310') |
Series(self._data.get_dtypes() |
_to_dict_of_blocks(self, copy: bool_t = True) |
self._constructor(v) |
__finalize__(self) |
self._data.to_dict(copy=copy) |
items() |
pd.DataFrame(data=d) |
df.astype('int32') |
df.astype({'col1': 'int32'}) |
pd.Series([1, 2], dtype='int32') |
ser.astype('int64') |
ser.astype('category') |
Categories (2, int64) |
ser.astype(cat_dtype) |
Categories (2, int64) |
pd.Series([1, 2]) |
s1.astype('int64', copy=False) |
is_dict_like(dtype) |
len(dtype) |
self.astype(new_type, copy, errors) |
dtype.keys() |
self.items() |
col.astype(dtype=dtype[col_name], copy=copy, errors=errors) |
results.append(col.copy() |
is_extension_array_dtype(dtype) |
astype(dtype, copy=copy) |
range(len(self.columns) |
self._data.astype(dtype=dtype, copy=copy, errors=errors) |
self._constructor(new_data) |
__finalize__(self) |
pd.concat(results, axis=1, copy=False) |
copy(self: FrameOrSeries, deep: bool_t = True) |
object (see notes below) |
copy (and vice versa) |
data (see examples below) |
pd.Series([1, 2], index=["a", "b"]) |
s.copy() |
default (deep) |
pd.Series([1, 2], index=["a", "b"]) |
s.copy() |
s.copy(deep=False) |
pd.Series([[1, 2], [3, 4]]) |
s.copy() |
self._data.copy(deep=deep) |
self._constructor(data) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.