id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7,400 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/interchange/utils.py | pandas.core.interchange.utils.ArrowCTypes | class ArrowCTypes:
"""
Enum for Apache Arrow C type format strings.
The Arrow C data interface:
https://arrow.apache.org/docs/format/CDataInterface.html#data-type-description-format-strings
"""
NULL = 'n'
BOOL = 'b'
INT8 = 'c'
UINT8 = 'C'
INT16 = 's'
UINT16 = 'S'
INT32 =... | class ArrowCTypes:
'''
Enum for Apache Arrow C type format strings.
The Arrow C data interface:
https://arrow.apache.org/docs/format/CDataInterface.html#data-type-description-format-strings
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 32 | 2 | 20 | 20 | 19 | 12 | 20 | 20 | 19 | 0 | 0 | 0 | 0 |
7,401 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/blocks.py | pandas.core.internals.blocks.Block | from pandas.core.dtypes.astype import astype_array_safe, astype_is_view
from pandas.util._validators import validate_bool_kwarg
from pandas.core.array_algos.putmask import extract_bool_array, putmask_inplace, putmask_without_repeat, setitem_datetimelike_compat, validate_putmask
from pandas.util._exceptions import find_... |
class Block(PandasObject, libinternals.Block):
'''
Canonical n-dimensional unit of homogeneous dtype contained in a pandas
data structure
Index-ignorant; let the container take care of that
'''
@final
@cache_readonly
def _validate_ndim(self) -> bool:
'''
We validate dime... | 116 | 41 | 21 | 2 | 13 | 6 | 3 | 0.5 | 2 | 26 | 1 | 2 | 61 | 1 | 61 | 68 | 1,449 | 214 | 829 | 340 | 621 | 415 | 518 | 200 | 456 | 12 | 2 | 4 | 171 |
7,402 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/blocks.py | pandas.core.internals.blocks.DatetimeLikeBlock | from pandas.core.arrays import DatetimeArray, ExtensionArray, IntervalArray, NumpyExtensionArray, PeriodArray, TimedeltaArray
class DatetimeLikeBlock(NDArrayBackedExtensionBlock):
"""Block for datetime64[ns], timedelta64[ns]."""
__slots__ = ()
is_numeric = False
values: DatetimeArray | TimedeltaArray |
class DatetimeLikeBlock(NDArrayBackedExtensionBlock):
'''Block for datetime64[ns], timedelta64[ns].'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 77 | 6 | 1 | 4 | 3 | 3 | 1 | 4 | 3 | 3 | 0 | 5 | 0 | 0 |
7,403 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/blocks.py | pandas.core.internals.blocks.EABackedBlock | from pandas._libs import NaT, internals as libinternals, lib
from pandas.core.arrays import DatetimeArray, ExtensionArray, IntervalArray, NumpyExtensionArray, PeriodArray, TimedeltaArray
from typing import TYPE_CHECKING, Any, Literal, Self, cast, final
from pandas.errors import AbstractMethodError, OutOfBoundsDatetime,... |
class EABackedBlock(Block):
'''
Mixin for Block subclasses backed by ExtensionArray.
'''
@final
def shift(self, periods: int, fill_value: Any=None) -> list[Block]:
'''
Shift the block by `periods`.
Dispatches to underlying ExtensionArray and re-boxes in an
Extens... | 18 | 5 | 29 | 4 | 18 | 7 | 5 | 0.35 | 1 | 17 | 1 | 2 | 8 | 0 | 8 | 76 | 254 | 43 | 156 | 57 | 131 | 55 | 120 | 42 | 111 | 10 | 3 | 4 | 36 |
7,404 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/blocks.py | pandas.core.internals.blocks.ExtensionBlock | from pandas._libs import NaT, internals as libinternals, lib
from pandas.core.arrays import DatetimeArray, ExtensionArray, IntervalArray, NumpyExtensionArray, PeriodArray, TimedeltaArray
from typing import TYPE_CHECKING, Any, Literal, Self, cast, final
from pandas.errors import AbstractMethodError, OutOfBoundsDatetime,... |
class ExtensionBlock(EABackedBlock):
'''
Block for holding extension types.
Notes
-----
This holds all 3rd-party extension array types. It's also the immediate
parent class for our internal extension types' blocks.
ExtensionArrays are limited to 1-D.
'''
def fillna(self, value, lim... | 16 | 6 | 21 | 2 | 12 | 7 | 3 | 0.65 | 1 | 19 | 0 | 0 | 11 | 2 | 11 | 87 | 262 | 33 | 140 | 39 | 111 | 91 | 80 | 21 | 68 | 7 | 4 | 3 | 33 |
7,405 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/blocks.py | pandas.core.internals.blocks.NDArrayBackedExtensionBlock | class NDArrayBackedExtensionBlock(EABackedBlock):
"""
Block backed by an NDArrayBackedExtensionArray
"""
values: NDArrayBackedExtensionArray
@property
def is_view(self) -> bool:
"""return a boolean if I am possibly a view"""
return self.values._ndarray.base is not None | class NDArrayBackedExtensionBlock(EABackedBlock):
'''
Block backed by an NDArrayBackedExtensionArray
'''
@property
def is_view(self) -> bool:
'''return a boolean if I am possibly a view'''
pass | 3 | 2 | 4 | 0 | 2 | 2 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 77 | 12 | 2 | 5 | 3 | 2 | 5 | 4 | 2 | 2 | 1 | 4 | 0 | 1 |
7,406 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/blocks.py | pandas.core.internals.blocks.NumpyBlock | from pandas.util._decorators import cache_readonly
from pandas.core.arrays import DatetimeArray, ExtensionArray, IntervalArray, NumpyExtensionArray, PeriodArray, TimedeltaArray
import numpy as np
class NumpyBlock(Block):
values: np.ndarray
__slots__ = ()
@property
def is_view(self) -> bool:
""... |
class NumpyBlock(Block):
@property
def is_view(self) -> bool:
'''return a boolean if I am possibly a view'''
pass
@property
def array_values(self) -> ExtensionArray:
pass
def get_values(self, dtype: DtypeObj | None=None) -> np.ndarray:
pass
@cache_readonly
... | 8 | 1 | 4 | 0 | 3 | 1 | 1 | 0.11 | 1 | 3 | 0 | 0 | 4 | 0 | 4 | 72 | 24 | 5 | 18 | 11 | 10 | 2 | 15 | 8 | 10 | 2 | 3 | 1 | 5 |
7,407 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/concat.py | pandas.core.internals.concat.JoinUnit | from pandas.core.dtypes.missing import is_valid_na_for_dtype
from pandas.util._decorators import cache_readonly
from pandas.core.internals.managers import BlockManager, make_na_array
import numpy as np
from pandas.core.dtypes.common import is_1d_only_ea_dtype, needs_i8_conversion
from pandas._libs.missing import NA
fro... |
class JoinUnit:
def __init__(self, block: Block) -> None:
pass
def __repr__(self) -> str:
pass
def _is_valid_na_for(self, dtype: DtypeObj) -> bool:
'''
Check that we are all-NA of a type/dtype that is compatible with this dtype.
Augments `self.is_na` with an addit... | 7 | 1 | 13 | 2 | 8 | 3 | 3 | 0.4 | 0 | 5 | 0 | 0 | 5 | 1 | 5 | 5 | 70 | 14 | 40 | 14 | 33 | 16 | 38 | 13 | 32 | 6 | 0 | 4 | 15 |
7,408 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/managers.py | pandas.core.internals.managers.BaseBlockManager | from collections.abc import Callable, Hashable, Sequence
from pandas.core.dtypes.common import ensure_platform_int, is_1d_only_ea_dtype, is_list_like
from pandas.core.base import PandasObject
from pandas._libs import algos as libalgos, internals as libinternals, lib
from pandas.core.internals.blocks import Block, Numpy... |
class BaseBlockManager(PandasObject):
'''
Core internal data structure to implement DataFrame, Series, etc.
Manage a bunch of labeled 2D mixed-type ndarrays. Essentially it's a
lightweight blocked set of labeled data to be manipulated by the DataFrame
public API class
Attributes
----------
... | 81 | 25 | 13 | 1 | 9 | 3 | 2 | 0.46 | 1 | 20 | 1 | 2 | 55 | 0 | 56 | 63 | 896 | 147 | 516 | 193 | 391 | 236 | 345 | 126 | 287 | 16 | 2 | 5 | 129 |
7,409 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/managers.py | pandas.core.internals.managers.BlockManager | from collections.abc import Callable, Hashable, Sequence
from pandas.core.dtypes.common import ensure_platform_int, is_1d_only_ea_dtype, is_list_like
from pandas.core.internals.blocks import Block, NumpyBlock, ensure_block_shape, extend_blocks, get_block_type, maybe_coerce_values, new_block, new_block_2d
from pandas._l... |
class BlockManager(libinternals.BlockManager, BaseBlockManager):
'''
BaseBlockManager that holds 2D blocks.
'''
def __init__(self, blocks: Sequence[Block], axes: Sequence[Index], verify_integrity: bool=True) -> None:
pass
def _verify_integrity(self) -> None:
pass
@classmethod
... | 37 | 26 | 27 | 3 | 16 | 8 | 3 | 0.55 | 2 | 23 | 1 | 0 | 26 | 7 | 29 | 92 | 897 | 142 | 493 | 194 | 416 | 273 | 348 | 148 | 316 | 15 | 3 | 3 | 104 |
7,410 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/managers.py | pandas.core.internals.managers.SingleBlockManager | import numpy as np
from pandas._libs.internals import BlockPlacement, BlockValuesRefs
from pandas.core.construction import ensure_wrapped_if_datetimelike, extract_array
from pandas.core.dtypes.missing import array_equals, isna
from pandas.core.indexes.api import Index, default_index, ensure_index
from pandas.util._deco... |
class SingleBlockManager(BaseBlockManager):
'''manage a single block with'''
@property
def ndim(self) -> Literal[1]:
pass
def __init__(self, block: Block, axis: Index, verify_integrity: bool=False) -> None:
pass
@classmethod
def from_blocks(cls, blocks: list[Block], axes: list[... | 42 | 16 | 8 | 1 | 5 | 2 | 1 | 0.44 | 1 | 11 | 1 | 0 | 27 | 2 | 29 | 92 | 285 | 49 | 165 | 89 | 112 | 73 | 130 | 68 | 99 | 4 | 3 | 1 | 40 |
7,411 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/internals/ops.py | pandas.core.internals.ops.BlockPairInfo | from typing import TYPE_CHECKING, NamedTuple
class BlockPairInfo(NamedTuple):
lvals: ArrayLike
rvals: ArrayLike
locs: BlockPlacement
left_ea: bool
right_ea: bool
rblk: Block |
class BlockPairInfo(NamedTuple):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0 | 7 | 1 | 6 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 |
7,412 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/methods/describe.py | pandas.core.methods.describe.DataFrameDescriber | import numpy as np
from pandas.core.reshape.concat import concat
from pandas._typing import DtypeObj, NDFrameT, npt
class DataFrameDescriber(NDFrameDescriberAbstract):
"""Class responsible for creating dataobj description.
Parameters
----------
obj : DataFrame
DataFrame to be described.
in... |
class DataFrameDescriber(NDFrameDescriberAbstract):
'''Class responsible for creating dataobj description.
Parameters
----------
obj : DataFrame
DataFrame to be described.
include : 'all', list-like of dtypes or None
A white list of data types to include in the result.
exclude :... | 4 | 2 | 17 | 1 | 15 | 1 | 3 | 0.26 | 1 | 7 | 0 | 0 | 3 | 2 | 3 | 25 | 67 | 9 | 46 | 21 | 36 | 12 | 30 | 15 | 26 | 5 | 5 | 2 | 9 |
7,413 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/methods/describe.py | pandas.core.methods.describe.NDFrameDescriberAbstract | import numpy as np
from abc import ABC, abstractmethod
class NDFrameDescriberAbstract(ABC):
"""Abstract class for describing dataframe or series.
Parameters
----------
obj : Series or DataFrame
Object to be described.
"""
def __init__(self, obj: DataFrame | Series) -> None:
se... |
class NDFrameDescriberAbstract(ABC):
'''Abstract class for describing dataframe or series.
Parameters
----------
obj : Series or DataFrame
Object to be described.
'''
def __init__(self, obj: DataFrame | Series) -> None:
pass
@abstractmethod
def describe(self, percentile... | 4 | 2 | 5 | 1 | 2 | 3 | 1 | 2.4 | 1 | 3 | 0 | 2 | 2 | 1 | 2 | 22 | 21 | 4 | 5 | 5 | 1 | 12 | 4 | 4 | 1 | 1 | 4 | 0 | 2 |
7,414 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/methods/describe.py | pandas.core.methods.describe.SeriesDescriber | import numpy as np
class SeriesDescriber(NDFrameDescriberAbstract):
"""Class responsible for creating series description."""
obj: Series
def describe(self, percentiles: Sequence[float] | np.ndarray) -> Series:
describe_func = select_describe_func(self.obj)
return describe_func(self.obj, pe... |
class SeriesDescriber(NDFrameDescriberAbstract):
'''Class responsible for creating series description.'''
def describe(self, percentiles: Sequence[float] | np.ndarray) -> Series:
pass | 2 | 1 | 5 | 0 | 5 | 0 | 1 | 0.14 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 23 | 10 | 2 | 7 | 3 | 5 | 1 | 5 | 3 | 3 | 1 | 5 | 0 | 1 |
7,415 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/methods/selectn.py | pandas.core.methods.selectn.SelectN | from typing import TYPE_CHECKING, Generic, Literal, cast, final
from pandas.core.dtypes.common import is_bool_dtype, is_complex_dtype, is_integer_dtype, is_list_like, is_numeric_dtype, needs_i8_conversion
class SelectN(Generic[NDFrameT]):
def __init__(self, obj: NDFrameT, n: int, keep: Literal['first', 'last', 'a... |
class SelectN(Generic[NDFrameT]):
def __init__(self, obj: NDFrameT, n: int, keep: Literal['first', 'last', 'all']) -> None:
pass
def compute(self, method: str) -> NDFrameT:
pass
@final
def nlargest(self) -> NDFrameT:
pass
@final
def nsmallest(self) -> NDFrameT:
... | 10 | 1 | 4 | 0 | 3 | 1 | 1 | 0.19 | 1 | 5 | 0 | 2 | 4 | 3 | 5 | 7 | 30 | 5 | 21 | 12 | 11 | 4 | 17 | 9 | 11 | 2 | 1 | 1 | 7 |
7,416 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/methods/selectn.py | pandas.core.methods.selectn.SelectNFrame | from pandas.core.indexes.api import default_index
from pandas.core.dtypes.common import is_bool_dtype, is_complex_dtype, is_integer_dtype, is_list_like, is_numeric_dtype, needs_i8_conversion
from collections.abc import Hashable, Sequence
from typing import TYPE_CHECKING, Generic, Literal, cast, final
class SelectNFram... |
class SelectNFrame(SelectN[DataFrame]):
'''
Implement n largest/smallest for DataFrame
Parameters
----------
obj : DataFrame
n : int
keep : {'first', 'last'}, default 'first'
columns : list or str
Returns
-------
nordered : DataFrame
'''
def __init__(self, obj: Data... | 4 | 2 | 31 | 5 | 18 | 9 | 4 | 0.69 | 1 | 9 | 0 | 0 | 2 | 1 | 2 | 9 | 102 | 19 | 49 | 22 | 45 | 34 | 43 | 22 | 39 | 7 | 2 | 2 | 11 |
7,417 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/methods/selectn.py | pandas.core.methods.selectn.SelectNSeries | import numpy as np
from pandas.core.indexes.api import default_index
from pandas.core.dtypes.common import is_bool_dtype, is_complex_dtype, is_integer_dtype, is_list_like, is_numeric_dtype, needs_i8_conversion
from pandas._libs import algos as libalgos
from pandas.core.dtypes.dtypes import BaseMaskedDtype
class Select... |
class SelectNSeries(SelectN[Series]):
'''
Implement n largest/smallest for Series
Parameters
----------
obj : Series
n : int
keep : {'first', 'last'}, default 'first'
Returns
-------
nordered : Series
'''
def compute(self, method: str) -> Series:
pass | 2 | 1 | 74 | 14 | 51 | 9 | 15 | 0.38 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 8 | 89 | 17 | 52 | 16 | 49 | 20 | 46 | 16 | 43 | 15 | 2 | 2 | 15 |
7,418 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/nanops.py | pandas.core.nanops.bottleneck_switch | from pandas._typing import ArrayLike, AxisInt, CorrelationMethod, Dtype, DtypeObj, F, Scalar, Shape, npt
import numpy as np
import functools
from typing import TYPE_CHECKING, Any, cast
class bottleneck_switch:
def __init__(self, name=None, **kwargs) -> None:
self.name = name
self.kwargs = kwargs
... |
class bottleneck_switch:
def __init__(self, name=None, **kwargs) -> None:
pass
def __call__(self, alt: F) -> F:
pass
@functools.wraps(alt)
def f(values: np.ndarray, *, axis: AxisInt | None=None, skipna: bool=True, **kwds):
pass | 5 | 0 | 30 | 4 | 20 | 7 | 4 | 0.31 | 0 | 3 | 0 | 0 | 2 | 2 | 2 | 2 | 54 | 8 | 36 | 17 | 25 | 11 | 27 | 10 | 23 | 8 | 0 | 3 | 11 |
7,419 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/nanops.py | pandas.core.nanops.disallow | import itertools
from pandas._typing import ArrayLike, AxisInt, CorrelationMethod, Dtype, DtypeObj, F, Scalar, Shape, npt
from pandas.core.dtypes.common import is_complex, is_float, is_float_dtype, is_integer, is_numeric_dtype, is_object_dtype, needs_i8_conversion, pandas_dtype
from typing import TYPE_CHECKING, Any, ca... |
class disallow:
def __init__(self, *dtypes: Dtype) -> None:
pass
def check(self, obj) -> bool:
pass
def __call__(self, f: F) -> F:
pass
@functools.wraps(f)
def _f(*args, **kwargs):
pass | 6 | 0 | 11 | 0 | 9 | 2 | 2 | 0.18 | 0 | 6 | 0 | 0 | 3 | 1 | 3 | 3 | 29 | 3 | 22 | 10 | 16 | 4 | 19 | 8 | 14 | 4 | 0 | 2 | 7 |
7,420 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.DatetimeIndexResampler | from pandas.core.indexes.period import PeriodIndex, period_range
from pandas._libs.tslibs import BaseOffset, IncompatibleFrequency, NaT, Period, Timedelta, Timestamp, to_offset
from pandas.core.indexes.datetimes import DatetimeIndex, date_range
from pandas.core.indexes.api import MultiIndex
class DatetimeIndexResample... |
class DatetimeIndexResampler(Resampler):
@property
def _resampler_for_grouping(self) -> type[DatetimeIndexResamplerGroupby]:
pass
def _get_binner_for_time(self):
pass
def _downsample(self, how, **kwargs):
'''
Downsample the cython defined function.
Parameters
... | 8 | 3 | 18 | 2 | 11 | 6 | 3 | 0.49 | 1 | 7 | 1 | 3 | 6 | 0 | 6 | 81 | 118 | 17 | 68 | 17 | 60 | 33 | 48 | 16 | 41 | 4 | 4 | 3 | 16 |
7,421 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.DatetimeIndexResamplerGroupby | class DatetimeIndexResamplerGroupby(_GroupByMixin, DatetimeIndexResampler):
"""
Provides a resample of a groupby implementation
"""
@property
def _resampler_cls(self):
return DatetimeIndexResampler | class DatetimeIndexResamplerGroupby(_GroupByMixin, DatetimeIndexResampler):
'''
Provides a resample of a groupby implementation
'''
@property
def _resampler_cls(self):
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.67 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 85 | 10 | 1 | 6 | 5 | 1 | 4 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
7,422 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.PeriodIndexResampler | from pandas._libs.tslibs import BaseOffset, IncompatibleFrequency, NaT, Period, Timedelta, Timestamp, to_offset
from pandas._typing import NDFrameT
from pandas.core.indexes.datetimes import DatetimeIndex, date_range
from pandas.util._exceptions import find_stack_level
import warnings
from pandas.core.indexes.period imp... |
class PeriodIndexResampler(DatetimeIndexResampler):
@property
def _resampler_for_grouping(self):
pass
def _get_binner_for_time(self):
pass
def _convert_obj(self, obj: NDFrameT) -> NDFrameT:
pass
def _downsample(self, how, **kwargs):
'''
Downsample the cyt... | 7 | 2 | 19 | 2 | 11 | 6 | 3 | 0.54 | 1 | 6 | 1 | 1 | 5 | 1 | 5 | 86 | 105 | 15 | 59 | 15 | 52 | 32 | 40 | 14 | 34 | 6 | 5 | 2 | 15 |
7,423 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.PeriodIndexResamplerGroupby | class PeriodIndexResamplerGroupby(_GroupByMixin, PeriodIndexResampler):
"""
Provides a resample of a groupby implementation.
"""
@property
def _resampler_cls(self):
return PeriodIndexResampler | class PeriodIndexResamplerGroupby(_GroupByMixin, PeriodIndexResampler):
'''
Provides a resample of a groupby implementation.
'''
@property
def _resampler_cls(self):
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.67 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 90 | 10 | 1 | 6 | 5 | 1 | 4 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
7,424 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.Resampler | from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
from pandas.errors import AbstractMethodError
from pandas.core.indexes.period import PeriodIndex, period_range
from pandas._libs import lib
from pandas.core.base import PandasObject, SelectionMixin
from pandas._typing import NDFrameT
from pandas.core.groupb... |
class Resampler(BaseGroupBy, PandasObject):
'''
Class for resampling datetimelike data, a groupby-like operation.
See aggregate, transform, and apply functions on this object.
It's easiest to use obj.resample(...) to use Resampler.
Parameters
----------
obj : Series or DataFrame
groupby... | 81 | 26 | 35 | 5 | 8 | 23 | 2 | 2.04 | 2 | 25 | 1 | 1 | 39 | 10 | 39 | 75 | 1,580 | 232 | 444 | 194 | 261 | 907 | 191 | 80 | 149 | 5 | 3 | 2 | 67 |
7,425 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.TimeGrouper | from pandas._libs.tslibs import BaseOffset, IncompatibleFrequency, NaT, Period, Timedelta, Timestamp, to_offset
from pandas.core.indexes.timedeltas import TimedeltaIndex, timedelta_range
from pandas.core.groupby.grouper import Grouper
from pandas._libs import lib
from pandas._typing import NDFrameT
from pandas.core.ind... |
class TimeGrouper(Grouper):
'''
Custom groupby class for time-interval grouping.
Parameters
----------
freq : pandas date offset or offset alias for identifying bin edges
closed : closed end of interval; 'left' or 'right'
label : interval boundary to use for labeling; 'left' or 'right'
... | 10 | 3 | 45 | 5 | 33 | 7 | 6 | 0.25 | 1 | 21 | 4 | 0 | 9 | 10 | 9 | 19 | 438 | 61 | 305 | 79 | 273 | 77 | 168 | 55 | 158 | 18 | 1 | 3 | 56 |
7,426 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.TimedeltaIndexResampler | from pandas.core.indexes.timedeltas import TimedeltaIndex, timedelta_range
class TimedeltaIndexResampler(DatetimeIndexResampler):
ax: TimedeltaIndex
@property
def _resampler_for_grouping(self):
return TimedeltaIndexResamplerGroupby
def _get_binner_for_time(self):
return self._timegrou... |
class TimedeltaIndexResampler(DatetimeIndexResampler):
@property
def _resampler_for_grouping(self):
pass
def _get_binner_for_time(self):
pass
def _adjust_binner_for_upsample(self, binner):
'''
Adjust our binner when upsampling.
The range of a new index is allo... | 5 | 1 | 4 | 0 | 2 | 2 | 1 | 0.89 | 1 | 1 | 1 | 1 | 3 | 0 | 3 | 84 | 20 | 4 | 9 | 5 | 4 | 8 | 8 | 4 | 4 | 1 | 5 | 0 | 3 |
7,427 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample.TimedeltaIndexResamplerGroupby | class TimedeltaIndexResamplerGroupby(_GroupByMixin, TimedeltaIndexResampler):
"""
Provides a resample of a groupby implementation.
"""
@property
def _resampler_cls(self):
return TimedeltaIndexResampler | class TimedeltaIndexResamplerGroupby(_GroupByMixin, TimedeltaIndexResampler):
'''
Provides a resample of a groupby implementation.
'''
@property
def _resampler_cls(self):
pass | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 0.67 | 2 | 0 | 0 | 0 | 1 | 0 | 1 | 88 | 10 | 1 | 6 | 5 | 1 | 4 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
7,428 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/resample.py | pandas.core.resample._GroupByMixin | from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
from pandas.core.base import PandasObject, SelectionMixin
from pandas.core.indexes.period import PeriodIndex, period_range
from typing import TYPE_CHECKING, Concatenate, Literal, Self, cast, final, no_type_check, overload
from pandas.core.groupby.groupby im... |
class _GroupByMixin(PandasObject, SelectionMixin):
'''
Provide the groupby facilities.
'''
def __init__(self, *, parent: Resampler, groupby: GroupBy, key=None, selection: IndexLabel | None=None) -> None:
pass
@no_type_check
def _apply(self, f, *args, **kwargs):
'''
Disp... | 7 | 3 | 22 | 4 | 13 | 5 | 3 | 0.44 | 2 | 6 | 1 | 3 | 3 | 4 | 3 | 18 | 100 | 19 | 57 | 27 | 43 | 25 | 43 | 18 | 38 | 5 | 2 | 2 | 10 |
7,429 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/reshape/merge.py | pandas.core.reshape.merge._AsOfMerge | from pandas._libs import Timedelta, hashtable as libhashtable, join as libjoin, lib
from typing import TYPE_CHECKING, Literal, cast, final
from pandas.core.dtypes.missing import isna, na_value_for_dtype
from pandas.core.dtypes.dtypes import CategoricalDtype, DatetimeTZDtype
import numpy as np
from pandas.core.sorting i... |
class _AsOfMerge(_OrderedMerge):
def __init__(self, left: DataFrame | Series, right: DataFrame | Series, on: IndexLabel | None=None, left_on: IndexLabel | None=None, right_on: IndexLabel | None=None, left_index: bool=False, right_index: bool=False, by=None, left_by=None, right_by=None, suffixes: Suffixes=('_x', '... | 8 | 1 | 51 | 6 | 38 | 7 | 8 | 0.16 | 1 | 17 | 0 | 0 | 6 | 6 | 6 | 27 | 339 | 45 | 256 | 61 | 227 | 40 | 143 | 40 | 135 | 20 | 2 | 4 | 59 |
7,430 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/reshape/merge.py | pandas.core.reshape.merge._MergeOperation | from typing import TYPE_CHECKING, Literal, cast, final
import types
from pandas.core.indexes.api import default_index
from pandas.core.dtypes.common import ensure_int64, ensure_object, is_bool, is_bool_dtype, is_float_dtype, is_integer, is_integer_dtype, is_list_like, is_number, is_numeric_dtype, is_object_dtype, is_st... |
class _MergeOperation:
'''
Perform a database (SQL) merge operation between two DataFrame or Series
objects using either columns as keys or their row indexes
'''
def __init__(self, left: DataFrame | Series, right: DataFrame | Series, how: JoinHow | Literal['left_anti', 'right_anti', 'asof']='inner... | 36 | 8 | 52 | 5 | 39 | 9 | 9 | 0.22 | 0 | 16 | 0 | 1 | 19 | 5 | 19 | 19 | 1,049 | 119 | 767 | 163 | 679 | 170 | 429 | 96 | 408 | 34 | 0 | 6 | 166 |
7,431 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/reshape/merge.py | pandas.core.reshape.merge._OrderedMerge | from pandas._libs import Timedelta, hashtable as libhashtable, join as libjoin, lib
from typing import TYPE_CHECKING, Literal, cast, final
import numpy as np
from pandas import ArrowDtype, Categorical, Index, MultiIndex, Series
from pandas._typing import AnyArrayLike, ArrayLike, IndexLabel, JoinHow, MergeHow, Shape, Su... |
class _OrderedMerge(_MergeOperation):
def __init__(self, left: DataFrame | Series, right: DataFrame | Series, on: IndexLabel | None=None, left_on: IndexLabel | None=None, right_on: IndexLabel | None=None, left_index: bool=False, right_index: bool=False, suffixes: Suffixes=('_x', '_y'), fill_method:
pass
... | 3 | 0 | 27 | 2 | 25 | 1 | 3 | 0.02 | 1 | 4 | 0 | 1 | 2 | 1 | 2 | 21 | 58 | 6 | 52 | 19 | 37 | 1 | 22 | 7 | 19 | 5 | 1 | 2 | 6 |
7,432 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/reshape/reshape.py | pandas.core.reshape.reshape._Unstacker | from pandas.core.dtypes.cast import find_common_type, maybe_promote
from pandas.core.sorting import compress_group_index, decons_obs_group_ids, get_compressed_ids, get_group_index, get_group_index_sorter
from pandas.core.indexes.api import Index, MultiIndex, default_index
from pandas.util._decorators import cache_reado... |
class _Unstacker:
'''
Helper class to unstack data / pivot with multi-level index
Parameters
----------
index : MultiIndex
level : int or str, default last level
Level to "unstack". Accepts a name for the level.
fill_value : scalar, optional
Default value to fill in missing ... | 19 | 1 | 24 | 3 | 17 | 3 | 3 | 0.37 | 0 | 10 | 0 | 0 | 12 | 14 | 12 | 12 | 348 | 57 | 216 | 97 | 190 | 79 | 164 | 84 | 151 | 9 | 0 | 2 | 41 |
7,433 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/series.py | pandas.core.series.Series | from pandas.core.dtypes.inference import is_hashable
from pandas.compat._constants import REF_COUNT, WARNING_CHECK_DISABLED
from pandas.compat import PYPY
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
from pandas.core.indexes.api import DatetimeIndex, Index, MultiIndex, PeriodIndex, default_index, ensu... | @set_module('pandas')
class Series(base.IndexOpsMixin, NDFrame):
'''
One-dimensional ndarray with axis labels (including time series).
Labels need not be unique but must be a hashable type. The object
supports both integer- and label-based indexing and provides a host of
methods for performing opera... | 282 | 88 | 34 | 4 | 10 | 20 | 2 | 1.6 | 2 | 50 | 0 | 0 | 179 | 0 | 179 | 498 | 7,033 | 1,019 | 2,325 | 1,286 | 1,225 | 3,709 | 971 | 354 | 785 | 34 | 3 | 4 | 361 |
7,434 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/strings/accessor.py | pandas.core.strings.accessor.StringMethods | from pandas._typing import AlignJoin, DtypeObj, F, Scalar, npt
from typing import TYPE_CHECKING, Literal, cast
import warnings
from pandas.core.dtypes.generic import ABCDataFrame, ABCIndex, ABCMultiIndex, ABCSeries
from pandas._config import get_option
from pandas.core.base import NoNewAttributesMixin
from pandas.core.... |
class StringMethods(NoNewAttributesMixin):
'''
Vectorized string functions for Series and Index.
NAs stay NA unless handled otherwise by a particular method.
Patterned after Python's string methods, with some inspiration from
R's stringr package.
Parameters
----------
data : Series or I... | 124 | 28 | 45 | 6 | 11 | 28 | 3 | 0.99 | 1 | 23 | 0 | 0 | 52 | 8 | 53 | 55 | 3,661 | 513 | 1,590 | 433 | 1,253 | 1,567 | 453 | 181 | 389 | 30 | 1 | 6 | 152 |
7,435 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/strings/object_array.py | pandas.core.strings.object_array.ObjectStringArrayMixin | from pandas.core.dtypes.missing import isna
import pandas._libs.missing as libmissing
from pandas._libs import lib
import textwrap
import pandas._libs.ops as libops
import numpy as np
import re
import warnings
from pandas.core.dtypes.common import pandas_dtype
from typing import TYPE_CHECKING, Literal, cast
from pandas... |
class ObjectStringArrayMixin:
'''
String Methods operating on object-dtype ndarrays.
'''
def __len__(self) -> int:
pass
def _str_getitem(self, key):
pass
def _str_map(self, f, na_value=lib.no_default, dtype: NpDtype | None=None, convert: bool=True):
'''
Map a ... | 88 | 2 | 8 | 1 | 7 | 1 | 2 | 0.09 | 1 | 19 | 0 | 0 | 53 | 0 | 53 | 123 | 502 | 88 | 383 | 155 | 275 | 36 | 292 | 110 | 228 | 9 | 5 | 3 | 121 |
7,436 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/tools/datetimes.py | pandas.core.tools.datetimes.FulldatetimeDict | class FulldatetimeDict(YearMonthDayDict, total=False):
hour: DatetimeDictArg
hours: DatetimeDictArg
minute: DatetimeDictArg
minutes: DatetimeDictArg
second: DatetimeDictArg
seconds: DatetimeDictArg
ms: DatetimeDictArg
us: DatetimeDictArg
ns: DatetimeDictArg | class FulldatetimeDict(YearMonthDayDict, total=False):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0 | 10 | 1 | 9 | 0 | 10 | 1 | 9 | 0 | 2 | 0 | 0 |
7,437 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/tools/datetimes.py | pandas.core.tools.datetimes.YearMonthDayDict | from typing import TYPE_CHECKING, TypeAlias, TypedDict, Union, cast, overload
class YearMonthDayDict(TypedDict, total=True):
year: DatetimeDictArg
month: DatetimeDictArg
day: DatetimeDictArg |
class YearMonthDayDict(TypedDict, total=True):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 | 0 | 4 | 1 | 3 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 |
7,438 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/ewm.py | pandas.core.window.ewm.ExponentialMovingWindow | from pandas.core.indexers.objects import BaseIndexer, ExponentialMovingWindowIndexer, GroupbyIndexer
from pandas.core.dtypes.missing import isna
import pandas._libs.window.aggregations as window_aggregations
from pandas.core.dtypes.common import is_datetime64_dtype, is_numeric_dtype
from pandas.core.window.numba_ impor... |
class ExponentialMovingWindow(BaseWindow):
'''
Provide exponentially weighted (EW) calculations.
Exactly one of ``com``, ``span``, ``halflife``, or ``alpha`` must be
provided if ``times`` is not provided. If ``times`` is provided and ``adjust=True``,
``halflife`` and one of ``com``, ``span`` or ``a... | 23 | 3 | 28 | 1 | 24 | 3 | 3 | 0.35 | 1 | 17 | 1 | 2 | 11 | 11 | 11 | 43 | 771 | 71 | 519 | 319 | 239 | 183 | 118 | 55 | 100 | 10 | 3 | 3 | 43 |
7,439 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/ewm.py | pandas.core.window.ewm.ExponentialMovingWindowGroupby | from pandas.core.indexers.objects import BaseIndexer, ExponentialMovingWindowIndexer, GroupbyIndexer
import numpy as np
from pandas.core.window.rolling import BaseWindow, BaseWindowGroupby
class ExponentialMovingWindowGroupby(BaseWindowGroupby, ExponentialMovingWindow):
"""
Provide an exponential moving window... |
class ExponentialMovingWindowGroupby(BaseWindowGroupby, ExponentialMovingWindow):
'''
Provide an exponential moving window groupby implementation.
'''
def __init__(self, obj, *args, _grouper=None, **kwargs) -> None:
pass
def _get_window_indexer(self) -> GroupbyIndexer:
'''
... | 3 | 2 | 12 | 1 | 7 | 4 | 2 | 0.63 | 2 | 4 | 0 | 0 | 2 | 1 | 2 | 50 | 31 | 5 | 16 | 7 | 13 | 10 | 10 | 7 | 7 | 2 | 4 | 1 | 3 |
7,440 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/ewm.py | pandas.core.window.ewm.OnlineExponentialMovingWindow | from pandas.core.window.online import EWMMeanState, generate_online_numba_ewma_func
from pandas.core.util.numba_ import get_jit_arguments, maybe_use_numba
import numpy as np
class OnlineExponentialMovingWindow(ExponentialMovingWindow):
def __init__(self, obj: NDFrame, com: float | None=None, span: float | None=No... |
class OnlineExponentialMovingWindow(ExponentialMovingWindow):
def __init__(self, obj: NDFrame, com: float | None=None, span: float | None=None, halflife: float | TimedeltaConvertibleTypes | None=None, alpha: float | None=None, min_periods: int | None=0, adjust: bool=True, ignore_na: bool=False, times: np.ndarray ... | 9 | 2 | 19 | 1 | 13 | 5 | 2 | 0.39 | 1 | 11 | 0 | 0 | 8 | 3 | 8 | 51 | 159 | 12 | 106 | 46 | 71 | 41 | 52 | 20 | 43 | 8 | 4 | 2 | 17 |
7,441 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/expanding.py | pandas.core.window.expanding.Expanding | from typing import TYPE_CHECKING, Any, Concatenate, Literal, Self, final, overload
from pandas.core.window.doc import _shared_docs, create_section_header, kwargs_numeric_only, numba_notes, template_header, template_pipe, template_returns, template_see_also, window_agg_numba_parameters, window_apply_parameters
from pand... |
class Expanding(RollingAndExpandingMixin):
'''
Provide expanding window calculations.
An expanding window yields the value of an aggregation statistic with all the data
available up to that point in time.
Parameters
----------
min_periods : int, default 1
Minimum number of observati... | 51 | 2 | 8 | 0 | 8 | 0 | 1 | 0.06 | 1 | 13 | 0 | 1 | 24 | 0 | 24 | 73 | 1,012 | 60 | 894 | 790 | 87 | 58 | 51 | 27 | 26 | 1 | 4 | 0 | 24 |
7,442 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/expanding.py | pandas.core.window.expanding.ExpandingGroupby | from pandas.core.indexers.objects import BaseIndexer, ExpandingIndexer, GroupbyIndexer
from pandas.core.window.rolling import BaseWindowGroupby, RollingAndExpandingMixin
class ExpandingGroupby(BaseWindowGroupby, Expanding):
"""
Provide a expanding groupby implementation.
"""
_attributes = Expanding._at... |
class ExpandingGroupby(BaseWindowGroupby, Expanding):
'''
Provide a expanding groupby implementation.
'''
def _get_window_indexer(self) -> GroupbyIndexer:
'''
Return an indexer class that will compute the window start and end bounds
Returns
-------
GroupbyIndexe... | 2 | 2 | 13 | 1 | 6 | 6 | 1 | 1.13 | 2 | 2 | 0 | 0 | 1 | 0 | 1 | 79 | 20 | 3 | 8 | 4 | 6 | 9 | 5 | 4 | 3 | 1 | 5 | 0 | 1 |
7,443 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/online.py | pandas.core.window.online.EWMMeanState | import numpy as np
class EWMMeanState:
def __init__(self, com, adjust, ignore_na, shape) -> None:
alpha = 1.0 / (1.0 + com)
self.shape = shape
self.adjust = adjust
self.ignore_na = ignore_na
self.new_wt = 1.0 if adjust else alpha
self.old_wt_factor = 1.0 - alpha
... |
class EWMMeanState:
def __init__(self, com, adjust, ignore_na, shape) -> None:
pass
def run_ewm(self, weighted_avg, deltas, min_periods, ewm_func):
pass
def reset(self) -> None:
pass | 4 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 7 | 3 | 3 | 29 | 2 | 27 | 13 | 23 | 0 | 18 | 13 | 14 | 2 | 0 | 0 | 4 |
7,444 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/rolling.py | pandas.core.window.rolling.BaseWindow | import numpy as np
from pandas.errors import DataError
import inspect
from pandas.core.util.numba_ import get_jit_arguments, maybe_use_numba, prepare_function_arguments
from pandas.core._numba import executor
from pandas.core.base import SelectionMixin
from pandas.core.dtypes.missing import notna
from pandas.core.index... |
class BaseWindow(SelectionMixin):
'''Provides utilities for performing windowing operations.'''
def __init__(self, obj: NDFrame, window=None, min_periods: int | None=None, center: bool | None=False, win_type: str | None=None, on: str | Index | None=None, closed: str | None=None, step: int | None=None, method:... | 28 | 15 | 21 | 1 | 16 | 4 | 3 | 0.25 | 1 | 30 | 0 | 3 | 24 | 11 | 24 | 32 | 542 | 58 | 389 | 147 | 314 | 96 | 237 | 97 | 209 | 14 | 2 | 2 | 87 |
7,445 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/rolling.py | pandas.core.window.rolling.BaseWindowGroupby | from pandas.core.algorithms import factorize
import numpy as np
import pandas.core.common as com
from pandas.core.reshape.concat import concat
import copy
from typing import TYPE_CHECKING, Any, Concatenate, Literal, Self, final, overload
from pandas.core.indexes.api import DatetimeIndex, Index, MultiIndex, PeriodIndex,... |
class BaseWindowGroupby(BaseWindow):
'''
Provide the groupby windowing facilities.
'''
def __init__(self, obj: DataFrame | Series, *args, _grouper: BaseGrouper, _as_index: bool=True, **kwargs) -> None:
pass
def _apply(self, func: Callable[..., Any], name: str, numeric_only: bool=False, nu... | 6 | 3 | 37 | 3 | 27 | 7 | 4 | 0.28 | 1 | 15 | 0 | 1 | 5 | 0 | 5 | 37 | 199 | 19 | 141 | 58 | 113 | 40 | 88 | 37 | 81 | 6 | 3 | 2 | 19 |
7,446 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/rolling.py | pandas.core.window.rolling.Rolling | from datetime import timedelta
from pandas.core.dtypes.common import ensure_float64, is_bool, is_integer, is_numeric_dtype, needs_i8_conversion
from pandas.core.indexes.api import DatetimeIndex, Index, MultiIndex, PeriodIndex, TimedeltaIndex
from typing import TYPE_CHECKING, Any, Concatenate, Literal, Self, final, over... |
class Rolling(RollingAndExpandingMixin):
def _validate(self) -> None:
pass
def _validate_datetimelike_monotonic(self) -> None:
'''
Validate self._on is monotonic (increasing or decreasing) and has
no NaT values for frequency windows.
'''
pass
def _raise_mo... | 52 | 1 | 10 | 0 | 9 | 1 | 1 | 0.01 | 1 | 19 | 0 | 1 | 25 | 2 | 25 | 79 | 1,139 | 64 | 1,063 | 918 | 134 | 14 | 79 | 33 | 53 | 9 | 4 | 3 | 36 |
7,447 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/rolling.py | pandas.core.window.rolling.RollingAndExpandingMixin | from pandas.core.dtypes.missing import notna
import pandas._libs.window.aggregations as window_aggregations
from pandas.core.dtypes.common import ensure_float64, is_bool, is_integer, is_numeric_dtype, needs_i8_conversion
from typing import TYPE_CHECKING, Any, Concatenate, Literal, Self, final, overload
from pandas.core... |
class RollingAndExpandingMixin(BaseWindow):
def count(self, numeric_only: bool=False):
pass
def apply(self, func: Callable[..., Any], raw: bool=False, engine: Literal['cython', 'numba'] | None=None, engine_kwargs: dict[str, bool] | None=None, args: tuple[Any, ...] | None=None, kwargs: dict[str, Any] ... | 30 | 0 | 18 | 1 | 17 | 0 | 2 | 0.01 | 1 | 12 | 0 | 1 | 22 | 0 | 22 | 54 | 429 | 46 | 381 | 173 | 256 | 2 | 168 | 82 | 132 | 9 | 3 | 2 | 55 |
7,448 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/rolling.py | pandas.core.window.rolling.RollingGroupby | from typing import TYPE_CHECKING, Any, Concatenate, Literal, Self, final, overload
from pandas.core.indexers.objects import BaseIndexer, FixedWindowIndexer, GroupbyIndexer, VariableWindowIndexer
class RollingGroupby(BaseWindowGroupby, Rolling):
"""
Provide a rolling groupby implementation.
"""
_attribu... |
class RollingGroupby(BaseWindowGroupby, Rolling):
'''
Provide a rolling groupby implementation.
'''
def _get_window_indexer(self) -> GroupbyIndexer:
'''
Return an indexer class that will compute the window start and end bounds
Returns
-------
GroupbyIndexer
... | 3 | 3 | 26 | 1 | 19 | 8 | 4 | 0.46 | 2 | 9 | 0 | 0 | 2 | 0 | 2 | 86 | 59 | 4 | 39 | 11 | 36 | 18 | 26 | 11 | 23 | 5 | 5 | 2 | 8 |
7,449 | pandas-dev/pandas | pandas-dev_pandas/pandas/core/window/rolling.py | pandas.core.window.rolling.Window | from textwrap import dedent
import numpy as np
from pandas.core.window.common import flex_binary_moment, zsqrt
from pandas.core.window.doc import _shared_docs, create_section_header, kwargs_numeric_only, kwargs_scipy, numba_notes, template_header, template_pipe, template_returns, template_see_also, window_agg_numba_par... |
class Window(BaseWindow):
'''
Provide rolling window calculations.
Parameters
----------
window : int, timedelta, str, offset, or BaseIndexer subclass
Interval of the moving window.
If an integer, the delta between the start and end of each window.
The number of points in th... | 16 | 3 | 16 | 2 | 11 | 4 | 2 | 0.84 | 1 | 13 | 0 | 0 | 8 | 1 | 8 | 40 | 596 | 98 | 272 | 208 | 77 | 229 | 55 | 24 | 44 | 6 | 3 | 1 | 21 |
7,450 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.AbstractMethodError | class AbstractMethodError(NotImplementedError):
"""
Raise this error instead of NotImplementedError for abstract methods.
The `AbstractMethodError` is designed for use in classes that follow an abstract
base class pattern. By raising this error in the method, it ensures that a subclass
must impleme... | class AbstractMethodError(NotImplementedError):
'''
Raise this error instead of NotImplementedError for abstract methods.
The `AbstractMethodError` is designed for use in classes that follow an abstract
base class pattern. By raising this error in the method, it ensures that a subclass
must implemen... | 3 | 1 | 7 | 0 | 7 | 0 | 2 | 2.6 | 1 | 3 | 0 | 0 | 2 | 2 | 2 | 14 | 61 | 7 | 15 | 7 | 12 | 39 | 12 | 7 | 9 | 2 | 5 | 1 | 4 |
7,451 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.AttributeConflictWarning | class AttributeConflictWarning(Warning):
"""
Warning raised when index attributes conflict when using HDFStore.
Occurs when attempting to append an index with a different
name than the existing index on an HDFStore or attempting to append an index with a
different frequency than the existing index ... | class AttributeConflictWarning(Warning):
'''
Warning raised when index attributes conflict when using HDFStore.
Occurs when attempting to append an index with a different
name than the existing index on an HDFStore or attempting to append an index with a
different frequency than the existing index o... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 25 | 3 | 1 | 1 | 0 | 21 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,452 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.CSSWarning | class CSSWarning(UserWarning):
"""
Warning is raised when converting css styling fails.
This can be due to the styling not having an equivalent value or because the
styling isn't properly formatted.
See Also
--------
DataFrame.style : Returns a Styler object for applying CSS-like styles.
... | class CSSWarning(UserWarning):
'''
Warning is raised when converting css styling fails.
This can be due to the styling not having an equivalent value or because the
styling isn't properly formatted.
See Also
--------
DataFrame.style : Returns a Styler object for applying CSS-like styles.
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 23 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 27 | 3 | 1 | 1 | 0 | 23 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
7,453 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.CategoricalConversionWarning | class CategoricalConversionWarning(Warning):
"""
Warning is raised when reading a partial labeled Stata file using a iterator.
This warning helps ensure data integrity and alerts users to potential issues
during the incremental reading of Stata files with labeled data, allowing for
additional check... | class CategoricalConversionWarning(Warning):
'''
Warning is raised when reading a partial labeled Stata file using a iterator.
This warning helps ensure data integrity and alerts users to potential issues
during the incremental reading of Stata files with labeled data, allowing for
additional checks... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 21 | 3 | 1 | 1 | 0 | 17 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,454 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.ChainedAssignmentError | class ChainedAssignmentError(Warning):
"""
Warning raised when trying to set using chained assignment.
When the ``mode.copy_on_write`` option is enabled, chained assignment can
never work. In such a situation, we are always setting into a temporary
object that is the result of an indexing operation... | class ChainedAssignmentError(Warning):
'''
Warning raised when trying to set using chained assignment.
When the ``mode.copy_on_write`` option is enabled, chained assignment can
never work. In such a situation, we are always setting into a temporary
object that is the result of an indexing operation ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 26 | 4 | 1 | 1 | 0 | 21 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,455 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.ClosedFileError | class ClosedFileError(Exception):
"""
Exception is raised when trying to perform an operation on a closed HDFStore file.
``ClosedFileError`` is specific to operations on ``HDFStore`` objects. Once an
HDFStore is closed, its resources are no longer available, and any further attempt
to access data o... | class ClosedFileError(Exception):
'''
Exception is raised when trying to perform an operation on a closed HDFStore file.
``ClosedFileError`` is specific to operations on ``HDFStore`` objects. Once an
HDFStore is closed, its resources are no longer available, and any further attempt
to access data or... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 21 | 3 | 1 | 1 | 0 | 17 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,456 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.DataError | class DataError(Exception):
"""
Exception raised when performing an operation on non-numerical data.
For example, calling ``ohlc`` on a non-numerical column or a function
on a rolling window.
See Also
--------
Series.rolling : Provide rolling window calculations on Series object.
DataF... | class DataError(Exception):
'''
Exception raised when performing an operation on non-numerical data.
For example, calling ``ohlc`` on a non-numerical column or a function
on a rolling window.
See Also
--------
Series.rolling : Provide rolling window calculations on Series object.
DataFra... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 15 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 19 | 3 | 1 | 1 | 0 | 15 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,457 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.DatabaseError | class DatabaseError(OSError):
"""
Error is raised when executing SQL with bad syntax or SQL that throws an error.
Raised by :func:`.pandas.read_sql` when a bad SQL statement is passed in.
See Also
--------
read_sql : Read SQL query or database table into a DataFrame.
Examples
--------... | class DatabaseError(OSError):
'''
Error is raised when executing SQL with bad syntax or SQL that throws an error.
Raised by :func:`.pandas.read_sql` when a bad SQL statement is passed in.
See Also
--------
read_sql : Read SQL query or database table into a DataFrame.
Examples
--------
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 16 | 3 | 1 | 1 | 0 | 12 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,458 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.DtypeWarning | class DtypeWarning(Warning):
"""
Warning raised when reading different dtypes in a column from a file.
Raised for a dtype incompatibility. This can happen whenever `read_csv`
or `read_table` encounter non-uniform dtypes in a column(s) of a given
CSV file.
See Also
--------
read_csv : R... | class DtypeWarning(Warning):
'''
Warning raised when reading different dtypes in a column from a file.
Raised for a dtype incompatibility. This can happen whenever `read_csv`
or `read_table` encounter non-uniform dtypes in a column(s) of a given
CSV file.
See Also
--------
read_csv : Rea... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 44 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 56 | 11 | 1 | 1 | 0 | 44 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,459 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.DuplicateLabelError | class DuplicateLabelError(ValueError):
"""
Error raised when an operation would introduce duplicate labels.
This error is typically encountered when performing operations on objects
with `allows_duplicate_labels=False` and the operation would result in
duplicate labels in the index. Duplicate label... | class DuplicateLabelError(ValueError):
'''
Error raised when an operation would introduce duplicate labels.
This error is typically encountered when performing operations on objects
with `allows_duplicate_labels=False` and the operation would result in
duplicate labels in the index. Duplicate labels... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 26 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 30 | 3 | 1 | 1 | 0 | 26 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,460 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.EmptyDataError | class EmptyDataError(ValueError):
"""
Exception raised in ``pd.read_csv`` when empty data or header is encountered.
This error is typically encountered when attempting to read an empty file or
an invalid file where no data or headers are present.
See Also
--------
read_csv : Read a comma-s... | class EmptyDataError(ValueError):
'''
Exception raised in ``pd.read_csv`` when empty data or header is encountered.
This error is typically encountered when attempting to read an empty file or
an invalid file where no data or headers are present.
See Also
--------
read_csv : Read a comma-sep... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 19 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 23 | 3 | 1 | 1 | 0 | 19 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,461 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.IncompatibilityWarning | class IncompatibilityWarning(Warning):
"""
Warning raised when trying to use where criteria on an incompatible HDF5 file.
""" | class IncompatibilityWarning(Warning):
'''
Warning raised when trying to use where criteria on an incompatible HDF5 file.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,462 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.IndexingError | class IndexingError(Exception):
"""
Exception is raised when trying to index and there is a mismatch in dimensions.
Raised by properties like :attr:`.pandas.DataFrame.iloc` when
an indexer is out of bounds or :attr:`.pandas.DataFrame.loc` when its index is
unalignable to the frame index.
See A... | class IndexingError(Exception):
'''
Exception is raised when trying to index and there is a mismatch in dimensions.
Raised by properties like :attr:`.pandas.DataFrame.iloc` when
an indexer is out of bounds or :attr:`.pandas.DataFrame.loc` when its index is
unalignable to the frame index.
See Als... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 29 | 3 | 1 | 1 | 0 | 25 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,463 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.IntCastingNaNError | class IntCastingNaNError(ValueError):
"""
Exception raised when converting (``astype``) an array with NaN to an integer type.
This error occurs when attempting to cast a data structure containing non-finite
values (such as NaN or infinity) to an integer data type. Integer types do not
support non-f... | class IntCastingNaNError(ValueError):
'''
Exception raised when converting (``astype``) an array with NaN to an integer type.
This error occurs when attempting to cast a data structure containing non-finite
values (such as NaN or infinity) to an integer data type. Integer types do not
support non-fi... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 16 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 20 | 3 | 1 | 1 | 0 | 16 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,464 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.InvalidColumnName | class InvalidColumnName(Warning):
"""
Warning raised by to_stata the column contains a non-valid stata name.
Because the column name is an invalid Stata variable, the name needs to be
converted.
See Also
--------
DataFrame.to_stata : Export DataFrame object to Stata dta format.
Exampl... | class InvalidColumnName(Warning):
'''
Warning raised by to_stata the column contains a non-valid stata name.
Because the column name is an invalid Stata variable, the name needs to be
converted.
See Also
--------
DataFrame.to_stata : Export DataFrame object to Stata dta format.
Examples
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 16 | 3 | 1 | 1 | 0 | 12 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,465 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.InvalidComparison | class InvalidComparison(Exception):
"""
Exception is raised by _validate_comparison_value to indicate an invalid comparison.
Notes
-----
This is an internal error.
""" | class InvalidComparison(Exception):
'''
Exception is raised by _validate_comparison_value to indicate an invalid comparison.
Notes
-----
This is an internal error.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 8 | 1 | 1 | 1 | 0 | 6 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,466 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.InvalidIndexError | class InvalidIndexError(Exception):
"""
Exception raised when attempting to use an invalid index key.
This exception is triggered when a user attempts to access or manipulate
data in a pandas DataFrame or Series using an index key that is not valid
for the given object. This may occur in cases such... | class InvalidIndexError(Exception):
'''
Exception raised when attempting to use an invalid index key.
This exception is triggered when a user attempts to access or manipulate
data in a pandas DataFrame or Series using an index key that is not valid
for the given object. This may occur in cases such ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 23 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 27 | 3 | 1 | 1 | 0 | 23 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,467 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.LossySetitemError | class LossySetitemError(Exception):
"""
Raised when trying to do a __setitem__ on an np.ndarray that is not lossless.
Notes
-----
This is an internal error.
""" | class LossySetitemError(Exception):
'''
Raised when trying to do a __setitem__ on an np.ndarray that is not lossless.
Notes
-----
This is an internal error.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 8 | 1 | 1 | 1 | 0 | 6 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,468 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.MergeError | class MergeError(ValueError):
"""
Exception raised when merging data.
Subclass of ``ValueError``.
See Also
--------
DataFrame.join : For joining DataFrames on their indexes.
merge : For merging two DataFrames on a common set of keys.
Examples
--------
>>> left = pd.DataFrame(
... | class MergeError(ValueError):
'''
Exception raised when merging data.
Subclass of ``ValueError``.
See Also
--------
DataFrame.join : For joining DataFrames on their indexes.
merge : For merging two DataFrames on a common set of keys.
Examples
--------
>>> left = pd.DataFrame(
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 29 | 3 | 1 | 1 | 0 | 25 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,469 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.NoBufferPresent | class NoBufferPresent(Exception):
"""
Exception is raised in _get_data_buffer to signal that there is no requested buffer.
""" | class NoBufferPresent(Exception):
'''
Exception is raised in _get_data_buffer to signal that there is no requested buffer.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,470 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.NullFrequencyError | class NullFrequencyError(ValueError):
"""
Exception raised when a ``freq`` cannot be null.
Particularly ``DatetimeIndex.shift``, ``TimedeltaIndex.shift``,
``PeriodIndex.shift``.
See Also
--------
Index.shift : Shift values of Index.
Series.shift : Shift values of Series.
Examples
... | class NullFrequencyError(ValueError):
'''
Exception raised when a ``freq`` cannot be null.
Particularly ``DatetimeIndex.shift``, ``TimedeltaIndex.shift``,
``PeriodIndex.shift``.
See Also
--------
Index.shift : Shift values of Index.
Series.shift : Shift values of Series.
Examples
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 15 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 19 | 3 | 1 | 1 | 0 | 15 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,471 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.NumExprClobberingError | class NumExprClobberingError(NameError):
"""
Exception raised when trying to use a built-in numexpr name as a variable name.
``eval`` or ``query`` will throw the error if the engine is set
to 'numexpr'. 'numexpr' is the default engine value for these methods if the
numexpr package is installed.
... | class NumExprClobberingError(NameError):
'''
Exception raised when trying to use a built-in numexpr name as a variable name.
``eval`` or ``query`` will throw the error if the engine is set
to 'numexpr'. 'numexpr' is the default engine value for these methods if the
numexpr package is installed.
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 22 | 3 | 1 | 1 | 0 | 18 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,472 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.NumbaUtilError | class NumbaUtilError(Exception):
"""
Error raised for unsupported Numba engine routines.
See Also
--------
DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns.
Series.groupby : Group Series using a mapper or by a Series of columns.
DataFrame.agg : Aggregate using on... | class NumbaUtilError(Exception):
'''
Error raised for unsupported Numba engine routines.
See Also
--------
DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns.
Series.groupby : Group Series using a mapper or by a Series of columns.
DataFrame.agg : Aggregate using one... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 20 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 23 | 2 | 1 | 1 | 0 | 20 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,473 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.ParserError | class ParserError(ValueError):
"""
Exception that is raised by an error encountered in parsing file contents.
This is a generic error raised for errors encountered when functions like
`read_csv` or `read_html` are parsing contents of a file.
See Also
--------
read_csv : Read CSV (comma-sep... | class ParserError(ValueError):
'''
Exception that is raised by an error encountered in parsing file contents.
This is a generic error raised for errors encountered when functions like
`read_csv` or `read_html` are parsing contents of a file.
See Also
--------
read_csv : Read CSV (comma-separ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 19 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 23 | 3 | 1 | 1 | 0 | 19 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,474 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.ParserWarning | class ParserWarning(Warning):
"""
Warning raised when reading a file that doesn't use the default 'c' parser.
Raised by `pd.read_csv` and `pd.read_table` when it is necessary to change
parsers, generally from the default 'c' parser to 'python'.
It happens due to a lack of support or functionality ... | class ParserWarning(Warning):
'''
Warning raised when reading a file that doesn't use the default 'c' parser.
Raised by `pd.read_csv` and `pd.read_table` when it is necessary to change
parsers, generally from the default 'c' parser to 'python'.
It happens due to a lack of support or functionality fo... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 27 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 38 | 10 | 1 | 1 | 0 | 27 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,475 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.PerformanceWarning | class PerformanceWarning(Warning):
"""
Warning raised when there is a possible performance impact.
See Also
--------
DataFrame.set_index : Set the DataFrame index using existing columns.
DataFrame.loc : Access a group of rows and columns by label(s) or a boolean array.
Examples
---... | class PerformanceWarning(Warning):
'''
Warning raised when there is a possible performance impact.
See Also
--------
DataFrame.set_index : Set the DataFrame index using existing columns.
DataFrame.loc : Access a group of rows and columns by label(s) or a boolean array.
Examples
-----... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 27 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 30 | 2 | 1 | 1 | 0 | 27 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,476 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.PossibleDataLossError | class PossibleDataLossError(Exception):
"""
Exception raised when trying to open a HDFStore file when already opened.
This error is triggered when there is a potential risk of data loss due to
conflicting operations on an HDFStore file. It serves to prevent unintended
overwrites or data corruption ... | class PossibleDataLossError(Exception):
'''
Exception raised when trying to open a HDFStore file when already opened.
This error is triggered when there is a potential risk of data loss due to
conflicting operations on an HDFStore file. It serves to prevent unintended
overwrites or data corruption b... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 14 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 18 | 3 | 1 | 1 | 0 | 14 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,477 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.PossiblePrecisionLoss | class PossiblePrecisionLoss(Warning):
"""
Warning raised by to_stata on a column with a value outside or equal to int64.
When the column value is outside or equal to the int64 value the column is
converted to a float64 dtype.
See Also
--------
DataFrame.to_stata : Export DataFrame object t... | class PossiblePrecisionLoss(Warning):
'''
Warning raised by to_stata on a column with a value outside or equal to int64.
When the column value is outside or equal to the int64 value the column is
converted to a float64 dtype.
See Also
--------
DataFrame.to_stata : Export DataFrame object to ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 16 | 3 | 1 | 1 | 0 | 12 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,478 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.PyperclipException | class PyperclipException(RuntimeError):
"""
Exception raised when clipboard functionality is unsupported.
Raised by ``to_clipboard()`` and ``read_clipboard()``.
""" | class PyperclipException(RuntimeError):
'''
Exception raised when clipboard functionality is unsupported.
Raised by ``to_clipboard()`` and ``read_clipboard()``.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 11 | 6 | 1 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,479 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.PyperclipWindowsException | import ctypes
class PyperclipWindowsException(PyperclipException):
"""
Exception raised when clipboard functionality is unsupported by Windows.
Access to the clipboard handle would be denied due to some other
window process is accessing it.
"""
def __init__(self, message: str) -> None:
... |
class PyperclipWindowsException(PyperclipException):
'''
Exception raised when clipboard functionality is unsupported by Windows.
Access to the clipboard handle would be denied due to some other
window process is accessing it.
'''
def __init__(self, message: str) -> None:
pass | 2 | 1 | 4 | 0 | 3 | 2 | 1 | 1.75 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 12 | 12 | 2 | 4 | 2 | 2 | 7 | 4 | 2 | 2 | 1 | 5 | 0 | 1 |
7,480 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.SpecificationError | class SpecificationError(Exception):
"""
Exception raised by ``agg`` when the functions are ill-specified.
The exception raised in two scenarios.
The first way is calling ``agg`` on a
Dataframe or Series using a nested renamer (dict-of-dict).
The second way is calling ``agg`` on a Dataframe w... | class SpecificationError(Exception):
'''
Exception raised by ``agg`` when the functions are ill-specified.
The exception raised in two scenarios.
The first way is calling ``agg`` on a
Dataframe or Series using a nested renamer (dict-of-dict).
The second way is calling ``agg`` on a Dataframe with... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 21 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 29 | 7 | 1 | 1 | 0 | 21 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
7,481 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.UndefinedVariableError | class UndefinedVariableError(NameError):
"""
Exception raised by ``query`` or ``eval`` when using an undefined variable name.
It will also specify whether the undefined variable is local or not.
Parameters
----------
name : str
The name of the undefined variable.
is_local : bool or... | class UndefinedVariableError(NameError):
'''
Exception raised by ``query`` or ``eval`` when using an undefined variable name.
It will also specify whether the undefined variable is local or not.
Parameters
----------
name : str
The name of the undefined variable.
is_local : bool or N... | 2 | 1 | 7 | 0 | 7 | 0 | 2 | 3.13 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 12 | 38 | 5 | 8 | 4 | 6 | 25 | 7 | 4 | 5 | 2 | 4 | 1 | 2 |
7,482 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.UnsortedIndexError | class UnsortedIndexError(KeyError):
"""
Error raised when slicing a MultiIndex which has not been lexsorted.
Subclass of `KeyError`.
See Also
--------
DataFrame.sort_index : Sort a DataFrame by its index.
DataFrame.set_index : Set the DataFrame index using existing columns.
Examples
... | class UnsortedIndexError(KeyError):
'''
Error raised when slicing a MultiIndex which has not been lexsorted.
Subclass of `KeyError`.
See Also
--------
DataFrame.sort_index : Sort a DataFrame by its index.
DataFrame.set_index : Set the DataFrame index using existing columns.
Examples
... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 29 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 33 | 3 | 1 | 1 | 0 | 29 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
7,483 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.UnsupportedFunctionCall | class UnsupportedFunctionCall(ValueError):
"""
Exception raised when attempting to call a unsupported numpy function.
For example, ``np.cumsum(groupby_object)``.
See Also
--------
DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns.
Series.groupby : Group Series us... | class UnsupportedFunctionCall(ValueError):
'''
Exception raised when attempting to call a unsupported numpy function.
For example, ``np.cumsum(groupby_object)``.
See Also
--------
DataFrame.groupby : Group DataFrame using a mapper or by a Series of columns.
Series.groupby : Group Series usin... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 22 | 3 | 1 | 1 | 0 | 18 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,484 | pandas-dev/pandas | pandas-dev_pandas/pandas/errors/__init__.py | pandas.errors.ValueLabelTypeMismatch | class ValueLabelTypeMismatch(Warning):
"""
Warning raised by to_stata on a category column that contains non-string values.
When exporting data to Stata format using the `to_stata` method, category columns
must have string values as labels. If a category column contains non-string values
(e.g., int... | class ValueLabelTypeMismatch(Warning):
'''
Warning raised by to_stata on a category column that contains non-string values.
When exporting data to Stata format using the `to_stata` method, category columns
must have string values as labels. If a category column contains non-string values
(e.g., inte... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 15 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 19 | 3 | 1 | 1 | 0 | 15 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
7,485 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/clipboard/__init__.py | pandas.io.clipboard.CheckedCall | from ctypes import c_size_t, c_wchar, c_wchar_p, get_errno, sizeof
from pandas.errors import PyperclipException, PyperclipWindowsException
class CheckedCall:
def __init__(self, f) -> None:
super().__setattr__('f', f)
def __call__(self, *args):
ret = self.f(*args)
if not ret and get_er... |
class CheckedCall:
def __init__(self, f) -> None:
pass
def __call__(self, *args):
pass
def __setattr__(self, key, value):
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 12 | 2 | 10 | 5 | 6 | 0 | 10 | 5 | 6 | 2 | 0 | 1 | 4 |
7,486 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/clipboard/__init__.py | pandas.io.clipboard.PyperclipTimeoutException | from pandas.errors import PyperclipException, PyperclipWindowsException
class PyperclipTimeoutException(PyperclipException):
pass |
class PyperclipTimeoutException(PyperclipException):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
7,487 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common.IOArgs | import dataclasses
from pandas._typing import BaseBuffer, ReadCsvBuffer
@dataclasses.dataclass
class IOArgs:
"""
Return value of io/common.py:_get_filepath_or_buffer.
"""
filepath_or_buffer: str | BaseBuffer
encoding: str
mode: str
compression: CompressionDict
should_close: bool = False | @dataclasses.dataclass
class IOArgs:
'''
Return value of io/common.py:_get_filepath_or_buffer.
'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 1 | 6 | 2 | 5 | 3 | 6 | 2 | 5 | 0 | 0 | 0 | 0 |
7,488 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common.IOHandles | import dataclasses
from typing import IO, TYPE_CHECKING, Any, AnyStr, DefaultDict, Generic, Literal, TypeVar, cast, overload
from io import BufferedIOBase, BytesIO, RawIOBase, StringIO, TextIOBase, TextIOWrapper
@dataclasses.dataclass
class IOHandles(Generic[AnyStr]):
"""
Return value of io/common.py:get_handl... | @dataclasses.dataclass
class IOHandles(Generic[AnyStr]):
'''
Return value of io/common.py:get_handle
Can be used as a context manager.
This is used to easily close created buffers and to handle corner cases when
TextIOWrapper is inserted.
handle: The file handle to be used.
created_handles: ... | 5 | 2 | 8 | 0 | 6 | 2 | 2 | 0.63 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 5 | 47 | 8 | 24 | 12 | 15 | 15 | 19 | 7 | 15 | 3 | 1 | 1 | 5 |
7,489 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common._BufferedWriter | from abc import ABC, abstractmethod
from io import BufferedIOBase, BytesIO, RawIOBase, StringIO, TextIOBase, TextIOWrapper
class _BufferedWriter(BytesIO, ABC):
"""
Some objects do not support multiple .write() calls (TarFile and ZipFile).
This wrapper writes to the underlying buffer on close.
"""
b... |
class _BufferedWriter(BytesIO, ABC):
'''
Some objects do not support multiple .write() calls (TarFile and ZipFile).
This wrapper writes to the underlying buffer on close.
'''
@abstractmethod
def write_to_buffer(self) -> None:
pass
def close(self) -> None:
pass | 4 | 1 | 7 | 0 | 6 | 1 | 2 | 0.5 | 2 | 1 | 0 | 2 | 2 | 0 | 2 | 22 | 23 | 3 | 14 | 5 | 11 | 7 | 13 | 4 | 10 | 3 | 4 | 2 | 4 |
7,490 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common._BytesIOWrapper | from io import BufferedIOBase, BytesIO, RawIOBase, StringIO, TextIOBase, TextIOWrapper
from typing import IO, TYPE_CHECKING, Any, AnyStr, DefaultDict, Generic, Literal, TypeVar, cast, overload
class _BytesIOWrapper:
def __init__(self, buffer: StringIO | TextIOBase, encoding: str='utf-8') -> None:
self.buf... |
class _BytesIOWrapper:
def __init__(self, buffer: StringIO | TextIOBase, encoding: str='utf-8') -> None:
pass
def __getattr__(self, attr: str) -> Any:
pass
def read(self, n: int | None=-1) -> bytes:
pass | 4 | 0 | 7 | 0 | 6 | 2 | 1 | 0.39 | 0 | 5 | 0 | 0 | 3 | 3 | 3 | 3 | 27 | 2 | 18 | 10 | 14 | 7 | 17 | 10 | 13 | 2 | 0 | 1 | 4 |
7,491 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common._BytesTarFile | from typing import IO, TYPE_CHECKING, Any, AnyStr, DefaultDict, Generic, Literal, TypeVar, cast, overload
from pathlib import Path
import tarfile
class _BytesTarFile(_BufferedWriter):
def __init__(self, name: str | None=None, mode: Literal['r', 'a', 'w', 'x']='r', fileobj: ReadBuffer[bytes] | WriteBuffer[bytes] |... |
class _BytesTarFile(_BufferedWriter):
def __init__(self, name: str | None=None, mode: Literal['r', 'a', 'w', 'x']='r', fileobj: ReadBuffer[bytes] | WriteBuffer[bytes] | None=None, archive_name: str | None=None, **kwargs: Any) -> None:
pass
def extend_mode(self, mode: str) -> str:
pass
de... | 5 | 1 | 12 | 0 | 10 | 2 | 3 | 0.2 | 1 | 9 | 0 | 0 | 4 | 3 | 4 | 26 | 52 | 4 | 41 | 19 | 29 | 8 | 28 | 12 | 23 | 4 | 5 | 2 | 10 |
7,492 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common._BytesZipFile | import os
from pathlib import Path
import zipfile
from typing import IO, TYPE_CHECKING, Any, AnyStr, DefaultDict, Generic, Literal, TypeVar, cast, overload
class _BytesZipFile(_BufferedWriter):
def __init__(self, file: FilePath | ReadBuffer[bytes] | WriteBuffer[bytes], mode: str, archive_name: str | None=None, **... |
class _BytesZipFile(_BufferedWriter):
def __init__(self, file: FilePath | ReadBuffer[bytes] | WriteBuffer[bytes], mode: str, archive_name: str | None=None, **kwargs: Any) -> None:
pass
def infer_filename(self) -> str | None:
'''
If an explicit archive_name is not given, we still want ... | 4 | 1 | 11 | 0 | 8 | 3 | 2 | 0.32 | 1 | 9 | 0 | 0 | 3 | 2 | 3 | 25 | 35 | 3 | 25 | 14 | 15 | 8 | 17 | 8 | 13 | 3 | 5 | 2 | 5 |
7,493 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/common.py | pandas.io.common._IOWrapper | from typing import IO, TYPE_CHECKING, Any, AnyStr, DefaultDict, Generic, Literal, TypeVar, cast, overload
from pandas._typing import BaseBuffer, ReadCsvBuffer
class _IOWrapper:
def __init__(self, buffer: BaseBuffer) -> None:
self.buffer = buffer
def __getattr__(self, name: str) -> Any:
return... |
class _IOWrapper:
def __init__(self, buffer: BaseBuffer) -> None:
pass
def __getattr__(self, name: str) -> Any:
pass
def readable(self) -> bool:
pass
def seekable(self) -> bool:
pass
def writable(self) -> bool:
pass | 6 | 0 | 3 | 0 | 3 | 0 | 2 | 0.35 | 0 | 4 | 0 | 0 | 5 | 1 | 5 | 5 | 27 | 4 | 17 | 7 | 11 | 6 | 17 | 7 | 11 | 2 | 0 | 1 | 8 |
7,494 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/excel/_base.py | pandas.io.excel._base.BaseExcelReader | from collections.abc import Callable, Hashable, Iterable, Mapping, Sequence
from pandas.io.parsers import TextParser
from pandas.io.parsers.readers import validate_integer
from pandas.io.excel._util import fill_mi_header, get_default_engine, get_writer, maybe_convert_usecols, pop_header_name
from functools import parti... |
class BaseExcelReader(Generic[_WorkbookT]):
def __init__(self, filepath_or_buffer, storage_options: StorageOptions | None=None, engine_kwargs: dict | None=None) -> None:
pass
@property
def _workbook_class(self) -> type[_WorkbookT]:
pass
def load_workbook(self, filepath_or_buffer, engi... | 18 | 2 | 27 | 3 | 21 | 4 | 5 | 0.19 | 1 | 23 | 1 | 0 | 14 | 1 | 14 | 16 | 425 | 54 | 314 | 104 | 236 | 59 | 174 | 40 | 158 | 23 | 1 | 5 | 68 |
7,495 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/excel/_base.py | pandas.io.excel._base.ExcelFile | from typing import IO, TYPE_CHECKING, Any, Generic, Literal, Self, TypeVar, Union, cast, overload
import os
from pandas._config import config
from collections.abc import Callable, Hashable, Iterable, Mapping, Sequence
from pandas._libs import lib
from pandas.compat._optional import get_version, import_optional_dependen... | @doc(storage_options=_shared_docs['storage_options'])
class ExcelFile:
'''
Class for parsing tabular Excel sheets into DataFrame objects.
See read_excel for more documentation.
Parameters
----------
path_or_buffer : str, bytes, pathlib.Path,
A file-like object, xlrd workbook or openpyxl ... | 12 | 5 | 37 | 4 | 13 | 20 | 2 | 1.82 | 0 | 18 | 0 | 0 | 8 | 4 | 8 | 8 | 382 | 52 | 117 | 55 | 69 | 213 | 47 | 22 | 32 | 10 | 0 | 3 | 17 |
7,496 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/excel/_base.py | pandas.io.excel._base.ExcelWriter | from pandas.util._exceptions import find_stack_level
import datetime
import warnings
from pandas.core.shared_docs import _shared_docs
from pandas.io.common import IOHandles, get_handle, stringify_path, validate_header_arg
from pandas.io.excel._util import fill_mi_header, get_default_engine, get_writer, maybe_convert_us... | @doc(storage_options=_shared_docs['storage_options'])
class ExcelWriter(Generic[_WorkbookT]):
'''
Class for writing DataFrame objects into excel sheets.
Default is to use:
* `xlsxwriter <https://pypi.org/project/XlsxWriter/>`__ for xlsx files if xlsxwriter
is installed otherwise `openpyxl <https:/... | 28 | 13 | 13 | 1 | 8 | 3 | 2 | 1.31 | 1 | 22 | 0 | 0 | 17 | 6 | 18 | 20 | 449 | 72 | 164 | 74 | 101 | 215 | 98 | 29 | 79 | 9 | 1 | 4 | 43 |
7,497 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/excel/_calamine.py | pandas.io.excel._calamine.CalamineReader | from datetime import date, datetime, time, timedelta
from pandas.util._decorators import doc
from pandas.compat._optional import import_optional_dependency
from pandas.io.excel._base import BaseExcelReader
from typing import TYPE_CHECKING, Any, TypeAlias
import pandas as pd
from pandas.core.shared_docs import _shared_d... |
class CalamineReader(BaseExcelReader['CalamineWorkbook']):
@doc(storage_options=_shared_docs['storage_options'])
def __init__(self, filepath_or_buffer: FilePath | ReadBuffer[bytes], storage_options: StorageOptions | None=None, engine_kwargs: dict | None=None) -> None:
'''
Reader using calamine... | 12 | 1 | 11 | 1 | 9 | 1 | 2 | 0.16 | 1 | 13 | 0 | 0 | 7 | 0 | 7 | 20 | 85 | 13 | 62 | 27 | 38 | 10 | 33 | 15 | 21 | 6 | 2 | 2 | 13 |
7,498 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/excel/_odfreader.py | pandas.io.excel._odfreader.ODFReader | import pandas as pd
from pandas.core.shared_docs import _shared_docs
from pandas.io.excel._base import BaseExcelReader
from pandas.util._decorators import doc
from typing import TYPE_CHECKING, cast
from pandas.compat._optional import import_optional_dependency
from pandas._typing import FilePath, ReadBuffer, Scalar, St... | @doc(storage_options=_shared_docs['storage_options'])
class ODFReader(BaseExcelReader['OpenDocument']):
def __init__(self, filepath_or_buffer: FilePath | ReadBuffer[bytes], storage_options: StorageOptions | None=None, engine_kwargs: dict | None=None) -> None:
'''
Read tables out of OpenDocument for... | 17 | 6 | 17 | 2 | 12 | 3 | 3 | 0.22 | 1 | 11 | 0 | 0 | 12 | 0 | 12 | 25 | 219 | 37 | 150 | 71 | 108 | 33 | 117 | 54 | 91 | 12 | 2 | 4 | 39 |
7,499 | pandas-dev/pandas | pandas-dev_pandas/pandas/io/excel/_odswriter.py | pandas.io.excel._odswriter.ODSWriter | import datetime
from pandas.io.excel._base import ExcelWriter
import json
from pandas.io.excel._util import combine_kwargs, validate_freeze_panes
from typing import TYPE_CHECKING, Any, DefaultDict, cast, overload
from collections import defaultdict
class ODSWriter(ExcelWriter):
_engine = 'odf'
_supported_exten... |
class ODSWriter(ExcelWriter):
def __init__(self, path: FilePath | WriteExcelBuffer | ExcelWriter, engine: str | None=None, date_format: str | None=None, datetime_format: str | None=None, mode: str='w', storage_options: StorageOptions | None=None, if_sheet_exists: ExcelWriterIfSheetExists | None=None, engine_kwarg... | 16 | 8 | 28 | 3 | 20 | 5 | 3 | 0.26 | 1 | 15 | 0 | 0 | 11 | 2 | 11 | 29 | 325 | 41 | 227 | 91 | 171 | 59 | 129 | 52 | 110 | 10 | 2 | 3 | 37 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.