AI Slop Code Risk Monitor

unionai-oss/pandera

SlopCodeMonitor badge for unionai-oss/pandera Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
36.6 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for unionai-oss/pandera. SynthScan examined 153,553 lines of code across 603 source files, recording 3878 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 36.6 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

36.6
Adjusted Signal
36.6
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
153.6K
Lines of Code
603
Files
3.9K
Pattern Hits
2026-10-31
Scan Date
0.49
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 54.1/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 2443 finding(s).

Hallucinated Dependency & Supply Chain Risk 27.5/100 · MEDIUM

Are imports declared and package/API names verified? 839 finding(s).

Agent Over-Engineering Ratio 75.8/100 · CRITICAL

Are wrappers, guards, and repeated structures necessary? 2842 finding(s).

PR Review Velocity Impact 85.5/100 · CRITICAL

Which changes need focused human review? 3878 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 294MEDIUM 293LOW 3291

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3878 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers2213 hits · 2084 pts
SeverityFileLineSnippetContext
LOWnoxfile.py91def _generate_pip_deps_from_conda(CODE
LOWspecs/pluggable-data-synthesis.md329def register_synthesis_backend(name: str, backend: SynthesisBackend) -> None:CODE
LOWspecs/pluggable-data-synthesis.md380def _load_entry_point_backends() -> None: # registry.py (internal)CODE
LOWspecs/pluggable-data-synthesis.md802def compile_constraints_to_sampler(CODE
LOWspecs/optimized-strategies.md393def str_startswith_constraint(*, string) -> FieldConstraints:CODE
LOWspecs/optimized-strategies.md582def register_check_constraint(constraint_fn):CODE
LOWspecs/optimized-strategies.md877def _percentile_clipped_constraint(*, ref_low, ref_high) -> FieldConstraints:CODE
LOWspecs/optimized-strategies.md1460def _strategy_supports_base_mode(fn) -> bool:CODE
LOWspecs/optimized-strategies.md1654 def track_regex_filter_node_count(self):CODE
LOWspecs/derived-columns-and-system-one.md545 def routing_distribution_is_stable(cls, df):CODE
LOWspecs/pytorch-tensordict.md306def load_and_validate_dataset(path: str) -> TensorDict:CODE
LOWspecs/pytorch-tensordict.md430def validate_dataset_directory(data_dir: Path) -> list[str]:CODE
LOWspecs/pytorch-tensordict.md1161def test_tensorclass_generation(tc):CODE
LOWspecs/generic-dataframe.md184 def register_default_backends(check_obj_cls: type) -> None:CODE
LOWspecs/generic-dataframe.md233def register_narwhals_native_backends(check_obj_cls: type) -> None:CODE
LOWtests/test_inspection_utils.py54def test_is_decorated_classmethod() -> None:CODE
LOWtests/hypotheses/test_hypotheses.py30def test_dataframe_hypothesis_checks():CODE
LOWtests/hypotheses/test_hypotheses.py248def test_two_sample_ttest_hypothesis_relationships():CODE
LOWtests/hypotheses/test_hypotheses.py291def test_one_sample_hypothesis():CODE
LOWtests/core/test_register_checks.py27def test_loader_returns_callable_when_pandas_importable():CODE
LOWtests/core/test_register_checks.py34def test_loader_returns_none_on_import_error(monkeypatch):CODE
LOWtests/core/test_register_checks.py52def test_pyspark_pandas_does_not_route_to_pyspark_sql(monkeypatch):CODE
LOW⚡tests/core/test_checks.py18 def test_native_explicit_false(self):CODE
LOW⚡tests/core/test_checks.py23 def test_native_explicit_true(self):CODE
LOW⚡tests/core/test_checks.py28 def test_element_wise_and_native_coexist(self):CODE
LOW⚡tests/core/test_checks.py34 def test_element_wise_false_native_false(self):CODE
LOW⚡tests/core/test_checks.py44 def test_equal_to_native_false(self):CODE
LOW⚡tests/core/test_checks.py48 def test_greater_than_native_false(self):CODE
LOW⚡tests/core/test_checks.py56 def test_not_equal_to_native_false(self):CODE
LOW⚡tests/core/test_checks.py60 def test_greater_than_or_equal_to_native_false(self):CODE
LOW⚡tests/core/test_checks.py64 def test_less_than_native_false(self):CODE
LOW⚡tests/core/test_checks.py68 def test_less_than_or_equal_to_native_false(self):CODE
LOW⚡tests/core/test_checks.py72 def test_in_range_native_false(self):CODE
LOW⚡tests/core/test_checks.py80 def test_str_matches_native_false(self):CODE
LOW⚡tests/core/test_checks.py84 def test_str_contains_native_false(self):CODE
LOW⚡tests/core/test_checks.py88 def test_str_startswith_native_false(self):CODE
LOW⚡tests/core/test_checks.py92 def test_str_endswith_native_false(self):CODE
LOW⚡tests/core/test_checks.py96 def test_str_length_native_false(self):CODE
LOW⚡tests/core/test_checks.py116 def test_not_equal_to_signature(self):CODE
LOW⚡tests/core/test_checks.py123 def test_greater_than_signature(self):CODE
LOW⚡tests/core/test_checks.py130 def test_greater_than_or_equal_to_signature(self):CODE
LOW⚡tests/core/test_checks.py176 def test_str_matches_signature(self):CODE
LOW⚡tests/core/test_checks.py183 def test_str_contains_signature(self):CODE
LOW⚡tests/core/test_checks.py190 def test_str_startswith_signature(self):CODE
LOW⚡tests/core/test_checks.py197 def test_str_endswith_signature(self):CODE
LOW⚡tests/core/test_checks.py204 def test_str_length_signature(self):CODE
LOWtests/core/test_checks.py146 def test_less_than_or_equal_to_signature(self):CODE
LOWtests/core/test_checks.py215 def test_builtin_check_with_custom_name_validates(self):CODE
LOWtests/core/test_checks.py232 def test_builtin_check_with_custom_name_still_detects_failures(self):CODE
LOWtests/dask/test_series_index.py22def test_series_index_validation(index_schema, index, lazy, inplace):CODE
LOWtests/dask/test_series_index.py80def test_series_index_preserves_transformed_values(CODE
LOWtests/dask/test_series_index.py94def test_series_index_validation_in_later_partition():CODE
LOWtests/dask/test_series_index.py109def test_series_index_coercion():CODE
LOWtests/dask/test_dask_accessor.py30def test_dataframe_series_add_schema(CODE
LOWtests/geopandas/test_engine.py15def test_engine_geometry_simple():CODE
LOWtests/geopandas/test_engine.py25def test_engine_geometry_equality():CODE
LOWtests/geopandas/test_engine.py109def test_engine_geometry_check(pandera_dtype, data_container, invalid):CODE
LOWtests/geopandas/test_engine.py152def test_engine_geometry_coerce_crs(data_container):CODE
LOWtests/geopandas/test_engine.py243def test_engine_geometry_coerce_data(data, dims: int, invalid: bool):CODE
LOWtests/geopandas/test_geopandas.py99def test_schema_dtype_crs_without_coerce(gdf_args, invalid: bool):CODE
2153 more matches not shown…
Decorative Section Separators242 hits · 956 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/narwhals/test_pandas_e2e.py70# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py72# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py119# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py121# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py234# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py236# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py288# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_pandas_e2e.py290# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_pandas_e2e.py345# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_pandas_e2e.py347# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_components.py38# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_components.py40# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_components.py268# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_components.py270# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py17# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py83# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py115# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py117# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py164# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py195# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_components.py197# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/conftest.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/conftest.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/conftest.py103# ===========================================================================COMMENT
MEDIUMtests/narwhals/conftest.py105# ===========================================================================COMMENT
MEDIUM⚡tests/narwhals/test_container.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py48# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py79# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py81# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py99# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py101# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py123# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py125# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py141# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py143# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py154# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py156# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py175# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py177# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py240# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py242# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_narwhals_dtypes.py13# ── INFRA-02: NarwhalsData named tuple ───────────────────────────────────────COMMENT
MEDIUM⚡tests/narwhals/test_narwhals_dtypes.py42# ── INFRA-03: _to_native helper ───────────────────────────────────────────────COMMENT
MEDIUM⚡tests/narwhals/test_parity.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py38# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py40# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_parity.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/narwhals/test_parity.py59# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py82# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py84# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py118# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_parity.py157# ---------------------------------------------------------------------------COMMENT
182 more matches not shown…
Cross-File Repetition134 hits · 670 pts
SeverityFileLineSnippetContext
HIGHtests/pyspark/test_pyspark_model.py0test the ``fieldtype`` presence and nullability contract.STRING
HIGHtests/ibis/test_ibis_model.py0test the ``fieldtype`` presence and nullability contract.STRING
HIGHtests/polars/test_polars_model.py0test the ``fieldtype`` presence and nullability contract.STRING
HIGHtests/pandas/test_model.py0test the ``fieldtype`` presence and nullability contract.STRING
HIGHtests/pyarrow/test_pyarrow_model.py0test the ``fieldtype`` presence and nullability contract.STRING
HIGHtests/pyspark/test_pyspark_model.py0the typing-only field marker composes with runtime field metadata.STRING
HIGHtests/datafusion/test_datafusion_model.py0the typing-only field marker composes with runtime field metadata.STRING
HIGHtests/ibis/test_ibis_model.py0the typing-only field marker composes with runtime field metadata.STRING
HIGHtests/polars/test_polars_model.py0the typing-only field marker composes with runtime field metadata.STRING
HIGHtests/pandas/test_model.py0the typing-only field marker composes with runtime field metadata.STRING
HIGHtests/pyarrow/test_pyarrow_model.py0the typing-only field marker composes with runtime field metadata.STRING
HIGHtests/pyspark/test_pyspark_model.py0independent ``fieldtype`` metadata objects must remain distinct.STRING
HIGHtests/ibis/test_ibis_model.py0independent ``fieldtype`` metadata objects must remain distinct.STRING
HIGHtests/polars/test_polars_model.py0independent ``fieldtype`` metadata objects must remain distinct.STRING
HIGHtests/pandas/test_model.py0independent ``fieldtype`` metadata objects must remain distinct.STRING
HIGHtests/pyspark/test_pyspark_sql_io.py0``minimal=false`` retains package version in the payload.STRING
HIGHtests/io/test_polars_io.py0``minimal=false`` retains package version in the payload.STRING
HIGHtests/ibis/test_ibis_io.py0``minimal=false`` retains package version in the payload.STRING
HIGHtests/pyspark/test_pyspark_decorators.py0this module is to test the behaviour change based on defined config in panderaSTRING
HIGHtests/pyspark/test_pyspark_config.py0this module is to test the behaviour change based on defined config in panderaSTRING
HIGHtests/pandas/test_pandas_config.py0this module is to test the behaviour change based on defined config in panderaSTRING
HIGHtests/pyspark/test_schemas_on_pyspark_pandas.py0test errors from initializing a pandas.typing.dataframe with schema.STRING
HIGHtests/modin/test_schemas_on_modin.py0test errors from initializing a pandas.typing.dataframe with schema.STRING
HIGHtests/pandas/test_typing.py0test errors from initializing a pandas.typing.dataframe with schema.STRING
HIGHtests/ibis/test_ibis_model.py0``fieldtype[t, pa.field(...)]`` should propagate field metadata (description, title, unique, checks, etc.) to the resultSTRING
HIGHtests/polars/test_polars_model.py0``fieldtype[t, pa.field(...)]`` should propagate field metadata (description, title, unique, checks, etc.) to the resultSTRING
HIGHtests/pandas/test_model.py0``fieldtype[t, pa.field(...)]`` should propagate field metadata (description, title, unique, checks, etc.) to the resultSTRING
HIGHpandera/pandas.py0a flexible and expressive datafusion dataframe validation library.STRING
HIGHpandera/__init__.py0a flexible and expressive datafusion dataframe validation library.STRING
HIGHpandera/datafusion.py0a flexible and expressive datafusion dataframe validation library.STRING
HIGHpandera/import_utils.py0decorator to generate input error if dependency is missing.STRING
HIGHpandera/strategies/base_strategies.py0decorator to generate input error if dependency is missing.STRING
HIGHpandera/strategies/pandas_strategies.py0decorator to generate input error if dependency is missing.STRING
HIGHpandera/backends/pyspark/checks.py0implements querying behavior to produce subset of check object.STRING
HIGHpandera/backends/narwhals/checks.py0implements querying behavior to produce subset of check object.STRING
HIGHpandera/backends/ibis/checks.py0implements querying behavior to produce subset of check object.STRING
HIGHpandera/backends/polars/checks.py0implements querying behavior to produce subset of check object.STRING
HIGHpandera/backends/base/__init__.py0implements querying behavior to produce subset of check object.STRING
HIGHpandera/backends/pandas/checks.py0implements querying behavior to produce subset of check object.STRING
HIGHpandera/backends/pyspark/checks.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/narwhals/checks.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/ibis/checks.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/tensordict/checks.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/polars/checks.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/base/__init__.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/pandas/checks.py0postprocesses the result of applying the check function.STRING
HIGHpandera/backends/pyspark/container.py0preprocesses a check object before applying check functions.STRING
HIGHpandera/backends/tensordict/base.py0preprocesses a check object before applying check functions.STRING
HIGHpandera/backends/base/__init__.py0preprocesses a check object before applying check functions.STRING
HIGHpandera/backends/pandas/container.py0preprocesses a check object before applying check functions.STRING
HIGHpandera/backends/pyspark/container.py0parse and validate a check object, returning type-coerced and validated object.STRING
HIGHpandera/backends/ibis/container.py0parse and validate a check object, returning type-coerced and validated object.STRING
HIGHpandera/backends/base/__init__.py0parse and validate a check object, returning type-coerced and validated object.STRING
HIGHpandera/backends/pandas/container.py0parse and validate a check object, returning type-coerced and validated object.STRING
HIGHpandera/backends/pyspark/container.py0collects all schema components to use for validation.STRING
HIGHpandera/backends/narwhals/container.py0collects all schema components to use for validation.STRING
HIGHpandera/backends/ibis/container.py0collects all schema components to use for validation.STRING
HIGHpandera/backends/polars/container.py0collects all schema components to use for validation.STRING
HIGHpandera/backends/pandas/container.py0collects all schema components to use for validation.STRING
HIGHpandera/backends/pyspark/container.py0check that all columns in the schema are present in the dataframe.STRING
74 more matches not shown…
Unused Imports782 hits · 664 pts
SeverityFileLineSnippetContext
LOWasv_bench/benchmarks/dataframe_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWasv_bench/benchmarks/series_schema.py4CODE
LOWtests/core/test_checks.py4CODE
LOWtests/dask/test_dask_not_installed.py18CODE
LOWtests/geopandas/test_geopandas_io.py4CODE
LOWtests/geopandas/test_geopandas_io.py5CODE
LOWtests/geopandas/test_geopandas_io.py10CODE
LOWtests/geopandas/test_geopandas_io.py12CODE
LOWtests/geopandas/test_geopandas_io.py18CODE
LOWtests/strategies/test_no_filter_chain.py19CODE
LOWtests/strategies/test_synthesis.py8CODE
LOWtests/strategies/test_xarray_checks.py16CODE
LOWtests/strategies/test_constraints.py3CODE
LOWtests/strategies/test_legacy_strategy_warning.py26CODE
LOWtests/strategies/test_constraint_registration.py13CODE
LOWtests/strategies/test_strategies.py8CODE
LOWtests/strategies/test_compile_field_strategy.py3CODE
LOWtests/strategies/test_compile_field_strategy.py8CODE
LOWtests/strategies/test_compile_field_strategy.py9CODE
LOWtests/strategies/test_compile_field_strategy.py12CODE
LOWtests/pyspark/test_pyspark_container.py627CODE
LOWtests/pyspark/test_pyspark_model.py5CODE
LOWtests/pyspark/test_pyspark_model.py17CODE
LOWtests/pyspark/conftest.py13CODE
LOWtests/pyspark/test_pyspark_coerce_warning.py8CODE
LOWtests/io/test_serdes_minimal.py3CODE
LOWtests/cli/conftest.py3CODE
LOWtests/cli/test_cli_combos.py14CODE
LOWtests/cli/test_cli_narwhals.py3CODE
LOWtests/cli/test_cli.py3CODE
LOWtests/common/conftest.py12CODE
LOWtests/narwhals/test_components.py70CODE
LOWtests/narwhals/test_components.py171CODE
LOWtests/narwhals/test_container.py14CODE
LOWtests/narwhals/test_schema_driven_dtype_dispatch.py10CODE
LOWtests/narwhals/test_e2e.py30CODE
LOWtests/narwhals/test_e2e.py47CODE
LOWtests/narwhals/test_e2e.py62CODE
LOWtests/narwhals/test_e2e.py85CODE
LOWtests/narwhals/test_e2e.py86CODE
LOWtests/narwhals/test_check_signature_compat.py15CODE
LOWtests/narwhals/test_check_signature_compat.py32CODE
LOWtests/narwhals/test_error_handler.py4CODE
LOWtests/narwhals/test_concat_failure_cases.py13CODE
LOWtests/ibis/test_ibis_container.py4CODE
LOWtests/ibis/test_ibis_model.py3CODE
LOWtests/ibis/test_ibis_components.py5CODE
LOWtests/mypy/pandas_modules/pandas_dataframe.py8CODE
LOWtests/fastapi/models.py2CODE
LOWtests/tensordict/test_tensordict_io.py3CODE
LOWtests/tensordict/test_tensordict_io.py5CODE
LOWtests/tensordict/test_tensordict_io.py6CODE
722 more matches not shown…
Empty Error Handlers98 hits · 490 pts
SeverityFileLineSnippetContext
HIGHtests/dask/test_dask_not_installed.py23except KeyError:CODE
HIGHtests/dask/test_dask_not_installed.py41except KeyError:CODE
HIGHtests/strategies/test_constraint_registration.py133except AttributeError:CODE
HIGHtests/strategies/test_constraint_registration.py169except AttributeError:CODE
HIGHtests/pyspark/test_pyspark_coerce_warning.py70except Exception:CODE
HIGHtests/narwhals/conftest.py66except ImportError:CODE
HIGHtests/narwhals/test_container.py75except SchemaError:CODE
HIGHtests/polars/test_polars_coerce_warning.py47except Exception:CODE
HIGHtests/polars/test_polars_coerce_warning.py66except Exception:CODE
HIGHtests/pandas/test_schema_components.py1302except (errors.SchemaError, errors.SchemaErrors):CODE
HIGHtests/pandas/test_schema_components.py1336except (errors.SchemaError, errors.SchemaErrors):CODE
HIGHtests/pandas/test_schemas.py3486except errors.SchemaError:CODE
HIGHpandera/_patch_numpy2.py27except metadata.PackageNotFoundError:CODE
HIGHpandera/external_config.py26except (ImportError, ModuleNotFoundError):CODE
HIGHpandera/tensordict.py69except ImportError:CODE
HIGHpandera/schema_statistics/xarray.py255except (TypeError, ValueError):CODE
HIGHpandera/schema_statistics/xarray.py260except (TypeError, ValueError):CODE
HIGHpandera/schema_statistics/xarray.py317except (TypeError, ValueError):CODE
HIGHpandera/accessors/pyspark_sql_accessor.py161except ImportError:CODE
HIGHpandera/backends/register_checks.py63except ImportError:CODE
HIGHpandera/backends/register_checks.py71except ImportError:CODE
HIGHpandera/backends/register_checks.py77except ImportError:CODE
HIGHpandera/backends/register_checks.py85except ImportError:CODE
HIGHpandera/backends/pyspark/container.py283except SchemaError:CODE
HIGHpandera/backends/pyspark/container.py363except StopIteration:CODE
HIGHpandera/backends/narwhals/register.py55except ImportError:CODE
HIGHpandera/backends/narwhals/register.py81except ImportError:CODE
HIGHpandera/backends/narwhals/register.py117except ImportError: # pragma: no cover — pandas is co-installedCODE
HIGHpandera/backends/narwhals/register.py162except ImportError:CODE
HIGHpandera/backends/narwhals/register.py178except ImportError: # pragma: no cover — pandas is co-installedCODE
HIGHpandera/backends/narwhals/register.py185except ImportError:CODE
HIGHpandera/backends/narwhals/register.py192except ImportError:CODE
HIGHpandera/backends/narwhals/register.py199except ImportError:CODE
HIGHpandera/backends/narwhals/register.py212except ImportError:CODE
HIGHpandera/backends/narwhals/register.py219except ImportError:CODE
HIGHpandera/backends/narwhals/register.py226except ImportError:CODE
HIGHpandera/backends/narwhals/register.py233except ImportError: # pragma: no cover — pandas is co-installedCODE
HIGHpandera/backends/narwhals/register.py50except ImportError:CODE
HIGHpandera/backends/narwhals/register.py76except ImportError:CODE
HIGHpandera/backends/narwhals/register.py112except ImportError: # pragma: no cover — narwhals is co-installedCODE
HIGHpandera/backends/narwhals/register.py140except ImportError:CODE
HIGHpandera/backends/narwhals/register.py157except ImportError:CODE
HIGHpandera/backends/narwhals/container.py609except SchemaError:CODE
HIGHpandera/backends/narwhals/container.py1130except Exception:CODE
HIGHpandera/backends/narwhals/base.py515except TypeError:CODE
HIGHpandera/backends/ibis/container.py232except SchemaError:CODE
HIGHpandera/backends/ibis/container.py382except IbisError:CODE
HIGHpandera/backends/tensordict/register.py42except ImportError:CODE
HIGHpandera/backends/tensordict/checks.py164except ImportError:CODE
HIGHpandera/backends/tensordict/checks.py172except ImportError:CODE
HIGHpandera/backends/tensordict/base.py36except (KeyError, TypeError, ValueError):CODE
HIGHpandera/backends/tensordict/base.py110except (KeyError, TypeError):CODE
HIGHpandera/backends/polars/container.py316except SchemaError:CODE
HIGHpandera/backends/polars/container.py540except StopIteration:CODE
HIGHpandera/backends/xarray/register.py58except ImportError:CODE
HIGHpandera/backends/xarray/checks.py57except TypeError:CODE
HIGHpandera/backends/xarray/error_formatters.py37except (TypeError, ValueError):CODE
HIGHpandera/backends/xarray/builtin_checks.py90except TypeError:CODE
HIGHpandera/backends/pandas/container.py441except SchemaError:CODE
HIGHpandera/backends/pandas/components.py1062except Exception:CODE
38 more matches not shown…
Cross-Language Confusion57 hits · 322 pts
SeverityFileLineSnippetContext
HIGHtests/geopandas/test_from_to_format_conversions.py236 assert gdf.equals(out)CODE
HIGHtests/io/test_pandas_io.py2279 assert validation_df.equals(expected)CODE
HIGHtests/io/test_pandas_io.py1459 assert test_df.equals(validation)STRING
HIGH⚡tests/narwhals/test_container.py230 assert result.equals(data)CODE
HIGH⚡tests/ibis/test_ibis_check.py188 assert failure_cases.equals(expected_failure_cases)CODE
HIGHtests/ibis/test_ibis_check.py210 assert failure_cases.equals(expected_failure_cases)CODE
HIGHtests/ibis/test_ibis_check.py282 assert failure_cases.equals(expected_failure_cases)CODE
HIGH⚡tests/ibis/test_ibis_container.py121 assert validated_df.equals(t_basic.execute())CODE
HIGHtests/ibis/test_ibis_container.py133 assert coerced_df.equals(t_basic.execute())CODE
HIGHtests/ibis/test_ibis_container.py449 assert got.equals(expected)CODE
HIGHtests/ibis/test_ibis_container.py505 assert result.equals(t_for_regex_match.execute())CODE
HIGHtests/ibis/test_ibis_typing.py112 assert result.equals(t)CODE
HIGH⚡tests/ibis/test_ibis_components.py44 assert validated_data.equals(data.execute())CODE
HIGHtests/ibis/test_ibis_components.py83 assert validated_data.equals(data.execute())CODE
HIGHtests/polars/test_polars_check.py210 exc.failure_cases.equals(pl.DataFrame({"col": [-1, -2]}))CODE
HIGHtests/polars/test_polars_check.py229 exc.failure_cases.equals(pl.DataFrame({col: [-1, -4]}))CODE
HIGH⚡tests/polars/test_polars_container.py135 assert validated_df.equals(ldf_basic.collect())CODE
HIGHtests/polars/test_polars_container.py181 assert coerced_df.equals(ldf_basic.collect())CODE
HIGHtests/polars/test_polars_container.py207 assert coerced_df.equals(ldf_basic.cast(pl.Utf8).collect())CODE
HIGHtests/polars/test_polars_container.py554 assert validated_data.equals(expected_data.collect())CODE
HIGHtests/polars/test_polars_container.py608 assert result.equals(ldf_for_regex_match.collect())CODE
HIGHtests/polars/test_polars_container.py768 assert validated_data.equals(df_basic)CODE
HIGH⚡tests/polars/test_polars_components.py60 assert validated_data.equals(lazyframe.collect())CODE
HIGHtests/polars/test_polars_components.py100 assert validated_data.equals(data.collect())CODE
HIGHtests/polars/test_polars_typing.py116 assert result.equals(df)CODE
HIGHtests/pandas/test_model.py2035 assert pandera_validated_df.equals(Schema.validate(pandas_df))CODE
HIGHtests/pandas/test_model.py2120 assert pandera_validated_df.equals(Schema.validate(pandas_df))CODE
HIGHtests/pandas/test_model.py2147 assert pandera_validated_df.equals(Schema.validate(pandas_df))CODE
HIGHtests/pandas/test_pandas_engine.py746 (pd.Series([None, pd.NA, np.nan]), pyarrow.null),CODE
HIGHtests/pandas/test_pandas_engine.py790 (pd.Series(["a", "1"]), pyarrow.null),CODE
HIGHtests/pandas/test_from_to_format_conversions.py250 assert df.equals(out)CODE
HIGHtests/pandas/test_model_from_records_dicts.py29 assert pandera_validated_df.equals(Schema.validate(pandas_df))CODE
HIGHtests/pandas/test_schemas.py586 assert validated_frame_trailing.columns.equals(CODE
HIGHtests/pandas/test_schemas.py1765 assert err.data.equals(dataframe) # type: ignoreCODE
HIGHtests/pandas/test_schemas.py2215 assert err.data.equals(expectation["data"])CODE
HIGHtests/pandas/test_dtypes.py372 assert series.equals(coerced_series)CODE
HIGHtests/pandas/test_dtypes.py392 assert df.equals(coerced_df)CODE
HIGH⚡tests/pyarrow/test_pyarrow_typing.py41 assert result.equals(TABLE)CODE
HIGH⚡tests/pyarrow/test_pyarrow_typing.py57 assert result.equals(TABLE)CODE
HIGH⚡tests/pyarrow/test_pyarrow_typing.py68 assert result.equals(TABLE)CODE
HIGH⚡tests/pyarrow/test_pyarrow_typing.py75 assert result.equals(TABLE)CODE
HIGH⚡tests/pyarrow/test_pyarrow_typing.py82 assert result.equals(TABLE)CODE
HIGH⚡tests/pyarrow/test_pyarrow_typing.py89 assert result.equals(TABLE)CODE
HIGH⚡tests/pyarrow/test_pyarrow_container.py37 assert validated.equals(table)CODE
HIGHpandera/backends/narwhals/checks.py26 inputs produce ``False`` comparison outputs (never null), so the inputSTRING
HIGHpandera/backends/narwhals/container.py905 """True if the column schema declares a (non-null) default value."""STRING
HIGHpandera/backends/narwhals/base.py401 # surfaced as a failure case (``filter(~null)`` wouldCOMMENT
HIGH⚡pandera/backends/ibis/builtin_checks.py348 func = _.length() == exact_valueCODE
HIGH⚡pandera/backends/ibis/builtin_checks.py356 func = _.length() <= max_valueCODE
HIGH⚡pandera/backends/ibis/builtin_checks.py358 func = _.length() >= min_valueCODE
HIGH⚡pandera/backends/ibis/builtin_checks.py360 func = _.length().between(min_value, max_value)CODE
HIGHpandera/backends/pandas/checks.py214 if not check_obj.index.equals(check_output.index):CODE
HIGHpandera/backends/pandas/checks.py268 if check_obj.index.equals(check_output.index) and self.check.ignore_na:CODE
HIGHpandera/backends/pandas/checks.py289 if check_obj.index.equals(check_output.index) and self.check.ignore_na:CODE
HIGHpandera/engines/pandas_engine.py2142 pyarrow.null,CODE
HIGHpandera/engines/pyarrow_engine.py365 pyarrow.null,CODE
HIGHpandera/_cli/generate.py177 if not cleaned.equals(df[col]):CODE
Deep Nesting116 hits · 106 pts
SeverityFileLineSnippetContext
LOWnoxfile.py293CODE
LOWtests/geopandas/test_from_to_format_conversions.py200CODE
LOWtests/pyspark/test_pyspark_check.py189CODE
LOWtests/pyspark/test_pyspark_check.py231CODE
LOWtests/io/test_pandas_datetime_statistics.py34CODE
LOWtests/io/test_pandas_datetime_statistics.py90CODE
LOWtests/io/test_pandas_datetime_statistics.py290CODE
LOWtests/cli/conftest.py53CODE
LOWtests/cli/test_cli_combos.py81CODE
LOWtests/common/test_builtin_checks.py23CODE
LOWtests/mypy/test_pandas_static_type_checking.py208CODE
LOWtests/modin/test_schemas_on_modin.py242CODE
LOWtests/pandas/test_pandas_engine.py263CODE
LOWtests/pandas/test_from_to_format_conversions.py214CODE
LOWtests/pandas/test_schemas.py1781CODE
LOWtests/pandas/test_schemas.py2208CODE
LOWtests/pandas/test_dtypes.py235CODE
LOWdocs/source/conf.py309CODE
LOWpandera/decorators.py158CODE
LOWpandera/decorators.py464CODE
LOWpandera/decorators.py585CODE
LOWpandera/decorators.py226CODE
LOWpandera/decorators.py510CODE
LOWpandera/decorators.py839CODE
LOWpandera/decorators.py228CODE
LOWpandera/decorators.py512CODE
LOWpandera/schema_statistics/pandas.py222CODE
LOWpandera/schema_statistics/polars.py155CODE
LOWpandera/schema_statistics/common.py100CODE
LOWpandera/schema_statistics/xarray.py113CODE
LOWpandera/schema_statistics/xarray.py199CODE
LOWpandera/schema_statistics/xarray.py304CODE
LOWpandera/schema_statistics/pyspark.py15CODE
LOWpandera/strategies/xarray_strategies.py418CODE
LOWpandera/strategies/xarray_strategies.py514CODE
LOWpandera/strategies/xarray_strategies.py555CODE
LOWpandera/strategies/tensordict_strategies.py58CODE
LOWpandera/backends/pyspark/container.py420CODE
LOWpandera/backends/narwhals/checks.py313CODE
LOWpandera/backends/narwhals/checks.py387CODE
LOWpandera/backends/narwhals/container.py125CODE
LOWpandera/backends/narwhals/container.py999CODE
LOWpandera/backends/narwhals/container.py1047CODE
LOWpandera/backends/narwhals/container.py1110CODE
LOWpandera/backends/narwhals/base.py90CODE
LOWpandera/backends/narwhals/base.py352CODE
LOWpandera/backends/narwhals/base.py457CODE
LOWpandera/backends/ibis/checks.py59CODE
LOWpandera/backends/ibis/checks.py182CODE
LOWpandera/backends/ibis/container.py293CODE
LOWpandera/backends/ibis/container.py366CODE
LOWpandera/backends/ibis/components.py35CODE
LOWpandera/backends/ibis/components.py61CODE
LOWpandera/backends/ibis/base.py31CODE
LOWpandera/backends/tensordict/base.py211CODE
LOWpandera/backends/tensordict/base.py266CODE
LOWpandera/backends/polars/container.py332CODE
LOWpandera/backends/polars/container.py604CODE
LOWpandera/backends/xarray/data_tree.py113CODE
LOWpandera/backends/xarray/register.py24CODE
56 more matches not shown…
Self-Referential Comments47 hits · 106 pts
SeverityFileLineSnippetContext
MEDIUMtests/pyspark/test_pyspark_model.py631# Define a fixture for the SchemaCOMMENT
MEDIUMtests/pyspark/test_pyspark_decorators.py1"""This module is to test the behaviour change based on defined config in pandera"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py64 """This class is used to test the decorator to check datatype mismatches and unacceptable datatype"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py310 """This class is used to test the equal to check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py447 """This class is used to test the not equal to check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py584 """This class is used to test the greater than check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py715 """This class is used to test the greater than equal to check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py850 """This class is used to test the less than check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py1018 """This class is used to test the less than equal to check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py1192 """This class is used to test the isin check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py1335 """This class is used to test the notin check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py1470 """This class is used to test the string types checks"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py1692 """This class is used to test the value in range check"""STRING
MEDIUMtests/pyspark/test_pyspark_check.py1977 """This class is used to test the unique_values_eq check"""STRING
MEDIUMtests/pyspark/test_pyspark_dtypes.py87 """This class is to test all the numeric types"""STRING
MEDIUMtests/pyspark/test_pyspark_dtypes.py272 """This class is to test all the datetime types"""STRING
MEDIUMtests/pyspark/test_pyspark_dtypes.py379 """This class is to test all the complex types"""STRING
MEDIUMtests/pyspark/test_pyspark_config.py1"""This module is to test the behaviour change based on defined config in pandera"""STRING
MEDIUMtests/io/test_pandas_io.py2878 # Create a schema using the StrEnum in isin parameterCOMMENT
MEDIUMtests/ibis/test_ibis_typing.py421 # Define a test function that simulates the same logicCOMMENT
MEDIUMtests/ibis/test_ibis_typing.py449 # Define a test function that simulates the relevant logicCOMMENT
MEDIUMtests/ibis/test_ibis_typing.py475 # Create a mock fieldCOMMENT
MEDIUMtests/mypy/pandas_modules/pandas_dataframe.py46# Define a few dataframe objectsCOMMENT
MEDIUM⚡tests/polars/test_polars_pydantic.py139 # Create a custom pydantic model that uses our schema with optional columnCOMMENT
MEDIUM⚡tests/polars/test_polars_typing.py744 # Create a real io.StringIO buffer for testingCOMMENT
MEDIUM⚡tests/polars/test_polars_typing.py749 # Create a test function that simulates the core logic we want to testCOMMENT
MEDIUMtests/polars/test_polars_typing.py439 # Create a class to mock the specific format logicCOMMENT
MEDIUMtests/polars/test_polars_typing.py611 # Define a test function that simulates the same logicCOMMENT
MEDIUMtests/polars/test_polars_typing.py639 # Define a test function that simulates the relevant logicCOMMENT
MEDIUMtests/polars/test_polars_typing.py671 # Create a simulated write function for StringIOCOMMENT
MEDIUMtests/polars/test_polars_typing.py687 # Create a simulated write function for BytesIOCOMMENT
MEDIUMtests/polars/test_polars_typing.py781 # Create a mock fieldCOMMENT
MEDIUMtests/polars/test_polars_typing.py881 # Create a class that mimics the DataFrame class but with the v1 validatorsCOMMENT
MEDIUMtests/polars/test_polars_typing.py904 # Create a simple generator function like __get_validators__COMMENT
MEDIUMtests/polars/test_polars_typing.py947 # Create a mockable __orig_class__ attributeCOMMENT
MEDIUMtests/pandas/test_schema_components.py208 # Create a MultiIndex where 'c' appears at positions 2 and 4COMMENT
MEDIUMtests/pandas/test_schema_components.py252 # Create a MultiIndex with null valuesCOMMENT
MEDIUMtests/pandas/test_pandas_config.py1"""This module is to test the behaviour change based on defined config in pandera"""STRING
MEDIUMpandera/backends/pandas/components.py653 # Create a Series with unique values as data, similar to full materialization.COMMENT
MEDIUMpandera/backends/pandas/components.py661 # Create a Column schema from the Index schema, similar to full materializationCOMMENT
MEDIUMpandera/backends/pandas/components.py824 # Create a Series with level values as data, indexed by the full MultiIndexCOMMENT
MEDIUMpandera/backends/pandas/components.py925 # Create a DataFrame with duplicate index valuesCOMMENT
MEDIUMpandera/typing/ibis.py78 # Define a helper function to handle format-specific reading with error handlingCOMMENT
MEDIUMpandera/typing/polars.py87 # Define a helper function to handle format-specific reading with error handlingCOMMENT
MEDIUMpandera/api/pyspark/container.py187 # Create a base dataframe from where we access underlying Java classesCOMMENT
MEDIUMpandera/api/polars/model.py212 # Define a mapping from Polars data types to JSON schema typesCOMMENT
MEDIUMscripts/generate_pip_deps_from_conda.py107 f"# This file is auto-generated from {fname}, do not modify.\n"CODE
Excessive Try-Catch Wrapping85 hits · 88 pts
SeverityFileLineSnippetContext
LOWspecs/pluggable-data-synthesis.md388 except Exception: # broken third-party backendCODE
LOWspecs/pluggable-data-synthesis.md549 except Exception:CODE
LOWtests/pyspark/test_pyspark_container.py622 except Exception as e:CODE
LOWtests/pyspark/test_pyspark_container.py646 except Exception as e:CODE
LOWtests/pyspark/test_pyspark_container.py672 except Exception as e:CODE
LOWtests/pyspark/test_pyspark_container.py694 except Exception as e:CODE
LOWtests/pyspark/test_pyspark_narwhals_register.py127 except Exception:CODE
LOWtests/pyspark/test_pyspark_coerce_warning.py70 except Exception:CODE
LOWtests/fastapi/test_app.py47 except Exception: # pylint: disable=broad-exceptCODE
LOW⚡tests/polars/test_polars_coerce_warning.py47 except Exception:CODE
LOW⚡tests/polars/test_polars_coerce_warning.py66 except Exception:CODE
LOWtests/polars/test_polars_typing.py361 except Exception as exc:CODE
LOWtests/polars/test_polars_typing.py422 except Exception as exc:CODE
LOWtests/polars/test_polars_typing.py501 except Exception as exc:CODE
LOWtests/polars/test_polars_typing.py528 except Exception as exc:CODE
LOWtests/polars/test_polars_typing.py556 except Exception as exc:CODE
LOWdocs/source/data_synthesis_strategies.md188except Exception as e:CODE
LOWdocs/source/conf.py137 except Exception:CODE
MEDIUMdocs/source/pytorch_guide/error_reporting.md31 print(f"Error: {exc}")CODE
LOWpandera/backends/pyspark/container.py231 except Exception as err:CODE
LOWpandera/backends/pyspark/column.py239 except Exception as err:CODE
LOWpandera/backends/narwhals/checks.py521 except Exception as exc:CODE
LOWpandera/backends/narwhals/checks.py525 except Exception:CODE
LOWpandera/backends/narwhals/container.py370 except Exception as err:CODE
LOWpandera/backends/narwhals/container.py709 except Exception: # noqa: BLE001 — narwhals raises ValueErrorCODE
LOWpandera/backends/narwhals/container.py1130 except Exception:CODE
LOWpandera/backends/narwhals/components.py497 except Exception as err:CODE
LOWpandera/backends/ibis/container.py151 except Exception as err:CODE
LOWpandera/backends/ibis/components.py217 except Exception as err:CODE
LOWpandera/backends/tensordict/checks.py98 except Exception:CODE
LOWpandera/backends/tensordict/checks.py110 except Exception:CODE
LOWpandera/backends/tensordict/base.py132 except Exception as exc:CODE
LOWpandera/backends/tensordict/base.py247 except Exception:CODE
LOWpandera/backends/tensordict/base.py378 except Exception as exc:CODE
LOWpandera/backends/tensordict/base.py415 except Exception:CODE
LOWpandera/backends/polars/container.py206 except Exception as err:CODE
LOWpandera/backends/polars/components.py412 except Exception as err:CODE
LOWpandera/backends/xarray/base.py159 except Exception as err:CODE
LOWpandera/backends/pandas/container.py356 except Exception as err:CODE
MEDIUMpandera/backends/pandas/components.py76def validate_column(check_obj, column_name, return_check_obj=False):CODE
LOWpandera/backends/pandas/components.py274 except Exception as err:CODE
LOWpandera/backends/pandas/components.py1062 except Exception:CODE
LOWpandera/backends/pandas/array.py252 except Exception as exc:CODE
LOWpandera/backends/pandas/array.py261 except Exception:CODE
LOWpandera/backends/pandas/array.py426 except Exception:CODE
LOWpandera/backends/pandas/array.py451 except Exception:CODE
LOWpandera/backends/pandas/array.py507 except Exception as err:CODE
LOWpandera/backends/pandas/base.py244 except Exception:CODE
LOWpandera/io/common_io.py147 except Exception as e:CODE
LOWpandera/io/tensordict_io.py294 except Exception:CODE
LOWpandera/typing/pyarrow.py50 except Exception as exc:CODE
LOWpandera/typing/pyarrow.py94 except Exception as exc:CODE
LOWpandera/typing/ibis.py55 except Exception as exc:CODE
LOWpandera/typing/ibis.py94 except Exception as exc:CODE
LOWpandera/typing/pandas.py221 except Exception as exc:CODE
LOWpandera/typing/polars.py64 except Exception as exc:CODE
LOWpandera/typing/polars.py103 except Exception as exc:CODE
LOWpandera/typing/polars.py229 except Exception as exc: # pragma: no coverCODE
LOWpandera/typing/common.py116 except Exception:CODE
LOWpandera/typing/geopandas.py145 except Exception as exc:CODE
25 more matches not shown…
Modern Structural Boilerplate37 hits · 38 pts
SeverityFileLineSnippetContext
LOWpandera/pyarrow.py19__all__ = [CODE
LOWpandera/ibis.py19__all__ = [CODE
LOWpandera/pandas.py91__all__ = [CODE
LOWpandera/mypy.py203 def set_field_type_to_str(self) -> None:CODE
LOWpandera/polars.py21__all__ = [CODE
LOWpandera/geopandas.py79__all__ = [CODE
LOWpandera/validation_depth.py10logger = logging.getLogger(__name__)CODE
LOWpandera/_pandas_deprecated.py158__all__ = [CODE
LOWpandera/datafusion.py19__all__ = [CODE
LOWpandera/tensordict.py22__all__ = [CODE
LOWpandera/xarray.py35__all__ = [CODE
LOWpandera/pyspark.py59__all__ = [CODE
LOWpandera/strategies/pandas_constraints.py114__all__ = [CODE
LOWpandera/strategies/constraints.py361__all__ = [CODE
LOWpandera/accessors/pyspark_sql_accessor.py16logger = logging.getLogger(__name__)CODE
LOWpandera/backends/pyspark/decorators.py23logger = logging.getLogger(__name__)CODE
LOWpandera/typing/__init__.py129__all__ = [CODE
LOWpandera/typing/tensordict.py42__all__ = [CODE
LOWpandera/typing/xarray.py50__all__ = [CODE
LOWpandera/engines/pandas_engine.py42logger = logging.getLogger(__name__)CODE
LOWpandera/engines/polars_engine.py40logger = logging.getLogger(__name__)CODE
LOWpandera/_cli/generate.py15__all__ = ["GenerateDataFormat", "generate"]CODE
LOWpandera/_cli/__init__.py11__all__ = ["app", "run"]CODE
LOWpandera/_cli/validate.py22__all__ = ["validate"]CODE
LOWpandera/_cli/infer.py14__all__ = ["InferFormat", "ScriptType", "infer"]CODE
LOWpandera/api/geopandas/__init__.py6__all__ = ["GeoDataFrameModel", "GeoDataFrameSchema"]CODE
LOWpandera/api/datafusion/utils.py14__all__ = ["get_validation_depth", "resolve_dtype"]CODE
LOWpandera/api/synthesis/semantic.py67__all__ = ["SemanticType", "coerce_semantic"]CODE
LOW⚡pandera/api/synthesis/registry.py109__all__ = [CODE
LOWpandera/api/synthesis/protocol.py89__all__ = [CODE
LOWpandera/api/synthesis/__init__.py25__all__ = [CODE
LOWpandera/api/ibis/components.py15logger = logging.getLogger(__name__)CODE
LOWpandera/api/tensordict/__init__.py12__all__ = [CODE
LOWpandera/api/polars/components.py18logger = logging.getLogger(__name__)CODE
LOWpandera/api/xarray/__init__.py27__all__ = [CODE
LOWpandera/api/xarray/model.py735__all__ = [CODE
LOWpandera/api/pyarrow/components.py18logger = logging.getLogger(__name__)CODE
AI Structural Patterns33 hits · 32 pts
SeverityFileLineSnippetContext
LOWpandera/errors.py104CODE
LOWpandera/decorators.py572CODE
LOWpandera/decorators.py585CODE
LOWpandera/strategies/xarray_strategies.py349CODE
LOWpandera/strategies/pandas_strategies.py1552CODE
LOWpandera/io/tensordict_io.py70CODE
LOWpandera/api/checks.py21CODE
LOWpandera/api/hypotheses.py20CODE
LOWpandera/api/dataframe/container.py46CODE
LOWpandera/api/dataframe/model_components.py128CODE
LOWpandera/api/dataframe/components.py26CODE
LOWpandera/api/pyspark/model_components.py18CODE
LOWpandera/api/pyspark/column_schema.py22CODE
LOWpandera/api/pyspark/components.py23CODE
LOWpandera/api/datafusion/components.py26CODE
LOWpandera/api/ibis/components.py21CODE
LOWpandera/api/tensordict/container.py26CODE
LOWpandera/api/tensordict/model_components.py86CODE
LOWpandera/api/tensordict/model_components.py29CODE
LOWpandera/api/polars/components.py24CODE
LOWpandera/api/xarray/container.py49CODE
LOWpandera/api/xarray/container.py283CODE
LOWpandera/api/xarray/container.py399CODE
LOWpandera/api/xarray/model_components.py95CODE
LOWpandera/api/xarray/model_components.py19CODE
LOWpandera/api/xarray/components.py50CODE
LOWpandera/api/xarray/components.py153CODE
LOWpandera/api/base/model_components.py57CODE
LOWpandera/api/base/schema.py27CODE
LOWpandera/api/pandas/container.py27CODE
LOWpandera/api/pandas/components.py23CODE
LOWpandera/api/pandas/array.py113CODE
LOWpandera/api/pyarrow/components.py24CODE
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHpandera/typing/ibis.py80Helper to handle format-specific reading with standardized error handling. Args: STRING
HIGHpandera/typing/polars.py89Helper to handle format-specific reading with standardized error handling. Args: STRING
HIGHpandera/typing/polars.py206 Helper to write DataFrame to a buffer with standardized error handling. Args: STRING
HIGHpandera/api/dataframe/container.py592 Create copy of a :class:`~pandera.api.dataframe.container.DataFrameSchema` with updated column propertiSTRING
HIGHpandera/api/dataframe/container.py841 Create copy of a :class:`~pandera.api.dataframe.container.DataFrameSchema` with updated index propertieSTRING
Redundant / Tautological Comments13 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/pyspark/test_pyspark_container.py635 # Read the file using automatic schema inference, getting a schema differentCOMMENT
LOWtests/pandas/test_schemas.py1606 # Check if new column names are indeed present in the new schemaCOMMENT
LOWtests/pandas/test_schemas.py1610 # Check if original schema didn't change in the processCOMMENT
LOWpandera/decorators.py760 # Check if the arg value matches any of the childrenCOMMENT
LOWpandera/strategies/pandas_strategies.py418 # Check if it's a STRING type (any storage)COMMENT
LOWpandera/strategies/pandas_strategies.py421 # Check if it's NpStringCOMMENT
LOWpandera/backends/pyspark/container.py512 # Check if values belong to the dataframe columnsCOMMENT
LOWpandera/backends/pyspark/decorators.py60 # Check if this is a PySpark SQL DataFrame or pyspark.pandas DataFrameCOMMENT
LOWpandera/backends/pyspark/decorators.py137 # Check if decorated function has a dataframe object as an positional argCOMMENT
LOW⚡pandera/backends/pandas/components.py627 # Check if the check result is determined by unique valuesCOMMENT
LOWpandera/backends/pandas/components.py559 # Check if we can optimize validation for this level. We skip optimizationCOMMENT
LOWpandera/api/tensordict/container.py94 # Check if it's a valid TensorDict/tensorclass objectCOMMENT
LOWpandera/api/tensordict/model.py290 # Check if it's a TensorDictFieldInfo instanceCOMMENT
Over-Commented Block11 hits · 11 pts
SeverityFileLineSnippetContext
LOWspecs/optimized-strategies.md461 pandera_dtype, st.sampled_from(sorted(allowed)),COMMENT
LOWpandera/backends/pyspark/column.py221 self.run_check(COMMENT
LOWpandera/backends/narwhals/checks.py341COMMENT
LOWpandera/backends/narwhals/checks.py421 # Handle polars native return types from native=True checks.COMMENT
LOWpandera/backends/narwhals/container.py101 ``pl.LazyFrame`` and ``pl.DataFrame`` share some API surface.COMMENT
LOWpandera/backends/narwhals/components.py361 for column, nw_dtype in zip(schema_obj.names(), schema_obj.dtypes()):COMMENT
LOWpandera/backends/narwhals/base.py181 # built by the pyarrow builders above, so there are no pl_itemsCOMMENT
LOWpandera/api/dataframe/model_config.py61 #: data format before validation. This option only applies toCOMMENT
LOWpandera/api/pyspark/model_config.py41 #: ``pa.typing.DataFrame[Schema](data)``. If None, assumes a data structureCOMMENT
LOWscripts/ci/derive_test_flags.sh1#!/usr/bin/env bashCOMMENT
LOW.github/filters.yaml1# Named path filters consumed by dorny/paths-filter in the `changes` job ofCOMMENT
AI Slop Vocabulary2 hits · 4 pts
SeverityFileLineSnippetContext
LOWpandera/backends/pyspark/container.py271 # NOTE: remove this since we can just useCOMMENT
MEDIUMpandera/api/polars/model.py213 # This is more robust than string parsingCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…cs/source/pytorch_guide/tensordict_schema_inference.md81# Step 1: Infer from sample data (batch_size=32)COMMENT
LOW…cs/source/pytorch_guide/tensordict_schema_inference.md88# Step 2: Refine the inferred schema for your needsCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWscripts/ci/derive_test_flags.sh5# Usage:COMMENT