repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/api.py
pandas/core/computation/api.py
__all__ = ["eval"] from pandas.core.computation.eval import eval
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/check.py
pandas/core/computation/check.py
from __future__ import annotations from pandas.compat._optional import import_optional_dependency ne = import_optional_dependency("numexpr", errors="warn") NUMEXPR_INSTALLED = ne is not None __all__ = ["NUMEXPR_INSTALLED"]
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/align.py
pandas/core/computation/align.py
""" Core eval alignment algorithms. """ from __future__ import annotations from functools import ( partial, wraps, ) from typing import TYPE_CHECKING import warnings import numpy as np from pandas._config.config import get_option from pandas.errors import PerformanceWarning from pandas.util._exceptions imp...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/pytables.py
pandas/core/computation/pytables.py
"""manage PyTables query interface via Expressions""" from __future__ import annotations import ast from decimal import ( Decimal, InvalidOperation, ) from functools import partial from typing import ( TYPE_CHECKING, Any, ClassVar, Self, cast, ) import numpy as np from pandas._libs impor...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/common.py
pandas/core/computation/common.py
from __future__ import annotations from functools import reduce import numpy as np from pandas._config import get_option def ensure_decoded(s) -> str: """ If we have bytes, decode them to unicode. """ if isinstance(s, (np.bytes_, bytes)): s = s.decode(get_option("display.encoding")) ret...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/eval.py
pandas/core/computation/eval.py
""" Top level ``eval`` module. """ from __future__ import annotations import tokenize from typing import ( TYPE_CHECKING, Any, ) import warnings from pandas.util._decorators import set_module from pandas.util._exceptions import find_stack_level from pandas.util._validators import validate_bool_kwarg from pa...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/ops.py
pandas/core/computation/ops.py
""" Operator classes for eval. """ from __future__ import annotations from datetime import datetime from functools import partial import operator from typing import ( TYPE_CHECKING, Literal, ) import numpy as np from pandas._libs.tslibs import Timestamp from pandas.core.dtypes.common import ( is_list_l...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/scope.py
pandas/core/computation/scope.py
""" Module for scope operations """ from __future__ import annotations from collections import ChainMap import datetime import inspect from io import StringIO import itertools import pprint import struct import sys from typing import TypeVar import numpy as np from pandas._libs.tslibs import Timestamp from pandas.e...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/expressions.py
pandas/core/computation/expressions.py
""" Expressions ----------- Offer fast expression evaluation through numexpr """ from __future__ import annotations import operator from typing import TYPE_CHECKING import warnings import numpy as np from pandas._config import get_option from pandas.util._exceptions import find_stack_level from pandas.core impo...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/parsing.py
pandas/core/computation/parsing.py
""" :func:`~pandas.eval` source string parsing functions """ from __future__ import annotations from enum import Enum from io import StringIO from keyword import iskeyword import token import tokenize from typing import TYPE_CHECKING if TYPE_CHECKING: from collections.abc import ( Hashable, Itera...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/expr.py
pandas/core/computation/expr.py
""" :func:`~pandas.eval` parsers. """ from __future__ import annotations import ast from functools import ( partial, reduce, ) from keyword import iskeyword import tokenize from typing import ( TYPE_CHECKING, ClassVar, TypeVar, ) import numpy as np from pandas.errors import UndefinedVariableErro...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/computation/__init__.py
pandas/core/computation/__init__.py
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/strings/object_array.py
pandas/core/strings/object_array.py
from __future__ import annotations import functools import re import textwrap from typing import ( TYPE_CHECKING, Literal, cast, ) import unicodedata import numpy as np from pandas._libs import lib import pandas._libs.missing as libmissing import pandas._libs.ops as libops from pandas.util._validators im...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/strings/accessor.py
pandas/core/strings/accessor.py
from __future__ import annotations import codecs from functools import wraps import re from typing import ( TYPE_CHECKING, Literal, cast, ) import warnings import numpy as np from pandas._config import using_string_dtype from pandas._libs import lib from pandas._typing import ( AlignJoin, DtypeO...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/strings/__init__.py
pandas/core/strings/__init__.py
""" Implementation of pandas.Series.str and its interface. * strings.accessor.StringMethods : Accessor for Series.str Most methods on the StringMethods accessor follow the pattern: 1. extract the array from the series (or index) 2. Call that array's implementation of the string method 3. Wrap the result ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/sparse/api.py
pandas/core/sparse/api.py
from pandas.core.dtypes.dtypes import SparseDtype from pandas.core.arrays.sparse import SparseArray __all__ = ["SparseArray", "SparseDtype"]
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/sparse/__init__.py
pandas/core/sparse/__init__.py
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/datetimelike_accumulations.py
pandas/core/array_algos/datetimelike_accumulations.py
""" datetimelke_accumulations.py is for accumulations of datetimelike extension arrays """ from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from pandas._libs import iNaT from pandas.core.dtypes.missing import isna if TYPE_CHECKING: from collections.abc import Callable d...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/putmask.py
pandas/core/array_algos/putmask.py
""" EA-compatible analogue to np.putmask """ from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ) import numpy as np from pandas._libs import lib from pandas.core.dtypes.cast import infer_dtype_from from pandas.core.dtypes.common import is_list_like from pandas.core.arrays import ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/quantile.py
pandas/core/array_algos/quantile.py
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from pandas.core.dtypes.missing import ( isna, na_value_for_dtype, ) if TYPE_CHECKING: from pandas._typing import ( ArrayLike, Scalar, npt, ) def quantile_compat( values: ArrayLike, q...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/masked_reductions.py
pandas/core/array_algos/masked_reductions.py
""" masked_reductions.py is for reduction algorithms using a mask-based approach for missing values. """ from __future__ import annotations from typing import TYPE_CHECKING import warnings import numpy as np from pandas._libs import missing as libmissing from pandas.core.nanops import check_below_min_count if TYP...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/take.py
pandas/core/array_algos/take.py
from __future__ import annotations import functools from typing import ( TYPE_CHECKING, cast, overload, ) import numpy as np from pandas._libs import ( algos as libalgos, lib, ) from pandas.core.dtypes.cast import maybe_promote from pandas.core.dtypes.common import ( ensure_platform_int, ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/masked_accumulations.py
pandas/core/array_algos/masked_accumulations.py
""" masked_accumulations.py is for accumulation algorithms using a mask-based approach for missing values. """ from __future__ import annotations from typing import TYPE_CHECKING import numpy as np if TYPE_CHECKING: from collections.abc import Callable from pandas._typing import npt def _cum_func( fu...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/__init__.py
pandas/core/array_algos/__init__.py
""" core.array_algos is for algorithms that operate on ndarray and ExtensionArray. These should: - Assume that any Index, Series, or DataFrame objects have already been unwrapped. - Assume that any list arguments have already been cast to ndarray/EA. - Not depend on Index, Series, or DataFrame, nor import any of these...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/replace.py
pandas/core/array_algos/replace.py
""" Methods used by Block.replace and related methods. """ from __future__ import annotations import operator import re from re import Pattern from typing import ( TYPE_CHECKING, Any, ) import numpy as np from pandas.core.dtypes.common import ( is_bool, is_re, is_re_compilable, ) from pandas.cor...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/array_algos/transforms.py
pandas/core/array_algos/transforms.py
""" transforms.py is for shape-preserving functions. """ from __future__ import annotations from typing import TYPE_CHECKING import numpy as np if TYPE_CHECKING: from pandas._typing import ( AxisInt, Scalar, ) def shift( values: np.ndarray, periods: int, axis: AxisInt, fill_value: Scal...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/_mixins.py
pandas/core/arrays/_mixins.py
from __future__ import annotations from functools import wraps from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, overload, ) import numpy as np from pandas._libs import lib from pandas._libs.arrays import NDArrayBacked from pandas._libs.tslibs import is_supported_dtype from pandas...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/datetimes.py
pandas/core/arrays/datetimes.py
from __future__ import annotations from datetime import ( datetime, timedelta, tzinfo, ) from typing import ( TYPE_CHECKING, Self, TypeVar, cast, overload, ) import warnings import numpy as np from pandas._config import using_string_dtype from pandas._config.config import get_option ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/boolean.py
pandas/core/arrays/boolean.py
from __future__ import annotations import numbers from typing import ( TYPE_CHECKING, ClassVar, Self, cast, ) import numpy as np from pandas._libs import ( lib, missing as libmissing, ) from pandas.util._decorators import set_module from pandas.core.dtypes.common import is_list_like from pan...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/_arrow_string_mixins.py
pandas/core/arrays/_arrow_string_mixins.py
from __future__ import annotations from functools import partial import re from typing import ( TYPE_CHECKING, Any, Literal, Self, ) import numpy as np from pandas._libs import lib from pandas.compat import ( HAS_PYARROW, pa_version_under17p0, pa_version_under21p0, ) if HAS_PYARROW: ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/floating.py
pandas/core/arrays/floating.py
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ClassVar, ) import numpy as np from pandas.util._decorators import set_module from pandas.core.dtypes.base import register_extension_dtype from pandas.core.dtypes.common import is_float_dtype from pandas.core.arrays.numeric imp...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/integer.py
pandas/core/arrays/integer.py
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ClassVar, ) import numpy as np from pandas.util._decorators import set_module from pandas.core.dtypes.base import register_extension_dtype from pandas.core.dtypes.common import is_integer_dtype from pandas.core.arrays.numeric i...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/string_arrow.py
pandas/core/arrays/string_arrow.py
from __future__ import annotations import operator import re from typing import ( TYPE_CHECKING, Self, ) import numpy as np from pandas._libs import ( lib, missing as libmissing, ) from pandas.compat import ( HAS_PYARROW, PYARROW_MIN_VERSION, pa_version_under16p0, ) from pandas.util._deco...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/period.py
pandas/core/arrays/period.py
from __future__ import annotations from datetime import timedelta import operator from typing import ( TYPE_CHECKING, Any, Literal, Self, TypeVar, cast, overload, ) import warnings import numpy as np from pandas._libs import ( algos as libalgos, lib, ) from pandas._libs.arrays imp...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/categorical.py
pandas/core/arrays/categorical.py
from __future__ import annotations from csv import QUOTE_NONNUMERIC from functools import partial import itertools import operator from shutil import get_terminal_size from typing import ( TYPE_CHECKING, Literal, Self, cast, overload, ) import warnings import numpy as np from pandas._config impor...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/interval.py
pandas/core/arrays/interval.py
from __future__ import annotations import operator from operator import ( le, lt, ) import textwrap from typing import ( TYPE_CHECKING, Literal, Self, TypeAlias, overload, ) import numpy as np from pandas._libs import lib from pandas._libs.interval import ( VALID_CLOSED, Interval,...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/string_.py
pandas/core/arrays/string_.py
from __future__ import annotations from functools import partial import operator from pathlib import Path from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, ) import warnings import numpy as np from pandas._config import ( get_option, using_string_dtype, ) from pandas._libs im...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/numeric.py
pandas/core/arrays/numeric.py
from __future__ import annotations import numbers from typing import ( TYPE_CHECKING, Any, Self, ) import numpy as np from pandas._config import is_nan_na from pandas._libs import ( lib, missing as libmissing, ) from pandas.errors import AbstractMethodError from pandas.util._decorators import ca...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/masked.py
pandas/core/arrays/masked.py
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, overload, ) import warnings import numpy as np from pandas._config import ( is_nan_na, using_python_scalars, ) from pandas._libs import ( algos as libalgos, lib, missing as li...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/timedeltas.py
pandas/core/arrays/timedeltas.py
from __future__ import annotations from datetime import timedelta import operator from typing import ( TYPE_CHECKING, Self, cast, ) import numpy as np from pandas._libs import ( lib, tslibs, ) from pandas._libs.tslibs import ( Day, NaT, NaTType, Tick, Timedelta, astype_ove...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/__init__.py
pandas/core/arrays/__init__.py
from pandas.core.arrays.arrow import ArrowExtensionArray from pandas.core.arrays.base import ( ExtensionArray, ExtensionOpsMixin, ExtensionScalarOpsMixin, ) from pandas.core.arrays.boolean import BooleanArray from pandas.core.arrays.categorical import Categorical from pandas.core.arrays.datetimes import Dat...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/datetimelike.py
pandas/core/arrays/datetimelike.py
from __future__ import annotations from datetime import ( datetime, timedelta, ) from functools import wraps import operator from typing import ( TYPE_CHECKING, Any, Literal, Self, TypeAlias, Union, cast, final, overload, ) import warnings import numpy as np from pandas._c...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/base.py
pandas/core/arrays/base.py
""" An interface for extending pandas with custom arrays. .. warning:: This is an experimental API and subject to breaking changes without warning. """ from __future__ import annotations import operator from typing import ( TYPE_CHECKING, Any, ClassVar, Literal, Self, cast, overloa...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/_ranges.py
pandas/core/arrays/_ranges.py
""" Helper functions to generate range-like data for DatetimeArray (and possibly TimedeltaArray/PeriodArray) """ from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from pandas._libs.lib import i8max from pandas._libs.tslibs import ( BaseOffset, Day, OutOfBoundsDatetim...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/_utils.py
pandas/core/arrays/_utils.py
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ) import numpy as np from pandas._config import is_nan_na from pandas._libs import lib from pandas._libs.missing import NA from pandas.errors import LossySetitemError from pandas.core.dtypes.cast import np_can_hold_element from pan...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/numpy_.py
pandas/core/arrays/numpy_.py
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, ) import numpy as np from pandas._libs import lib from pandas._libs.tslibs import is_supported_dtype from pandas.compat.numpy import function as nv from pandas.util._decorators import set_module from...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/arrow/_arrow_utils.py
pandas/core/arrays/arrow/_arrow_utils.py
from __future__ import annotations import numpy as np import pyarrow def pyarrow_array_to_numpy_and_mask( arr, dtype: np.dtype ) -> tuple[np.ndarray, np.ndarray]: """ Convert a primitive pyarrow.Array to a numpy array and boolean mask based on the buffers of the Array. At the moment pyarrow.Bool...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/arrow/extension_types.py
pandas/core/arrays/arrow/extension_types.py
from __future__ import annotations import json from typing import TYPE_CHECKING import pyarrow from pandas.compat import pa_version_under14p1 from pandas.core.dtypes.dtypes import ( IntervalDtype, PeriodDtype, ) from pandas.core.arrays.interval import VALID_CLOSED if TYPE_CHECKING: from pandas._typing...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/arrow/accessors.py
pandas/core/arrays/arrow/accessors.py
"""Accessors for arrow-backed data.""" from __future__ import annotations from abc import ( ABCMeta, abstractmethod, ) from typing import ( TYPE_CHECKING, cast, ) from pandas.compat import HAS_PYARROW from pandas.core.dtypes.common import is_list_like if HAS_PYARROW: import pyarrow as pa im...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/arrow/array.py
pandas/core/arrays/arrow/array.py
from __future__ import annotations from datetime import ( date, datetime, ) import functools import operator from pathlib import Path import re import textwrap from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, overload, ) import unicodedata import warnings import numpy as n...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/arrow/__init__.py
pandas/core/arrays/arrow/__init__.py
from pandas.core.arrays.arrow.accessors import ( ListAccessor, StructAccessor, ) from pandas.core.arrays.arrow.array import ArrowExtensionArray __all__ = ["ArrowExtensionArray", "ListAccessor", "StructAccessor"]
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/sparse/accessor.py
pandas/core/arrays/sparse/accessor.py
"""Sparse accessor""" from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from pandas.compat._optional import import_optional_dependency from pandas.core.dtypes.cast import find_common_type from pandas.core.dtypes.dtypes import SparseDtype from pandas.core.accessor import ( ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/sparse/scipy_sparse.py
pandas/core/arrays/sparse/scipy_sparse.py
""" Interaction with scipy.sparse matrices. Currently only includes to_coo helpers. """ from __future__ import annotations from typing import TYPE_CHECKING from pandas._libs import lib from pandas.core.dtypes.missing import notna from pandas.core.algorithms import factorize from pandas.core.indexes.api import Mul...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/sparse/array.py
pandas/core/arrays/sparse/array.py
""" SparseArray data structure """ from __future__ import annotations from collections import abc import numbers import operator from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, overload, ) import warnings import numpy as np from pandas._config.config import get_option from pan...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/arrays/sparse/__init__.py
pandas/core/arrays/sparse/__init__.py
from pandas.core.arrays.sparse.accessor import ( SparseAccessor, SparseFrameAccessor, ) from pandas.core.arrays.sparse.array import ( BlockIndex, IntIndex, SparseArray, make_sparse_index, ) __all__ = [ "BlockIndex", "IntIndex", "SparseAccessor", "SparseArray", "SparseFrameAc...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/api.py
pandas/core/internals/api.py
""" This is a pseudo-public API for downstream libraries. We ask that downstream authors 1) Try to avoid using internals directly altogether, and failing that, 2) Use only functions exposed here (or in core.internals) """ from __future__ import annotations from typing import TYPE_CHECKING import warnings import n...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/blocks.py
pandas/core/internals/blocks.py
from __future__ import annotations import inspect import re from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, final, ) import warnings import numpy as np from pandas._libs import ( NaT, internals as libinternals, lib, ) from pandas._libs.internals import ( BlockPla...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/construction.py
pandas/core/internals/construction.py
""" Functions for preparing various inputs passed to the DataFrame or Series constructors before passing them to a BlockManager. """ from __future__ import annotations from collections import abc from typing import ( TYPE_CHECKING, Any, ) import numpy as np from numpy import ma from pandas._config import us...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/ops.py
pandas/core/internals/ops.py
from __future__ import annotations from typing import ( TYPE_CHECKING, NamedTuple, ) from pandas.core.dtypes.common import is_1d_only_ea_dtype if TYPE_CHECKING: from collections.abc import Iterator from pandas._libs.internals import BlockPlacement from pandas._typing import ArrayLike from p...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/managers.py
pandas/core/internals/managers.py
from __future__ import annotations from collections.abc import ( Callable, Hashable, Sequence, ) import itertools from typing import ( TYPE_CHECKING, Any, Literal, NoReturn, Self, cast, final, ) import warnings import numpy as np from pandas._config.config import get_option f...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/concat.py
pandas/core/internals/concat.py
from __future__ import annotations from typing import ( TYPE_CHECKING, cast, ) import numpy as np from pandas._libs import ( NaT, algos as libalgos, internals as libinternals, lib, ) from pandas._libs.missing import NA from pandas.util._decorators import cache_readonly from pandas.core.dtype...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/internals/__init__.py
pandas/core/internals/__init__.py
from pandas.core.internals.api import make_block # 2023-09-18 pyarrow uses this from pandas.core.internals.concat import concatenate_managers from pandas.core.internals.managers import ( BlockManager, SingleBlockManager, ) __all__ = [ "Block", # pyright:ignore[reportUnsupportedDunderAll)] "BlockManag...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/api.py
pandas/core/reshape/api.py
from pandas.core.reshape.concat import concat from pandas.core.reshape.encoding import ( from_dummies, get_dummies, ) from pandas.core.reshape.melt import ( lreshape, melt, wide_to_long, ) from pandas.core.reshape.merge import ( merge, merge_asof, merge_ordered, ) from pandas.core.reshap...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/pivot.py
pandas/core/reshape/pivot.py
from __future__ import annotations import itertools from typing import ( TYPE_CHECKING, Literal, cast, ) import numpy as np from pandas._libs import lib from pandas.util._decorators import set_module from pandas.core.dtypes.cast import maybe_downcast_to_dtype from pandas.core.dtypes.common import ( ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/tile.py
pandas/core/reshape/tile.py
""" Quantilization functions and related stuff """ from __future__ import annotations from typing import ( TYPE_CHECKING, Any, Literal, cast, ) import numpy as np from pandas._libs import ( Timedelta, Timestamp, lib, ) from pandas.util._decorators import set_module from pandas.core.dtyp...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/reshape.py
pandas/core/reshape/reshape.py
from __future__ import annotations import itertools from typing import ( TYPE_CHECKING, cast, overload, ) import warnings import numpy as np from pandas._config.config import get_option import pandas._libs.reshape as libreshape from pandas.errors import ( Pandas4Warning, PerformanceWarning, ) fr...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/merge.py
pandas/core/reshape/merge.py
""" SQL-style merge routines """ from __future__ import annotations from collections.abc import ( Hashable, Sequence, ) import datetime from functools import partial import types from typing import ( TYPE_CHECKING, Literal, cast, final, ) import uuid import warnings import numpy as np from p...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/concat.py
pandas/core/reshape/concat.py
""" Concat routines. """ from __future__ import annotations from collections import abc from itertools import pairwise import types from typing import ( TYPE_CHECKING, Literal, cast, overload, ) import warnings import numpy as np from pandas._libs import lib from pandas.errors import Pandas4Warning ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/encoding.py
pandas/core/reshape/encoding.py
from __future__ import annotations from collections import defaultdict from collections.abc import ( Hashable, Iterable, ) import itertools from typing import TYPE_CHECKING import numpy as np from pandas._libs import missing as libmissing from pandas._libs.sparse import IntIndex from pandas.util._decorators ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/__init__.py
pandas/core/reshape/__init__.py
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/reshape/melt.py
pandas/core/reshape/melt.py
from __future__ import annotations import re from typing import TYPE_CHECKING import numpy as np from pandas.util._decorators import set_module from pandas.core.dtypes.common import ( is_iterator, is_list_like, ) from pandas.core.dtypes.concat import concat_compat from pandas.core.dtypes.missing import notn...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexers/objects.py
pandas/core/indexers/objects.py
"""Indexer objects for computing start/end window bounds for rolling operations""" from __future__ import annotations from datetime import timedelta import numpy as np from pandas._libs.tslibs import BaseOffset from pandas._libs.window.indexers import calculate_variable_window_bounds from pandas.util._decorators im...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexers/utils.py
pandas/core/indexers/utils.py
""" Low-dependency indexing utilities. """ from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ) import numpy as np from pandas._libs import lib from pandas.util._decorators import set_module from pandas.core.dtypes.common import ( is_array_like, is_bool_dtype, is_intege...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexers/__init__.py
pandas/core/indexers/__init__.py
from pandas.core.indexers.utils import ( check_array_indexer, check_key_length, check_setitem_lengths, disallow_ndim_indexing, getitem_returns_view, is_empty_indexer, is_list_like_indexer, is_scalar_indexer, is_valid_positional_slice, length_of_indexer, maybe_convert_indices,...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/datetimes.py
pandas/core/indexes/datetimes.py
from __future__ import annotations import datetime as dt import operator from typing import ( TYPE_CHECKING, Self, ) import warnings import numpy as np from pandas._libs import ( NaT, Period, Timestamp, index as libindex, lib, ) from pandas._libs.tslibs import ( Resolution, Tick, ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/api.py
pandas/core/indexes/api.py
from __future__ import annotations from typing import ( TYPE_CHECKING, cast, ) import numpy as np from pandas._libs import ( NaT, lib, ) from pandas.errors import InvalidIndexError from pandas.core.dtypes.cast import find_common_type from pandas.core.algorithms import safe_sort from pandas.core.ind...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/range.py
pandas/core/indexes/range.py
from __future__ import annotations from collections.abc import ( Callable, Hashable, Iterator, ) from datetime import timedelta import operator from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, overload, ) import numpy as np from pandas._libs ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/multi.py
pandas/core/indexes/multi.py
from __future__ import annotations from collections.abc import ( Callable, Collection, Generator, Hashable, Iterable, Sequence, ) from functools import wraps from itertools import zip_longest from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Literal, Self, c...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/accessors.py
pandas/core/indexes/accessors.py
""" datetimelike delegation """ from __future__ import annotations from typing import ( TYPE_CHECKING, NoReturn, cast, ) import warnings import numpy as np from pandas._libs import lib from pandas.errors import Pandas4Warning from pandas.util._exceptions import find_stack_level from pandas.core.dtypes....
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/period.py
pandas/core/indexes/period.py
from __future__ import annotations from datetime import ( datetime, timedelta, ) from typing import ( TYPE_CHECKING, Self, ) import numpy as np from pandas._libs import index as libindex from pandas._libs.tslibs import ( BaseOffset, Day, NaT, Period, Resolution, Tick, ) from p...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/interval.py
pandas/core/indexes/interval.py
"""define the IntervalIndex""" from __future__ import annotations from operator import ( le, lt, ) from typing import ( TYPE_CHECKING, Any, Literal, Self, ) import numpy as np from pandas._libs import lib from pandas._libs.interval import ( Interval, IntervalMixin, IntervalTree, ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/extension.py
pandas/core/indexes/extension.py
""" Shared methods for Index subclasses backed by ExtensionArray. """ from __future__ import annotations from inspect import signature from typing import ( TYPE_CHECKING, TypeVar, ) from pandas.util._decorators import cache_readonly from pandas.core.dtypes.generic import ABCDataFrame from pandas.core.index...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/frozen.py
pandas/core/indexes/frozen.py
""" frozen (immutable) data structures to support MultiIndexing These are used for: - .names (FrozenList) """ from __future__ import annotations from typing import ( NoReturn, Self, ) from pandas.util._decorators import set_module from pandas.core.base import PandasObject from pandas.io.formats.printing...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/timedeltas.py
pandas/core/indexes/timedeltas.py
"""implement the TimedeltaIndex""" from __future__ import annotations from typing import ( TYPE_CHECKING, cast, ) from pandas._libs import ( index as libindex, lib, ) from pandas._libs.tslibs import ( Resolution, Timedelta, to_offset, ) from pandas._libs.tslibs.dtypes import abbrev_to_npy...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/__init__.py
pandas/core/indexes/__init__.py
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/category.py
pandas/core/indexes/category.py
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, ) import numpy as np from pandas._libs import index as libindex from pandas.util._decorators import ( cache_readonly, doc, set_module, ) from pandas.core.dtypes.common import is_scalar fr...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/datetimelike.py
pandas/core/indexes/datetimelike.py
""" Base and utility classes for tseries type pandas objects. """ from __future__ import annotations from abc import ( ABC, abstractmethod, ) from typing import ( TYPE_CHECKING, Any, Literal, Self, cast, final, ) import numpy as np from pandas._libs import ( NaT, lib, ) from ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/indexes/base.py
pandas/core/indexes/base.py
from __future__ import annotations from collections import abc from datetime import datetime import functools from itertools import zip_longest import operator from typing import ( TYPE_CHECKING, Any, ClassVar, Literal, NoReturn, Self, cast, final, overload, ) import warnings impor...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
true
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/docstrings.py
pandas/core/ops/docstrings.py
""" Templating for ops docstrings """ from __future__ import annotations def make_flex_doc(op_name: str, typ: str) -> str: """ Make the appropriate substitutions for the given operation and class-typ into either _flex_doc_SERIES or _flex_doc_FRAME to return the docstring to attach to a generated meth...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/mask_ops.py
pandas/core/ops/mask_ops.py
""" Ops for masked arrays. """ from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from pandas._libs import ( lib, missing as libmissing, ) if TYPE_CHECKING: from pandas._typing import npt def kleene_or( left: bool | np.ndarray | libmissing.NAType, right: bo...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/array_ops.py
pandas/core/ops/array_ops.py
""" Functions for arithmetic and comparison operations on NumPy arrays and ExtensionArrays. """ from __future__ import annotations import datetime from functools import partial import operator from typing import ( TYPE_CHECKING, Any, ) import numpy as np from pandas._libs import ( NaT, Timedelta, ...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/common.py
pandas/core/ops/common.py
""" Boilerplate functions used in defining binary operations. """ from __future__ import annotations from functools import wraps from typing import TYPE_CHECKING from pandas._libs.lib import item_from_zerodim from pandas._libs.missing import is_matching_na from pandas.core.dtypes.generic import ( ABCExtensionAr...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/missing.py
pandas/core/ops/missing.py
""" Missing data handling for arithmetic operations. In particular, pandas conventions regarding division by zero differ from numpy in the following ways: 1) np.array([-1, 0, 1], dtype=dtype1) // np.array([0, 0, 0], dtype=dtype2) gives [nan, nan, nan] for most dtype combinations, and [0, 0, 0] for th...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/invalid.py
pandas/core/ops/invalid.py
""" Templates for invalid operations. """ from __future__ import annotations import operator from typing import ( TYPE_CHECKING, Any, NoReturn, ) import numpy as np if TYPE_CHECKING: from collections.abc import Callable from pandas._typing import ( ArrayLike, Scalar, npt...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/dispatch.py
pandas/core/ops/dispatch.py
""" Functions for defining unary operations. """ from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ) from pandas.core.dtypes.generic import ABCExtensionArray if TYPE_CHECKING: from pandas._typing import ArrayLike def should_extension_dispatch(left: ArrayLike, right: Any) -> b...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/core/ops/__init__.py
pandas/core/ops/__init__.py
""" Arithmetic operations for PandasObjects This is not a public API. """ from __future__ import annotations from pandas.core.ops.array_ops import ( arithmetic_op, comp_method_OBJECT_ARRAY, comparison_op, fill_binop, get_array_op, logical_op, maybe_prepare_scalar_for_op, ) from pandas.cor...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/_testing/compat.py
pandas/_testing/compat.py
""" Helpers for sharing tests between DataFrame/Series """ from __future__ import annotations from typing import TYPE_CHECKING from pandas import DataFrame if TYPE_CHECKING: from pandas._typing import DtypeObj def get_dtype(obj) -> DtypeObj: if isinstance(obj, DataFrame): # Note: we are assuming o...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/_testing/_warnings.py
pandas/_testing/_warnings.py
from __future__ import annotations from contextlib import ( AbstractContextManager, contextmanager, nullcontext, ) import inspect import re import sys from typing import ( TYPE_CHECKING, Literal, Union, cast, ) import warnings if TYPE_CHECKING: from collections.abc import ( Gen...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/_testing/_hypothesis.py
pandas/_testing/_hypothesis.py
""" Hypothesis data generator helpers. """ from datetime import datetime from hypothesis import strategies as st from hypothesis.extra.dateutil import timezones as dateutil_timezones from pandas.compat import is_platform_windows import pandas as pd from pandas.tseries.offsets import ( BMonthBegin, BMonthEn...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false
pandas-dev/pandas
https://github.com/pandas-dev/pandas/blob/91514c363604506f447e53380d3aa00520f1037b/pandas/_testing/__init__.py
pandas/_testing/__init__.py
from __future__ import annotations from decimal import Decimal import operator import os from sys import byteorder from typing import ( TYPE_CHECKING, ContextManager, ) import numpy as np from pandas._config import using_string_dtype from pandas._config.localization import ( can_set_locale, get_local...
python
BSD-3-Clause
91514c363604506f447e53380d3aa00520f1037b
2026-01-04T14:39:36.002480Z
false