The following issues were found
pandas/core/computation/check.py
1 issues
Line: 1
Column: 1
from pandas.compat._optional import import_optional_dependency
ne = import_optional_dependency("numexpr", errors="warn")
NUMEXPR_INSTALLED = ne is not None
if NUMEXPR_INSTALLED:
NUMEXPR_VERSION = ne.__version__
else:
NUMEXPR_VERSION = None
Reported by Pylint.
pandas/core/sparse/api.py
1 issues
Line: 1
Column: 1
from pandas.core.arrays.sparse import (
SparseArray,
SparseDtype,
)
__all__ = ["SparseArray", "SparseDtype"]
Reported by Pylint.
pandas/core/shared_docs.py
1 issues
Line: 1
Column: 1
from __future__ import annotations
_shared_docs: dict[str, str] = {}
_shared_docs[
"aggregate"
] = """
Aggregate using one or more operations over the specified axis.
Reported by Pylint.
pandas/core/groupby/__init__.py
1 issues
Line: 1
Column: 1
from pandas.core.groupby.generic import (
DataFrameGroupBy,
NamedAgg,
SeriesGroupBy,
)
from pandas.core.groupby.groupby import GroupBy
from pandas.core.groupby.grouper import Grouper
__all__ = [
Reported by Pylint.
pandas/io/json/__init__.py
1 issues
Line: 1
Column: 1
from pandas.io.json._json import (
dumps,
loads,
read_json,
to_json,
)
from pandas.io.json._normalize import (
_json_normalize,
json_normalize,
Reported by Pylint.
pandas/_libs/src/parser/tokenizer.h
1 issues
Line: 47
Column: 18
CWE codes:
134
Suggestion:
Use a constant for the format specification
// #define VERBOSE
#if defined(VERBOSE)
#define TRACE(X) printf X;
#else
#define TRACE(X)
#endif // VERBOSE
#define PARSER_OUT_OF_MEMORY -1
Reported by FlawFinder.
pandas/core/window/__init__.py
1 issues
Line: 1
Column: 1
from pandas.core.window.ewm import ( # noqa:F401
ExponentialMovingWindow,
ExponentialMovingWindowGroupby,
)
from pandas.core.window.expanding import ( # noqa:F401
Expanding,
ExpandingGroupby,
)
from pandas.core.window.rolling import ( # noqa:F401
Reported by Pylint.
pandas/core/groupby/base.py
1 issues
Line: 13
Column: 1
@dataclasses.dataclass(order=True, frozen=True)
class OutputKey:
label: Hashable
position: int
# special case to prevent duplicate plots when catching exceptions when
Reported by Pylint.
pandas/tests/extension/decimal/__init__.py
1 issues
Line: 1
Column: 1
from pandas.tests.extension.decimal.array import (
DecimalArray,
DecimalDtype,
make_data,
to_decimal,
)
__all__ = ["DecimalArray", "DecimalDtype", "to_decimal", "make_data"]
Reported by Pylint.
pandas/core/array_algos/transforms.py
1 issues
Line: 8
Column: 1
import numpy as np
def shift(values: np.ndarray, periods: int, axis: int, fill_value) -> np.ndarray:
new_values = values
if periods == 0 or values.size == 0:
return new_values.copy()
Reported by Pylint.