code stringlengths 3 6.57k |
|---|
len(other.index) |
ValueError('matrices are not aligned') |
self.reindex(columns=common, copy=False) |
other.reindex(index=common, copy=False) |
np.asarray(other) |
isinstance(other, DataFrame) |
self._constructor(np.dot(lvals, rvals) |
isinstance(other, Series) |
Series(np.dot(lvals, rvals) |
isinstance(rvals, (np.ndarray, Index) |
np.dot(lvals, rvals) |
self._constructor(result, index=left.index) |
Series(result, index=left.index) |
TypeError('unsupported type: %s' % type(other) |
methods (to / from other formats) |
from_dict(cls, data, orient='columns', dtype=None) |
orient.lower() |
len(data) |
isinstance(list(data.values() |
_from_nested_dict(data) |
list(data.values() |
list(data.keys() |
ValueError('only recognize index or columns for orient') |
cls(data, index=index, columns=columns, dtype=dtype) |
deprecate_kwarg(old_arg_name='outtype', new_arg_name='orient') |
to_dict(self, orient='dict') |
dict (default) |
Series(values) |
orient.lower() |
startswith('d') |
dict((k, v.to_dict() |
compat.iteritems(self) |
orient.lower() |
startswith('l') |
dict((k, v.tolist() |
compat.iteritems(self) |
orient.lower() |
startswith('sp') |
self.index.tolist() |
self.columns.tolist() |
self.values.tolist() |
orient.lower() |
startswith('s') |
dict((k, v) |
compat.iteritems(self) |
orient.lower() |
startswith('r') |
dict((k, v) |
zip(self.columns, row) |
ValueError("orient '%s' not understood" % orient) |
int (default 10000) |
boolean (default True) |
boolean (default False) |
ndarray (structured dtype) |
_ensure_index(columns) |
com.is_iterator(data) |
cls() |
next(data) |
next(data) |
cls(index=index, columns=columns) |
hasattr(first_row, 'dtype') |
values.extend(itertools.islice(data, nrows - 1) |
np.array(values, dtype=dtype) |
isinstance(data, dict) |
_ensure_index(sorted(data) |
compat.iteritems(data) |
arr_columns.append(k) |
arrays.append(v) |
isinstance(data, (np.ndarray, DataFrame) |
_to_arrays(data, columns) |
_ensure_index(columns) |
_ensure_index(arr_columns) |
_ensure_index(columns) |
set() |
set(exclude) |
if (isinstance(index, compat.string_types) |
hasattr(index, "__iter__") |
columns.get_loc(index) |
exclude.add(index) |
len(arrays) |
Index(arrays[i], name=index) |
Index([], name=index) |
arr_columns.get_loc(field) |
exclude.update(index) |
any(exclude) |
arr_columns.get_loc(col) |
enumerate(arrays) |
arr_columns.drop(arr_exclude) |
columns.drop(exclude) |
cls(mgr) |
to_records(self, index=True, convert_datetime64=True) |
com.is_datetime64_dtype(self.index) |
self.index.to_pydatetime() |
isinstance(self.index, MultiIndex) |
lmap(np.array, zip(*self.index.values) |
get_values() |
list(self.index.names) |
isinstance(self.index, MultiIndex) |
enumerate(index_names) |
lmap(str, self.columns) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.