AI Slop Code RIsk Monitor

unionai-oss/pandera

A light-weight, flexible, and expressive statistical data testing library

36.4 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for unionai-oss/pandera, a Python project with 4,478 GitHub stars. SynthScan examined 146,036 lines of code across 566 source files, recording 3602 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 36.4 (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.4
Adjusted Signal
36.4
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.5K
Stars
Python
Language
146.0K
Lines of Code
566
Files
3.6K
Pattern Hits
2026-10-12
Scan Date
0.51
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 52.6/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 27.6/100 · MEDIUM

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

Agent Over-Engineering Ratio 75.5/100 · CRITICAL

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

PR Review Velocity Impact 85.4/100 · CRITICAL

Which changes need focused human review? 3602 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 287MEDIUM 293LOW 3022

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 3602 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 Identifiers1997 hits · 1875 pts
SeverityFileLineSnippetContext
LOWnoxfile.py91def _generate_pip_deps_from_conda(CODE
LOWspecs/pluggable-data-synthesis.md319def register_synthesis_backend(name: str, backend: SynthesisBackend) -> None:CODE
LOWspecs/pluggable-data-synthesis.md370def _load_entry_point_backends() -> None: # registry.py (internal)CODE
LOWspecs/pluggable-data-synthesis.md742def 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_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
LOWtests/geopandas/test_geopandas.py145def test_schema_dtype_crs_with_coerce(gdf_args, invalid: bool):CODE
LOWtests/geopandas/test_geopandas.py167def test_schema_parametrized_crs():CODE
LOWtests/geopandas/test_geopandas.py185def test_schema_multiple_geometry_same_crs():CODE
LOWtests/geopandas/test_geopandas.py208def test_schema_multiple_geometry_different_crs():CODE
1937 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.py198# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/narwhals/test_container.py200# ---------------------------------------------------------------------------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 Repetition130 hits · 650 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/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/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
HIGHpandera/backends/narwhals/container.py0check that all columns in the schema are present in the dataframe.STRING
HIGHpandera/backends/polars/container.py0check that all columns in the schema are present in the dataframe.STRING
HIGHpandera/backends/pandas/container.py0check that all columns in the schema are present in the dataframe.STRING
HIGHpandera/backends/pyspark/builtin_checks.py0ensure all values of a series are within an interval. both endpoints must be a type comparable to the dtype of the :clasSTRING
70 more matches not shown…
Unused Imports751 hits · 634 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_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
LOWtests/tensordict/test_tensordict_io.py7CODE
691 more matches not shown…
Empty Error Handlers97 hits · 485 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.py3338except errors.SchemaError:CODE
HIGHpandera/external_config.py22except (ImportError, ModuleNotFoundError):CODE
HIGHpandera/tensordict.py69except ImportError:CODE
HIGHpandera/schema_statistics/xarray.py254except (TypeError, ValueError):CODE
HIGHpandera/schema_statistics/xarray.py259except (TypeError, ValueError):CODE
HIGHpandera/schema_statistics/xarray.py316except (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.py282except SchemaError:CODE
HIGHpandera/backends/pyspark/container.py362except 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.py605except SchemaError:CODE
HIGHpandera/backends/narwhals/container.py1116except Exception:CODE
HIGHpandera/backends/narwhals/base.py494except 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.py79except ImportError:CODE
HIGHpandera/backends/tensordict/checks.py87except ImportError:CODE
HIGHpandera/backends/tensordict/checks.py103except ImportError:CODE
HIGHpandera/backends/tensordict/base.py36except (KeyError, TypeError, ValueError):CODE
HIGHpandera/backends/tensordict/base.py110except (KeyError, TypeError):CODE
HIGHpandera/backends/tensordict/base.py228except ImportError:CODE
HIGHpandera/backends/polars/container.py307except SchemaError:CODE
HIGHpandera/backends/polars/container.py479except 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.py430except SchemaError:CODE
37 more matches not shown…
Cross-Language Confusion55 hits · 308 pts
SeverityFileLineSnippetContext
HIGHtests/geopandas/test_from_to_format_conversions.py236 assert gdf.equals(out)CODE
HIGHtests/io/test_pandas_io.py2067 assert validation_df.equals(expected)CODE
HIGHtests/io/test_pandas_io.py1269 assert test_df.equals(validation)STRING
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.py209 exc.failure_cases.equals(pl.DataFrame({"col": [-1, -2]}))CODE
HIGHtests/polars/test_polars_check.py228 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.py547 assert validated_frame_trailing.columns.equals(CODE
HIGHtests/pandas/test_schemas.py1632 assert err.data.equals(dataframe) # type: ignoreCODE
HIGHtests/pandas/test_schemas.py2082 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.py891 """True if the column schema declares a (non-null) default value."""STRING
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.py2139 pyarrow.null,CODE
HIGHpandera/engines/pyarrow_engine.py365 pyarrow.null,CODE
HIGHpandera/_cli/generate.py177 if not cleaned.equals(df[col]):CODE
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.py2569 # 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.py214 # 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
Deep Nesting112 hits · 102 pts
SeverityFileLineSnippetContext
LOWnoxfile.py292CODE
LOWtests/geopandas/test_from_to_format_conversions.py200CODE
LOWtests/pyspark/test_pyspark_check.py189CODE
LOWtests/pyspark/test_pyspark_check.py231CODE
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.py1648CODE
LOWtests/pandas/test_schemas.py2075CODE
LOWtests/pandas/test_dtypes.py235CODE
LOWdocs/source/conf.py310CODE
LOWpandera/decorators.py158CODE
LOWpandera/decorators.py462CODE
LOWpandera/decorators.py583CODE
LOWpandera/decorators.py226CODE
LOWpandera/decorators.py508CODE
LOWpandera/decorators.py837CODE
LOWpandera/decorators.py228CODE
LOWpandera/decorators.py510CODE
LOWpandera/schema_statistics/pandas.py201CODE
LOWpandera/schema_statistics/polars.py154CODE
LOWpandera/schema_statistics/common.py100CODE
LOWpandera/schema_statistics/xarray.py113CODE
LOWpandera/schema_statistics/xarray.py199CODE
LOWpandera/schema_statistics/xarray.py303CODE
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.py419CODE
LOWpandera/backends/narwhals/checks.py297CODE
LOWpandera/backends/narwhals/checks.py371CODE
LOWpandera/backends/narwhals/container.py124CODE
LOWpandera/backends/narwhals/container.py985CODE
LOWpandera/backends/narwhals/container.py1033CODE
LOWpandera/backends/narwhals/container.py1096CODE
LOWpandera/backends/narwhals/base.py89CODE
LOWpandera/backends/narwhals/base.py343CODE
LOWpandera/backends/narwhals/base.py441CODE
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.py58CODE
LOWpandera/backends/ibis/base.py31CODE
LOWpandera/backends/tensordict/base.py211CODE
LOWpandera/backends/tensordict/base.py245CODE
LOWpandera/backends/polars/container.py543CODE
LOWpandera/backends/xarray/data_tree.py113CODE
LOWpandera/backends/xarray/register.py24CODE
LOWpandera/backends/xarray/container.py187CODE
LOWpandera/backends/xarray/container.py503CODE
LOWpandera/backends/xarray/container.py1009CODE
LOWpandera/backends/xarray/container.py1303CODE
52 more matches not shown…
Excessive Try-Catch Wrapping76 hits · 78 pts
SeverityFileLineSnippetContext
LOWspecs/pluggable-data-synthesis.md378 except Exception: # broken third-party backendCODE
LOWspecs/pluggable-data-synthesis.md534 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.py230 except Exception as err:CODE
LOWpandera/backends/pyspark/column.py239 except Exception as err:CODE
LOWpandera/backends/narwhals/container.py366 except Exception as err:CODE
LOWpandera/backends/narwhals/container.py705 except Exception: # noqa: BLE001 — narwhals raises ValueErrorCODE
LOWpandera/backends/narwhals/container.py1116 except Exception:CODE
LOWpandera/backends/narwhals/components.py471 except Exception as err:CODE
LOWpandera/backends/ibis/container.py151 except Exception as err:CODE
LOWpandera/backends/ibis/components.py214 except Exception as err:CODE
LOWpandera/backends/tensordict/checks.py49 except Exception as exc:CODE
LOWpandera/backends/tensordict/base.py132 except Exception as exc:CODE
LOWpandera/backends/tensordict/base.py363 except Exception as exc:CODE
LOWpandera/backends/polars/container.py197 except Exception as err:CODE
LOWpandera/backends/polars/components.py409 except Exception as err:CODE
LOWpandera/backends/xarray/base.py159 except Exception as err:CODE
LOWpandera/backends/pandas/container.py345 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.py236 except Exception:CODE
LOWpandera/io/common_io.py126 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
LOWpandera/engines/pandas_engine.py180 except Exception as exc:CODE
LOWpandera/engines/tensordict_engine.py60 except Exception as exc:CODE
LOWpandera/engines/numpy_engine.py107 except Exception as exc:CODE
LOWpandera/engines/utils.py34 except Exception:CODE
MEDIUMpandera/engines/utils.py30def _coercible(x):CODE
16 more matches not shown…
AI Structural Patterns32 hits · 32 pts
SeverityFileLineSnippetContext
LOWpandera/errors.py94CODE
LOWpandera/decorators.py570CODE
LOWpandera/decorators.py583CODE
LOWpandera/strategies/xarray_strategies.py349CODE
LOWpandera/strategies/pandas_strategies.py1550CODE
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/ibis/components.py21CODE
LOWpandera/api/tensordict/container.py23CODE
LOWpandera/api/tensordict/model_components.py75CODE
LOWpandera/api/tensordict/model_components.py18CODE
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
Modern Structural Boilerplate30 hits · 30 pts
SeverityFileLineSnippetContext
LOWpandera/pyarrow.py19__all__ = [CODE
LOWpandera/ibis.py19__all__ = [CODE
LOWpandera/pandas.py95__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.py162__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__.py122__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/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.py733__all__ = [CODE
LOWpandera/api/pyarrow/components.py18logger = logging.getLogger(__name__)CODE
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.py591 Create copy of a :class:`~pandera.api.dataframe.container.DataFrameSchema` with updated column propertiSTRING
HIGHpandera/api/dataframe/container.py840 Create copy of a :class:`~pandera.api.dataframe.container.DataFrameSchema` with updated index propertieSTRING
Redundant / Tautological Comments14 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/pyspark/test_pyspark_container.py635 # Read the file using automatic schema inference, getting a schema differentCOMMENT
LOWtests/pandas/test_schemas.py1473 # Check if new column names are indeed present in the new schemaCOMMENT
LOWtests/pandas/test_schemas.py1477 # Check if original schema didn't change in the processCOMMENT
LOWpandera/decorators.py758 # 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.py511 # 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
LOWpandera/backends/tensordict/base.py214 # Check if key exists - use different methods for TensorDict vs tensorclassCOMMENT
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.py90 # Check if it's a valid TensorDict/tensorclass objectCOMMENT
LOWpandera/api/tensordict/model.py302 # Check if it's a TensorDictFieldInfo instanceCOMMENT
Over-Commented Block9 hits · 9 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.py321 "(Ibis, DuckDB, PySpark) because row-level Python functions "COMMENT
LOWpandera/backends/narwhals/container.py101 """COMMENT
LOWpandera/backends/narwhals/container.py141COMMENT
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.py270 # NOTE: remove this since we can just useCOMMENT
MEDIUMpandera/api/polars/model.py215 # 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