Repository Analysis

pandas-dev/pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more

24.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pandas-dev/pandas, a Python project with 49,184 GitHub stars. SynthScan v2.0 examined 714,370 lines of code across 1753 source files, recording 14776 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 24.6 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

24.6
Adjusted Score
24.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
49.2K
Stars
Python
Language
714.4K
Lines of Code
1.8K
Files
14.8K
Pattern Hits
2026-07-14
Scan Date
0.35
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 621MEDIUM 656LOW 13498

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 14776 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers11090 hits · 10019 pts
SeverityFileLineSnippetContext
LOWweb/tests/test_pandas_web.py83def test_web_preprocessor_creates_releases(mock_response, context) -> None:CODE
LOWasv_bench/benchmarks/arithmetic.py54 def time_frame_op_with_scalar(self, dtype, scalar, op):CODE
LOWasv_bench/benchmarks/arithmetic.py68 def time_frame_op_with_fill_value_no_nas(self):CODE
LOWasv_bench/benchmarks/arithmetic.py71 def time_series_op_with_fill_value_no_nas(self):CODE
LOWasv_bench/benchmarks/arithmetic.py228 def time_frame_float_div_by_zero(self):CODE
LOWasv_bench/benchmarks/arithmetic.py231 def time_frame_float_floor_by_zero(self):CODE
LOWasv_bench/benchmarks/arithmetic.py234 def time_frame_int_div_by_zero(self):CODE
LOWasv_bench/benchmarks/arithmetic.py270 def time_series_timestamp_compare(self, tz):CODE
LOWasv_bench/benchmarks/arithmetic.py273 def time_series_timestamp_different_reso_compare(self, tz):CODE
LOWasv_bench/benchmarks/arithmetic.py276 def time_timestamp_series_compare(self, tz):CODE
LOWasv_bench/benchmarks/arithmetic.py282 def time_timestamp_ops_diff_with_shift(self, tz):CODE
LOWasv_bench/benchmarks/arithmetic.py384 def time_timedelta_plus_datetime(self, df):CODE
LOWasv_bench/benchmarks/arithmetic.py475 def time_binary_op_multiindex(self, func):CODE
LOWasv_bench/benchmarks/frame_ctor.py53 def time_nested_dict_index_columns(self):CODE
LOWasv_bench/benchmarks/frame_ctor.py60 def time_dict_of_categoricals(self):CODE
LOWasv_bench/benchmarks/frame_ctor.py84 def time_dict_with_timestamp_offsets(self, offset):CODE
LOWasv_bench/benchmarks/frame_ctor.py100 def time_frame_from_records_generator(self, nrows):CODE
LOWasv_bench/benchmarks/frame_ctor.py176 def time_frame_from_arrays_float(self):CODE
LOWasv_bench/benchmarks/frame_ctor.py184 def time_frame_from_arrays_int(self):CODE
LOWasv_bench/benchmarks/frame_ctor.py192 def time_frame_from_arrays_sparse(self):CODE
LOWasv_bench/benchmarks/gil.py196 def time_datetime_field_daysinmonth(self):CODE
LOWasv_bench/benchmarks/gil.py203 def time_datetime_field_normalize(self):CODE
LOWasv_bench/benchmarks/ctors.py100 def time_index_from_array_string(self):CODE
LOWasv_bench/benchmarks/ctors.py103 def time_index_from_array_floats(self):CODE
LOWasv_bench/benchmarks/ctors.py109 def time_dtindex_from_index_with_series(self):CODE
LOWasv_bench/benchmarks/ctors.py118 def time_multiindex_from_iterables(self):CODE
LOWasv_bench/benchmarks/ctors.py132 def time_from_list_of_timestamps(self):CODE
LOWasv_bench/benchmarks/ctors.py138 def time_from_list_of_datetimes(self):CODE
LOWasv_bench/benchmarks/join_merge.py154 def time_join_dataframe_index_multi(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py157 def time_join_dataframe_index_single_key_bigger(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py160 def time_join_dataframe_index_single_key_small(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py163 def time_join_dataframe_index_shuffle_key_bigger_sort(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py166 def time_join_dataframes_cross(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py192 def time_join_multiindex_subset(self):CODE
LOWasv_bench/benchmarks/join_merge.py202 def time_inner_join_left_empty(self):CODE
LOWasv_bench/benchmarks/join_merge.py205 def time_inner_join_right_empty(self):CODE
LOWasv_bench/benchmarks/join_merge.py263 def time_merge_dataframe_integer_key(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py266 def time_merge_dataframe_empty_right(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py269 def time_merge_dataframe_empty_left(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py272 def time_merge_dataframes_cross(self, sort):CODE
LOWasv_bench/benchmarks/join_merge.py618 def time_left_join_sorted_baseline(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py621 def time_left_join_unsorted_left(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py624 def time_right_join_unsorted_right(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py627 def time_left_join_zero_match_unsorted_left(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py180 def time_left_outer_join_index(self):CODE
LOWasv_bench/benchmarks/join_merge.py222 def time_join_non_unique_equal(self):CODE
LOWasv_bench/benchmarks/join_merge.py566 def time_merge_sorted_multiindex(self, dtypes, how):CODE
LOWasv_bench/benchmarks/join_merge.py586 def time_series_align_left_monotonic(self):CODE
LOWasv_bench/benchmarks/index_object.py60 def time_datetime_difference_disjoint(self):CODE
LOWasv_bench/benchmarks/index_object.py69 def time_union_with_duplicates(self):CODE
LOWasv_bench/benchmarks/index_object.py119 def time_non_object_equals_multiindex(self):CODE
LOWasv_bench/benchmarks/index_object.py144 def time_append_range_list_same(self):CODE
LOWasv_bench/benchmarks/index_object.py198 def time_get_loc_non_unique_sorted(self, dtype):CODE
LOWasv_bench/benchmarks/index_object.py238 def time_intersection_one_duplicate(self, N):CODE
LOWasv_bench/benchmarks/index_object.py241 def time_intersection_both_duplicate(self, N):CODE
LOWasv_bench/benchmarks/plotting.py158 def time_get_plot_backend_fallback(self):CODE
LOWasv_bench/benchmarks/reshape.py43 def time_reshape_pivot_time_series(self):CODE
LOWasv_bench/benchmarks/reshape.py219 def time_pivot_table_categorical(self):CODE
LOWasv_bench/benchmarks/reshape.py224 def time_pivot_table_categorical_observed(self):CODE
LOWasv_bench/benchmarks/reshape.py234 def time_pivot_table_margins_only_column(self):CODE
11030 more matches not shown…
Cross-Language Confusion511 hits · 3044 pts
SeverityFileLineSnippetContext
HIGHasv_bench/benchmarks/index_object.py120 self.idx_non_object.equals(self.mi_large_slow)CODE
HIGHasv_bench/benchmarks/frame_methods.py570 self.float_df.equals(self.float_df)CODE
HIGHasv_bench/benchmarks/frame_methods.py573 self.float_df.equals(self.float_df_nan)CODE
HIGHasv_bench/benchmarks/frame_methods.py576 self.nonunique_cols.equals(self.nonunique_cols)CODE
HIGHasv_bench/benchmarks/frame_methods.py579 self.nonunique_cols.equals(self.nonunique_cols_nan)CODE
HIGHasv_bench/benchmarks/frame_methods.py582 self.object_df.equals(self.object_df)CODE
HIGHasv_bench/benchmarks/frame_methods.py585 self.object_df.equals(self.object_df_nan)CODE
HIGHasv_bench/benchmarks/multiindex_object.py236 self.mi.equals(self.mi_deepcopy)CODE
HIGHasv_bench/benchmarks/multiindex_object.py239 self.mi.equals(self.idx_non_object)CODE
HIGHpandas/core/algorithms.py978 and idx.equals(values)CODE
HIGHpandas/core/resample.py2188 and obj.index.equals(res_index)CODE
HIGHpandas/core/generic.py1452 return self._mgr.equals(other._mgr)CODE
HIGHpandas/core/generic.py10048 if (axis is None or axis == 0) and not self.index.equals(other.index):CODE
HIGHpandas/core/generic.py10056 and not self.columns.equals(other.columns)CODE
HIGHpandas/core/generic.py10098 if self.index.equals(other.index):CODE
HIGHpandas/core/generic.py10120 if not join_index.equals(other.index):CODE
HIGHpandas/core/generic.py12614 If all elements in Series are NA/null, returns None.CODE
HIGHpandas/core/generic.py12648 If all elements in DataFrame are NA/null, returns None.CODE
HIGHpandas/core/generic.py12701 If all elements in Series are NA/null, returns None.CODE
HIGHpandas/core/generic.py12735 If all elements in DataFrame are NA/null, returns None.CODE
HIGHpandas/core/generic.py1433 >>> df.equals(different_data_type)STRING
HIGHpandas/core/generic.py1440 >>> df_nan1.equals(df_nan2)STRING
HIGHpandas/core/generic.py1446 >>> df_nan1.equals(df_nan3)STRING
HIGHpandas/core/generic.py1411 >>> df.equals(exactly_equal)STRING
HIGHpandas/core/generic.py1422 >>> df.equals(different_column_type)STRING
HIGHpandas/core/series.py454 elif not data.index.equals(index) or copy:CODE
HIGHpandas/core/series.py3766 if self.index.equals(other.index):CODE
HIGHpandas/core/series.py7201 if not left.index.equals(right.index):CODE
HIGHpandas/core/series.py7239 if not self.index.equals(other.index):CODE
HIGHpandas/core/frame.py4336 if isinstance(key, Series) and not key.index.equals(self.index):STRING
HIGHpandas/core/frame.py4747 if len(cols_droplevel) and not cols_droplevel.equals(value.columns):STRING
HIGHpandas/core/frame.py4761 if not cols_droplevel.equals(cols):STRING
HIGHpandas/core/frame.py9436 assert self.index.equals(right.index)STRING
HIGHpandas/core/frame.py9437 assert self.columns.equals(right.columns)STRING
HIGHpandas/core/frame.py9450 assert right.index.equals(self.columns)STRING
HIGHpandas/core/frame.py9462 assert right.index.equals(self.index)STRING
HIGHpandas/core/frame.py9566 and not self.columns.equals(right.columns)STRING
HIGHpandas/core/frame.py19448 if value.index.equals(index) or not len(index):STRING
HIGHpandas/core/indexing.py3074 if not len(new_ix) or ser.index.equals(new_ix):CODE
HIGHpandas/core/indexing.py3083 if ser.index.equals(ax) or not len(ax):CODE
HIGHpandas/core/indexing.py3093 if ser.index.equals(ax):CODE
HIGHpandas/core/indexing.py3101 if ser.index.equals(ax):CODE
HIGHpandas/core/indexing.py2728 elif not unique_cols and value.columns.equals(self.obj.columns):CODE
HIGHpandas/core/indexing.py3129 if df.index.equals(idx) and df.columns.equals(cols):CODE
HIGHpandas/core/indexing.py3137 if df.index.equals(ax):CODE
HIGHpandas/core/indexing.py3480 if isinstance(key, ABCSeries) and not key.index.equals(index):CODE
HIGHpandas/core/apply.py375 if not isinstance(result, (ABCSeries, ABCDataFrame)) or not result.index.equals(CODE
HIGHpandas/core/reshape/concat.py491 if not no_sort_result_index.equals(orig):CODE
HIGHpandas/core/reshape/concat.py653 if not new_labels.equals(obj_labels):CODE
HIGHpandas/core/reshape/concat.py920 if isinstance(hlevel, Index) and hlevel.equals(level):CODE
HIGHpandas/core/reshape/reshape.py934 if not result.columns.equals(desired_columns):CODE
HIGHpandas/core/reshape/reshape.py1131 if not result.columns.equals(desired_columns):CODE
HIGHpandas/core/strings/accessor.py646 if any(not data.index.equals(x.index) for x in others):CODE
HIGHpandas/core/interchange/dataframe_protocol.py267 - Data types not included: complex, Arrow-style null, binary, decimal,STRING
HIGHpandas/core/interchange/column.py226 null, value = _NULL_DESCRIPTION[kind]CODE
HIGHpandas/core/interchange/column.py230 return null, valueCODE
HIGHpandas/core/interchange/column.py386 null, invalid = self.describe_nullCODE
HIGHpandas/core/interchange/column.py430 msg = f"{_NO_VALIDITY_BUFFER[null]} so does not have a separate mask"CODE
HIGHpandas/core/dtypes/missing.py577 return left.equals(right)CODE
HIGHpandas/core/dtypes/missing.py720 # a block is NOT null, chunks should help in such cases.COMMENT
451 more matches not shown…
Decorative Section Separators611 hits · 1753 pts
SeverityFileLineSnippetContext
MEDIUMAUTHORS.md38#-----------------------------------------------------------------------------COMMENT
MEDIUMAUTHORS.md45#-----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py624# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py626# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py972# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py974# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1228# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1230# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py98# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py100# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py272# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py274# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py296# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py298# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py505# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py507# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py543# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py545# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py856# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py858# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1024# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1026# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1047# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1049# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1273# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1275# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1352# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1354# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py2030# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py2032# ----------------------------------------------------------------COMMENT
MEDIUMpandas/core/algorithms.py1518# --------------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py37 # -------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py67 # -------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py115 # -------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py274# -----------------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1454 # -------------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py241 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py301 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py483 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py495 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py945 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1348 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1631 # -------------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1918 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2068 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2110 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2161 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2194 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py6416 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py7006 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py8228 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py8410 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py11362 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py4102 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py4457 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py6235 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py6368 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py12484 # ----------------------------------------------------------------------STRING
551 more matches not shown…
Unused Imports1172 hits · 998 pts
SeverityFileLineSnippetContext
LOWci/import_pandas_check.py3CODE
LOWasv_bench/benchmarks/arithmetic.py479CODE
LOWasv_bench/benchmarks/arithmetic.py23CODE
LOWasv_bench/benchmarks/frame_ctor.py201CODE
LOWasv_bench/benchmarks/gil.py327CODE
LOWasv_bench/benchmarks/algorithms.py227CODE
LOWasv_bench/benchmarks/ctors.py145CODE
LOWasv_bench/benchmarks/join_merge.py631CODE
LOWasv_bench/benchmarks/index_object.py262CODE
LOWasv_bench/benchmarks/plotting.py164CODE
LOWasv_bench/benchmarks/reshape.py338CODE
LOWasv_bench/benchmarks/dtypes.py129CODE
LOWasv_bench/benchmarks/rolling.py382CODE
LOWasv_bench/benchmarks/frame_methods.py892CODE
LOWasv_bench/benchmarks/sparse.py227CODE
LOWasv_bench/benchmarks/attrs_caching.py76CODE
LOWasv_bench/benchmarks/inference.py302CODE
LOWasv_bench/benchmarks/categoricals.py337CODE
LOWasv_bench/benchmarks/stat_ops.py168CODE
LOWasv_bench/benchmarks/eval.py65CODE
LOWasv_bench/benchmarks/indexing.py623CODE
LOWasv_bench/benchmarks/pandas_vb_common.py19CODE
LOWasv_bench/benchmarks/pandas_vb_common.py21CODE
LOWasv_bench/benchmarks/multiindex_object.py434CODE
LOWasv_bench/benchmarks/reindex.py148CODE
LOWasv_bench/benchmarks/series_methods.py427CODE
LOWasv_bench/benchmarks/timeseries.py297CODE
LOWasv_bench/benchmarks/replace.py76CODE
LOWasv_bench/benchmarks/io/hdf.py143CODE
LOWasv_bench/benchmarks/io/excel.py108CODE
LOWasv_bench/benchmarks/io/csv.py717CODE
LOWasv_bench/benchmarks/io/pickle.py39CODE
LOWasv_bench/benchmarks/io/sql.py173CODE
LOWasv_bench/benchmarks/tslibs/fields.py82CODE
LOWscripts/validate_exception_location.py22CODE
LOWscripts/check_test_naming.py12CODE
LOWscripts/validate_rst_title_capitalization.py15CODE
LOWscripts/pandas_errors_documented.py10CODE
LOWscripts/sort_whatsnew_note.py27CODE
LOWscripts/validate_min_versions_in_sync.py17CODE
LOWpandas/conftest.py21CODE
LOWpandas/_typing.py1CODE
LOWpandas/_typing.py3CODE
LOWpandas/_typing.py43CODE
LOWpandas/_typing.py43CODE
LOWpandas/_typing.py43CODE
LOWpandas/_typing.py43CODE
LOWpandas/_typing.py49CODE
LOWpandas/_typing.py51CODE
LOWpandas/_typing.py53CODE
LOWpandas/_typing.py53CODE
LOWpandas/_typing.py53CODE
LOWpandas/_typing.py53CODE
LOWpandas/_typing.py59CODE
LOWpandas/_typing.py59CODE
LOWpandas/_typing.py63CODE
LOWpandas/_typing.py64CODE
LOWpandas/_typing.py65CODE
LOWpandas/_typing.py66CODE
LOWpandas/_typing.py66CODE
1112 more matches not shown…
Deep Nesting658 hits · 546 pts
SeverityFileLineSnippetContext
LOWweb/pandas_web.py273CODE
LOWasv_bench/benchmarks/algorithms.py15CODE
LOWasv_bench/benchmarks/algorithms.py98CODE
LOWasv_bench/benchmarks/join_merge.py88CODE
LOWasv_bench/benchmarks/index_cached_properties.py24CODE
LOWasv_bench/benchmarks/attrs_caching.py54CODE
LOWasv_bench/benchmarks/array.py119CODE
LOWasv_bench/benchmarks/groupby.py490CODE
LOWasv_bench/benchmarks/series_methods.py90CODE
LOWasv_bench/benchmarks/series_methods.py354CODE
LOWasv_bench/benchmarks/algos/isin.py29CODE
LOWasv_bench/benchmarks/algos/isin.py241CODE
LOWscripts/validate_unwanted_patterns.py90CODE
LOWscripts/validate_unwanted_patterns.py169CODE
LOWscripts/validate_unwanted_patterns.py284CODE
LOWscripts/validate_unwanted_patterns.py336CODE
LOWscripts/validate_unwanted_patterns.py418CODE
LOWscripts/validate_unwanted_patterns.py196CODE
LOWscripts/check_test_naming.py79CODE
LOWscripts/pandas_errors_documented.py24CODE
LOWscripts/validate_min_versions_in_sync.py87CODE
LOWscripts/validate_min_versions_in_sync.py129CODE
LOWdoc/make.py72CODE
LOWpandas/compat/_optional.py107CODE
LOWpandas/core/nanops.py260CODE
LOWpandas/core/nanops.py349CODE
LOWpandas/core/nanops.py757CODE
LOWpandas/core/nanops.py1124CODE
LOWpandas/core/nanops.py1493CODE
LOWpandas/core/nanops.py1608CODE
LOWpandas/core/nanops.py1668CODE
LOWpandas/core/nanops.py1127CODE
LOWpandas/core/missing.py83CODE
LOWpandas/core/algorithms.py112CODE
LOWpandas/core/algorithms.py506CODE
LOWpandas/core/algorithms.py904CODE
LOWpandas/core/algorithms.py1407CODE
LOWpandas/core/algorithms.py1724CODE
LOWpandas/core/resample.py3058CODE
LOWpandas/core/construction.py82CODE
LOWpandas/core/construction.py579CODE
LOWpandas/core/construction.py760CODE
LOWpandas/core/construction.py836CODE
LOWpandas/core/generic.py2126CODE
LOWpandas/core/generic.py3467CODE
LOWpandas/core/generic.py3757CODE
LOWpandas/core/generic.py4206CODE
LOWpandas/core/generic.py4768CODE
LOWpandas/core/generic.py5313CODE
LOWpandas/core/generic.py6239CODE
LOWpandas/core/generic.py6316CODE
LOWpandas/core/generic.py6471CODE
LOWpandas/core/generic.py7048CODE
LOWpandas/core/generic.py7510CODE
LOWpandas/core/generic.py9851CODE
LOWpandas/core/generic.py10142CODE
LOWpandas/core/series.py352CODE
LOWpandas/core/series.py1401CODE
LOWpandas/core/series.py6428CODE
LOWpandas/core/series.py6519CODE
598 more matches not shown…
Cross-File Repetition109 hits · 545 pts
SeverityFileLineSnippetContext
HIGHpandas/core/resample.py0sub-classes to define. return a sliced object. parameters ---------- key : str / list of selections ndim : {1, 2} requesSTRING
HIGHpandas/core/frame.py0sub-classes to define. return a sliced object. parameters ---------- key : str / list of selections ndim : {1, 2} requesSTRING
HIGHpandas/core/series.py0sub-classes to define. return a sliced object. parameters ---------- key : str / list of selections ndim : {1, 2} requesSTRING
HIGHpandas/core/base.py0sub-classes to define. return a sliced object. parameters ---------- key : str / list of selections ndim : {1, 2} requesSTRING
HIGHpandas/core/groupby/generic.py0sub-classes to define. return a sliced object. parameters ---------- key : str / list of selections ndim : {1, 2} requesSTRING
HIGHpandas/core/window/rolling.py0sub-classes to define. return a sliced object. parameters ---------- key : str / list of selections ndim : {1, 2} requesSTRING
HIGHpandas/core/generic.py0conform dataframe to new index with optional filling logic. places na/nan in locations having no value in the previous iSTRING
HIGHpandas/core/series.py0conform dataframe to new index with optional filling logic. places na/nan in locations having no value in the previous iSTRING
HIGHpandas/core/frame.py0conform dataframe to new index with optional filling logic. places na/nan in locations having no value in the previous iSTRING
HIGHpandas/core/series.py0the extensionarray of the data backing this index. this property provides direct access to the underlying array data of STRING
HIGHpandas/core/base.py0the extensionarray of the data backing this index. this property provides direct access to the underlying array data of STRING
HIGHpandas/core/indexes/base.py0the extensionarray of the data backing this index. this property provides direct access to the underlying array data of STRING
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/core/dtypes/base.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/core/arrays/floating.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/core/arrays/string_.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/core/arrays/boolean.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/core/arrays/integer.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/tests/extension/decimal/array.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/tests/extension/array_with_attr/array.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/tests/extension/json/array.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/tests/extension/list/array.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/tests/arrays/test_array.py0return the array type associated with this dtype. returns ------- typeSTRING
HIGHpandas/core/_numba/kernels/sum_.py0numba 1d var kernels that can be shared by * dataframe / series * groupby * rolling / expanding mirrors pandas/_libs/winSTRING
HIGHpandas/core/_numba/kernels/min_max_.py0numba 1d var kernels that can be shared by * dataframe / series * groupby * rolling / expanding mirrors pandas/_libs/winSTRING
HIGHpandas/core/_numba/kernels/mean_.py0numba 1d var kernels that can be shared by * dataframe / series * groupby * rolling / expanding mirrors pandas/_libs/winSTRING
HIGHpandas/core/_numba/kernels/var_.py0numba 1d var kernels that can be shared by * dataframe / series * groupby * rolling / expanding mirrors pandas/_libs/winSTRING
HIGHpandas/core/window/ewm.py0return an indexer class that will compute the window start and end boundsSTRING
HIGHpandas/core/window/rolling.py0return an indexer class that will compute the window start and end boundsSTRING
HIGHpandas/core/window/expanding.py0return an indexer class that will compute the window start and end boundsSTRING
HIGHpandas/core/window/ewm.py0aggregate using one or more operations over the specified axis. accepts a function, string name, list, or dict of functiSTRING
HIGHpandas/core/window/rolling.py0aggregate using one or more operations over the specified axis. accepts a function, string name, list, or dict of functiSTRING
HIGHpandas/core/window/expanding.py0aggregate using one or more operations over the specified axis. accepts a function, string name, list, or dict of functiSTRING
HIGHpandas/core/window/ewm.py0return an indexer class that will compute the window start and end bounds returns ------- groupbyindexerSTRING
HIGHpandas/core/window/rolling.py0return an indexer class that will compute the window start and end bounds returns ------- groupbyindexerSTRING
HIGHpandas/core/window/expanding.py0return an indexer class that will compute the window start and end bounds returns ------- groupbyindexerSTRING
HIGHpandas/core/arrays/string_.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such tSTRING
HIGHpandas/core/arrays/masked.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such tSTRING
HIGHpandas/core/arrays/base.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such tSTRING
HIGHpandas/core/arrays/_mixins.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such tSTRING
HIGHpandas/core/arrays/arrow/array.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such tSTRING
HIGHpandas/core/arrays/masked.py0return boolean ndarray denoting duplicate values. parameters ---------- keep : {'first', 'last', false}, default 'first'STRING
HIGHpandas/core/arrays/base.py0return boolean ndarray denoting duplicate values. parameters ---------- keep : {'first', 'last', false}, default 'first'STRING
HIGHpandas/core/arrays/arrow/array.py0return boolean ndarray denoting duplicate values. parameters ---------- keep : {'first', 'last', false}, default 'first'STRING
HIGHpandas/core/arrays/sparse/array.py0return boolean ndarray denoting duplicate values. parameters ---------- keep : {'first', 'last', false}, default 'first'STRING
HIGHpandas/core/indexes/interval.py0this is called upon unpickling, rather than the default which doesn't have arguments and breaks __new__STRING
HIGHpandas/core/indexes/base.py0this is called upon unpickling, rather than the default which doesn't have arguments and breaks __new__STRING
HIGHpandas/core/indexes/timedeltas.py0this is called upon unpickling, rather than the default which doesn't have arguments and breaks __new__STRING
HIGHpandas/core/indexes/datetimes.py0this is called upon unpickling, rather than the default which doesn't have arguments and breaks __new__STRING
HIGHpandas/core/indexes/interval.py0fastpath for __getitem__ when we know we have a slice.STRING
HIGHpandas/core/indexes/range.py0fastpath for __getitem__ when we know we have a slice.STRING
HIGHpandas/core/indexes/multi.py0fastpath for __getitem__ when we know we have a slice.STRING
HIGHpandas/core/indexes/base.py0fastpath for __getitem__ when we know we have a slice.STRING
HIGHpandas/core/indexes/timedeltas.py0can we compare values of the given dtype to our own?STRING
HIGHpandas/core/indexes/datetimes.py0can we compare values of the given dtype to our own?STRING
HIGHpandas/core/indexes/period.py0can we compare values of the given dtype to our own?STRING
HIGHpandas/core/indexes/base.py0can we compare values of the given dtype to our own?STRING
HIGHpandas/core/indexes/range.py0create a new index with the same class as the caller, don't copy the data, use the same object attributes with passed inSTRING
HIGHpandas/core/indexes/multi.py0create a new index with the same class as the caller, don't copy the data, use the same object attributes with passed inSTRING
HIGHpandas/core/indexes/base.py0create a new index with the same class as the caller, don't copy the data, use the same object attributes with passed inSTRING
49 more matches not shown…
AI Structural Patterns268 hits · 210 pts
SeverityFileLineSnippetContext
LOWasv_bench/benchmarks/groupby.py178CODE
LOWpandas/core/nanops.py1222CODE
LOWpandas/core/nanops.py1268CODE
LOWpandas/core/nanops.py1170CODE
LOWpandas/core/missing.py455CODE
LOWpandas/core/algorithms.py469CODE
LOWpandas/core/resample.py2428CODE
LOWpandas/core/arraylike.py438CODE
LOWpandas/core/arraylike.py555CODE
LOWpandas/core/generic.py2198CODE
LOWpandas/core/generic.py2372CODE
LOWpandas/core/generic.py2709CODE
LOWpandas/core/generic.py3413CODE
LOWpandas/core/generic.py3440CODE
LOWpandas/core/generic.py3467CODE
LOWpandas/core/generic.py3832CODE
LOWpandas/core/generic.py3859CODE
LOWpandas/core/generic.py3886CODE
LOWpandas/core/generic.py4423CODE
LOWpandas/core/generic.py5213CODE
LOWpandas/core/generic.py5228CODE
LOWpandas/core/generic.py5243CODE
LOWpandas/core/generic.py5257CODE
LOWpandas/core/generic.py5313CODE
LOWpandas/core/generic.py9202CODE
LOWpandas/core/generic.py11045CODE
LOWpandas/core/generic.py12268CODE
LOWpandas/core/generic.py11634CODE
LOWpandas/core/series.py1563CODE
LOWpandas/core/series.py1579CODE
LOWpandas/core/series.py1597CODE
LOWpandas/core/series.py3074CODE
LOWpandas/core/series.py4130CODE
LOWpandas/core/series.py4145CODE
LOWpandas/core/series.py4160CODE
LOWpandas/core/series.py4174CODE
LOWpandas/core/series.py5153CODE
LOWpandas/core/series.py5306CODE
LOWpandas/core/series.py5647CODE
LOWpandas/core/series.py8862CODE
LOWpandas/core/frame.py1002CODE
LOWpandas/core/frame.py1027CODE
LOWpandas/core/frame.py1051CODE
LOWpandas/core/frame.py2479CODE
LOWpandas/core/frame.py3120CODE
LOWpandas/core/frame.py3149CODE
LOWpandas/core/frame.py3177CODE
LOWpandas/core/frame.py3401CODE
LOWpandas/core/frame.py3423CODE
LOWpandas/core/frame.py3444CODE
LOWpandas/core/frame.py6044CODE
LOWpandas/core/frame.py6527CODE
LOWpandas/core/frame.py6541CODE
LOWpandas/core/frame.py6554CODE
LOWpandas/core/frame.py8648CODE
LOWpandas/core/frame.py8663CODE
LOWpandas/core/frame.py8678CODE
LOWpandas/core/frame.py8692CODE
LOWpandas/core/frame.py9819CODE
LOWpandas/core/frame.py13203CODE
208 more matches not shown…
Modern Structural Boilerplate117 hits · 104 pts
SeverityFileLineSnippetContext
LOWdoc/source/conf.py27logger = logging.getLogger(__name__)CODE
LOWpandas/_typing.py580__all__ = ["type_t"]CODE
LOWpandas/__init__.py228__all__ = [STRING
LOWpandas/testing.py12__all__ = [CODE
LOWpandas/compat/_constants.py29__all__ = [CODE
LOWpandas/compat/__init__.py145__all__ = [CODE
LOWpandas/compat/numpy/__init__.py49__all__ = [CODE
LOWpandas/core/nanops.py63def set_use_bottleneck(v: bool = True) -> None:CODE
LOWpandas/core/generic.py728 def _set_axis_nocheck(self, labels, axis: Axis, inplace: Literal[True]) -> None: ...CODE
LOWpandas/core/generic.py743 def _set_axis(self, axis: AxisInt, labels: AnyArrayLike | list) -> None:CODE
LOWpandas/core/generic.py4851 def _update_inplace(self, result) -> None:STRING
LOWpandas/core/series.py1259 def _set_labels(self, key, value) -> None:CODE
LOWpandas/core/series.py1267 def _set_values(self, key, value) -> None:CODE
LOWpandas/core/series.py1273 def _set_value(self, label, value, takeable: bool = False) -> None:CODE
LOWpandas/core/series.py199__all__ = ["Series"]CODE
LOWpandas/core/series.py1242 def _set_with_engine(self, key, value) -> None:CODE
LOWpandas/core/series.py1248 def _set_with(self, key, value) -> None:CODE
LOWpandas/core/api.py84__all__ = [CODE
LOWpandas/core/frame.py4627 def _setitem_slice(self, key: slice, value) -> None:STRING
LOWpandas/core/frame.py4633 def _setitem_array(self, key, value) -> None:STRING
LOWpandas/core/frame.py4715 def _setitem_frame(self, key, value) -> None:STRING
LOWpandas/core/frame.py4730 def _set_item_frame_value(self, key, value: DataFrame) -> None:STRING
LOWpandas/core/frame.py4823 def _set_item(self, key, value) -> None:STRING
LOWpandas/core/col.py432__all__ = ["Expression", "col"]CODE
LOWpandas/core/indexing.py2457 def _setitem_new_column(self, indexer, key, value, name: str) -> None:CODE
LOWpandas/core/indexing.py2522 def _setitem_with_indexer(self, indexer, value, name: str = "iloc") -> None:CODE
LOWpandas/core/indexing.py2682 def _setitem_with_indexer_2d_value(self, indexer, value) -> None:CODE
LOWpandas/core/indexing.py2769 def _setitem_single_column(self, loc: int, value, plane_indexer) -> None:CODE
LOWpandas/core/indexing.py2831 def _setitem_single_block(self, indexer, value, name: str) -> None:CODE
LOWpandas/core/indexers/__init__.py18__all__ = [CODE
LOWpandas/core/reshape/api.py26__all__ = [CODE
LOWpandas/core/tools/datetimes.py1343__all__ = [CODE
LOWpandas/core/util/numba_.py25def set_use_numba(enable: bool = False) -> None:CODE
LOWpandas/core/dtypes/api.py43__all__ = [CODE
LOWpandas/core/dtypes/common.py1875__all__ = [CODE
LOWpandas/core/groupby/__init__.py9__all__ = [CODE
LOWpandas/core/internals/__init__.py8__all__ = [CODE
LOWpandas/core/internals/blocks.py1003 def set_inplace(self, locs, values: ArrayLike, copy: bool = False) -> None:CODE
LOWpandas/core/internals/blocks.py2052 def set_inplace(self, locs, values: ArrayLike, copy: bool = False) -> None:CODE
LOWpandas/core/internals/managers.py271 def set_axis(self, axis: AxisInt, new_labels: Index) -> None:CODE
LOWpandas/core/internals/managers.py2293 def set_values(self, values: ArrayLike) -> None:CODE
LOWpandas/core/computation/check.py8__all__ = ["NUMEXPR_INSTALLED"]CODE
LOWpandas/core/computation/expressions.py50def set_use_numexpr(v: bool = True) -> None:CODE
LOWpandas/core/computation/expressions.py68def set_numexpr_threads(n=None) -> None:CODE
LOWpandas/core/computation/expressions.py275def set_test_mode(v: bool = True) -> None:CODE
LOWpandas/core/computation/api.py1__all__ = ["eval"]CODE
LOWpandas/core/_numba/kernels/__init__.py18__all__ = [CODE
LOWpandas/core/window/__init__.py15__all__ = [CODE
LOWpandas/core/arrays/categorical.py956 def _set_categories(self, categories, fastpath: bool = False) -> None:CODE
LOWpandas/core/arrays/__init__.py24__all__ = [CODE
LOWpandas/core/arrays/arrow/__init__.py7__all__ = ["ArrowExtensionArray", "ListAccessor", "StructAccessor"]CODE
LOWpandas/core/arrays/sparse/__init__.py12__all__ = [CODE
LOWpandas/core/ops/__init__.py67__all__ = [CODE
LOWpandas/core/sparse/api.py5__all__ = ["SparseArray", "SparseDtype"]CODE
LOWpandas/core/indexes/multi.py1697 def _set_names(self, names, *, level=None) -> None:CODE
LOWpandas/core/indexes/api.py39__all__ = [CODE
LOWpandas/core/indexes/base.py219__all__ = ["Index"]CODE
LOWpandas/util/_decorators.py453__all__ = [CODE
LOWpandas/util/_tester.py60__all__ = ["test"]CODE
LOWpandas/util/version/__init__.py19__all__ = ["VERSION_PATTERN", "InvalidVersion", "Version", "parse"]CODE
57 more matches not shown…
Self-Referential Comments30 hits · 95 pts
SeverityFileLineSnippetContext
MEDIUMscripts/generate_pip_deps_from_conda.py106 f"# This file is auto-generated from {conda_path.name}, do not modify.\n"CODE
MEDIUMdoc/source/conf.py4# This file is execfile()d with the current directory set to its containingCOMMENT
MEDIUMpandas/core/apply.py1340 # Create the seriesCOMMENT
MEDIUMpandas/core/apply.py1540 # Create the seriesCOMMENT
MEDIUMpandas/core/interchange/from_dataframe.py385 # Create the stringCOMMENT
MEDIUMpandas/core/interchange/column.py366 # Define the dtype for the returned bufferCOMMENT
MEDIUMpandas/core/interchange/column.py424 # Define the dtype of the returned bufferCOMMENT
MEDIUMpandas/core/dtypes/concat.py104 # Creating an empty array directly is tempting, but the winnings would beCOMMENT
MEDIUMpandas/core/computation/parsing.py51 # Create a dict with the special characters and their replacement string.COMMENT
MEDIUMpandas/core/_numba/extensions.py300 # Create an empty typed dict in numba for the hashmap for indexingCOMMENT
MEDIUMpandas/core/arrays/datetimes.py507 # Create a linearly spaced date_range in local timeCOMMENT
MEDIUMpandas/util/version/__init__.py5# This file is dual licensed under the terms of the Apache License, VersionCOMMENT
MEDIUMpandas/io/parsers/readers.py361 # Create the parser.COMMENT
MEDIUMpandas/io/excel/_base.py1157 # Defining an ExcelWriter implementation (see abstract methods for more...)COMMENT
MEDIUMpandas/io/excel/_xlsxwriter.py105 # Create an XlsxWriter format object.COMMENT
MEDIUMpandas/io/clipboard/__init__.py459 # This function is heavily based onCOMMENT
MEDIUMpandas/tests/test_optional_dependency.py69 # Create a fake module with a submoduleCOMMENT
MEDIUMpandas/tests/series/test_formats.py293 # Define a stub extension type with just enough code to run Series.__repr__()COMMENT
MEDIUMpandas/tests/series/accessors/test_cat_accessor.py128 # This method is likely to be confused, so test that it raises an errorCOMMENT
MEDIUMpandas/tests/apply/test_invalid_arg.py2# This file is organized by reason for exception.COMMENT
MEDIUMpandas/tests/apply/test_frame_apply_relabeling.py102 # This method is used by other libraries (e.g. dask)COMMENT
MEDIUMpandas/tests/resample/test_period_index.py339 # Create the expected seriesCOMMENT
MEDIUMpandas/tests/io/test_compression.py66 # Create a new temporary file for uncompressed comparisonCOMMENT
MEDIUM…as/tests/tseries/offsets/test_custom_business_month.py181 # Define a TradingDay offsetCOMMENT
MEDIUM…as/tests/tseries/offsets/test_custom_business_month.py358 # Define a TradingDay offsetCOMMENT
MEDIUM…ndas/tests/tseries/offsets/test_custom_business_day.py43 # Define a TradingDay offsetCOMMENT
MEDIUMpandas/tests/libs/test_lib.py336 # Define a custom ndarray subclassCOMMENT
MEDIUMpandas/tests/plotting/frame/test_frame_color.py729 # Creating a DataFrame with duplicate column labels and testing colors of them.COMMENT
MEDIUMpandas/tests/arithmetic/test_datetime64.py778 # This class is intended for "finished" tests that are fully parametrizedCOMMENT
MEDIUMpandas/tests/arithmetic/test_array_ops.py50 # Define a custom ndarray subclassCOMMENT
Over-Commented Block78 hits · 68 pts
SeverityFileLineSnippetContext
LOWscripts/check_test_naming.py101 _is_register_dtype(decorator) for decorator in node.decorator_listCOMMENT
LOWscripts/tests/data/deps_minimum.toml181 # module level import not at top of fileCOMMENT
LOW.github/workflows/wheels.yml1# Workflow to build wheels for upload to PyPI.COMMENT
LOW.github/workflows/unit-tests.yml421 environment: sanitizersCOMMENT
LOWdoc/source/conf.py1#COMMENT
LOWdoc/source/conf.py101COMMENT
LOWdoc/source/conf.py481COMMENT
LOWdoc/source/conf.py501# If true, the current module name will be prepended to all descriptionCOMMENT
LOWdoc/source/conf.py601# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,COMMENT
LOWdoc/source/conf.py701# If true, the index is split into individual pages for each letter.COMMENT
LOWdoc/source/conf.py741 )COMMENT
LOWdoc/source/conf.py821 """COMMENT
LOWpandas/core/nanops.py161 # Bottleneck chokes on datetime64, PeriodDtype (or an EA)COMMENT
LOWpandas/core/arraylike.py401 if result is not NotImplemented:COMMENT
LOWpandas/core/frame.py2381 # followed by those in its columns.COMMENT
LOWpandas/core/indexing.py2801 # We want to raise forCOMMENT
LOWpandas/core/apply.py2101 reorder_mask = not isinstance(result, ABCSeries) and len(result.columns) > 1COMMENT
LOWpandas/core/strings/__init__.py21# - StringArrayCOMMENT
LOWpandas/core/interchange/dataframe_protocol.py101 # first element is a buffer containing mask values indicating missing data;COMMENT
LOWpandas/core/groupby/grouper.py501 # a passed Grouper like, directly get the grouper in the same wayCOMMENT
LOWpandas/core/groupby/grouper.py781 # TODO: These if-block and else-block are almost same.COMMENT
LOWpandas/core/internals/ops.py81 # if right_ea or left_ea:COMMENT
LOWpandas/core/arrays/datetimelike.py401 # I'm fudging the types a bit here. "Any" above really dependsCOMMENT
LOWpandas/core/arrays/base.py541 -------COMMENT
LOWpandas/core/indexes/base.py7341 end_slice = self.get_slice_bound(end, "right")COMMENT
LOWpandas/util/version/__init__.py401 dev: tuple[str, int] | None,COMMENT
LOWpandas/io/stata.py801 # --------------------COMMENT
LOWpandas/io/parsers/readers.py2841 Default values of input parameters.COMMENT
LOWpandas/io/formats/console.py21 # ConsiderCOMMENT
LOWpandas/io/formats/html.py341 # see gh-22579COMMENT
LOWpandas/io/formats/printing.py81 """COMMENT
LOWpandas/io/formats/printing.py101# use pprint_thing().COMMENT
LOWpandas/io/excel/_base.py1161 # --> called to write additional DataFrames to diskCOMMENT
LOWpandas/io/sas/sas_xport.py201 shift[np.where(xport1 & 0x00800000)] = 3COMMENT
LOWpandas/tests/tools/test_to_datetime.py3121 # GH 58859COMMENT
LOWpandas/tests/tools/test_to_datetime.py3141 # 2.5.3 10-11-12 [dayfirst=1, yearfirst=1] -> 2010-12-11 00:00:00COMMENT
LOWpandas/tests/extension/base/ops.py41 # In _check_op we check that the result of a pointwise operationCOMMENT
LOWpandas/tests/io/excel/test_readers.py821 def test_reading_all_sheets(self, read_ext):COMMENT
LOWpandas/tests/io/parser/test_c_parser_only.py341def test_parse_trim_buffers(c_parser_only, encoding):COMMENT
LOWpandas/tests/io/parser/common/test_float.py121 # When a 17-digit mantissa's 16-digit prefix crosses 2^53COMMENT
LOWpandas/tests/io/xml/test_xml.py41# [X] - ImportError: "lxml not found, please install or use the etree parser."COMMENT
LOWpandas/tests/io/xml/test_xml.py61COMMENT
LOWpandas/tests/io/xml/test_to_xml.py21from pandas.io.common import get_handleCOMMENT
LOWpandas/tests/io/xml/test_to_xml.py41# [X] - TypeError: "...is not a valid type for attr_cols"COMMENT
LOWpandas/tests/io/pytables/test_compat.py101COMMENT
LOWpandas/tests/io/pytables/test_compat.py121 # if legacy_file.endswith("table.h5"):COMMENT
LOWpandas/tests/frame/methods/test_reindex.py201 # MultiIndex object correctly when using no filling, backfilling, andCOMMENT
LOWpandas/tests/frame/methods/test_reindex.py221 # 1 0 ACOMMENT
LOWpandas/tests/plotting/frame/test_frame.py981 def test_plot_scatter_with_c_array(self):COMMENT
LOWpandas/tests/arrays/sparse/test_libsparse.py101 def test_index_make_union(self, xloc, xlen, yloc, ylen, eloc, elen, test_length):COMMENT
LOWpandas/tests/arrays/sparse/test_libsparse.py121 # Case 6COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py301 result = idx.get_indexer(labels)COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py361 err = NotImplementedErrorCOMMENT
LOWpandas/tests/indexes/multi/test_indexing.py381 # 7: 7COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py461COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py481 # 6: 2 1COMMENT
LOWpandas/tests/indexes/multi/test_partial_indexing.py21 # c 5COMMENT
LOWpandas/_libs/include/pandas/portable.h21#define getdigit_ascii(c, default) \COMMENT
LOWpandas/_libs/include/pandas/parser/pd_parser.h61# define del_rd_source(src) PandasParserAPI->del_rd_source((src))COMMENT
LOW…as/_libs/include/pandas/vendored/ujson/lib/ultrajson.h61COMMENT
18 more matches not shown…
AI Slop Vocabulary34 hits · 58 pts
SeverityFileLineSnippetContext
LOWpandas/core/missing.py518 # both directions... just use _interp_limitCOMMENT
LOWpandas/core/missing.py1102 # just use forwardsCOMMENT
MEDIUMpandas/core/generic.py1636 # operations should utilize/extend these methods when possible so that weCOMMENT
MEDIUMpandas/core/generic.py6608 # robust in case weCOMMENT
LOWpandas/core/generic.py4365 # so just return them (GH 6394)STRING
LOWpandas/core/frame.py4628 # NB: we can't just use self.loc[key] = value because thatSTRING
LOWpandas/core/apply.py1127 # so just return a copy of the existing objectCOMMENT
LOWpandas/core/reshape/merge.py1344 # make sure to just use the right values or vice-versaCOMMENT
LOWpandas/core/reshape/reshape.py429 # Otherwise, we just use each level item exactly once:COMMENT
LOWpandas/core/strings/accessor.py4806 # ideally we just pass `dtype=arr.dtype` unconditionally, but this failsSTRING
LOWpandas/core/groupby/grouper.py830 # already have a BaseGrouper, just return itCOMMENT
MEDIUMpandas/core/window/online.py70 # used in conjunction with vals[i+1]COMMENT
MEDIUMpandas/core/window/numba_.py144 # is to be used in conjunction with vals[i+1]COMMENT
MEDIUMpandas/core/window/numba_.py320 # is to be used in conjunction with vals[i+1]COMMENT
LOWpandas/core/arrays/_ranges.py82 # cannot just use e = Timestamp(end) + 1 because arange breaks whenCOMMENT
LOWpandas/core/arrays/masked.py801 # special case, here we can simply return the underlying dataCOMMENT
LOWpandas/core/arrays/base.py2051 # just pass that here instead of coercing to object.STRING
LOWpandas/core/indexes/base.py5382 # TODO(ExtensionIndex): remove special-case, just use self._valuesCOMMENT
LOWpandas/io/stata.py2985 # ds_format - just use 114COMMENT
LOWpandas/io/parsers/arrow_parser_wrapper.py118 # just set to pyarrow default of NoneCOMMENT
LOWpandas/io/json/_normalize.py43 # Determine we have a JSON list to turn to lines otherwise just return theCOMMENT
LOWpandas/tests/reshape/merge/test_merge_asof.py1909 # just use a single tickerCOMMENT
LOWpandas/tests/extension/base/dtype.py112 # (we shortcut to just use that dtype as the common dtype), butCOMMENT
MEDIUMpandas/tests/extension/base/interface.py176 # the _cast_pointwise_result method should be robust to any input,COMMENT
LOWpandas/tests/io/test_stata.py194 # TODO(GH#55564): just pass M8[s] to the constructorCOMMENT
LOWpandas/tests/frame/test_query_eval.py298 # list equality (really just set membership)COMMENT
LOWpandas/tests/frame/test_query_eval.py345 # list equality (really just set membership)COMMENT
LOWpandas/tests/frame/test_query_eval.py386 # list equality (really just set membership)COMMENT
MEDIUMpandas/tests/dtypes/test_inference.py813 # make sure that this function is robust against itCOMMENT
MEDIUMpandas/tests/dtypes/cast/test_promote.py58 # Compare types in a way that is robust to platform-specificCOMMENT
LOWpandas/tests/groupby/test_categorical.py2163 # Only testing the ids/result_index, okay to just use one kernelCOMMENT
MEDIUMpandas/tests/arrays/test_datetimes.py294 # sufficiently robustCOMMENT
LOWpandas/tests/tslibs/test_parsing.py77 # Raise on invalid input, don't just return itCOMMENT
LOWpandas/plotting/_matplotlib/tools.py314 # one subplot, just return it instead of a 1-element array.COMMENT
Excessive Try-Catch Wrapping52 hits · 54 pts
SeverityFileLineSnippetContext
LOWdoc/make.py209 except Exception:CODE
LOWpandas/core/series.py6638 except Exception as error:CODE
LOWpandas/core/frame.py14694 except Exception:STRING
LOWpandas/core/apply.py364 except Exception as err:CODE
LOWpandas/core/apply.py419 except Exception:CODE
LOWpandas/core/apply.py1148 except Exception:CODE
LOWpandas/core/groupby/generic.py2887 except Exception:CODE
LOWpandas/core/groupby/groupby.py1511 except Exception as err:CODE
LOWpandas/core/arrays/_arrow_string_mixins.py74 except Exception as err:CODE
LOWpandas/core/arrays/base.py438 except Exception:CODE
LOWpandas/util/_print_versions.py81 except Exception:CODE
LOWpandas/util/_exceptions.py25 except Exception as err:CODE
LOWpandas/io/pytables.py1529 except Exception as err:CODE
LOWpandas/io/pytables.py2214 except Exception as detail:CODE
LOWpandas/io/_util.py268 except Exception:CODE
LOWpandas/io/_util.py278 except Exception:CODE
LOWpandas/io/sql.py716 except Exception:CODE
LOWpandas/io/sql.py2141 except Exception:CODE
LOWpandas/io/sql.py2736 except Exception:CODE
LOWpandas/io/stata.py2930 except Exception as exc:CODE
MEDIUMpandas/io/parsers/readers.py2453def __next__(self) -> DataFrame:CODE
LOWpandas/io/parsers/readers.py2505 except Exception:STRING
LOWpandas/io/parsers/readers.py2548 except Exception:STRING
LOWpandas/io/parsers/readers.py2562 except Exception:STRING
LOWpandas/io/excel/_base.py566 except Exception:CODE
LOWpandas/io/excel/_base.py961 except Exception as err:CODE
LOWpandas/io/json/_json.py1357 except Exception as ex:CODE
LOWpandas/io/json/_json.py1607 except Exception:CODE
LOWpandas/io/sas/sas7bdat.py241 except Exception:CODE
LOWpandas/io/sas/sas_xport.py263 except Exception:CODE
LOWpandas/tests/extension/base/methods.py587 except Exception:CODE
LOWpandas/tests/extension/base/ops.py225 except Exception as err:CODE
LOWpandas/tests/extension/base/ops.py279 except Exception as err:CODE
LOWpandas/tests/extension/base/dim2.py211 except Exception as err:CODE
LOWpandas/tests/extension/base/dim2.py216 except Exception as err2:CODE
LOWpandas/tests/extension/base/dim2.py245 except Exception as err:CODE
LOWpandas/tests/extension/base/dim2.py248 except Exception as err2:CODE
LOWpandas/tests/extension/base/dim2.py292 except Exception as err:CODE
LOWpandas/tests/extension/base/dim2.py295 except Exception as err2:CODE
MEDIUMpandas/tests/io/test_html.py1539def run(self):CODE
LOWpandas/tests/io/test_html.py1542 except Exception as err:CODE
LOWpandas/tests/io/test_html.py1474 except Exception:STRING
LOWpandas/tests/frame/test_block_internals.py442 except Exception:CODE
MEDIUMpandas/tests/frame/test_block_internals.py439def safe_is_const(s):CODE
LOWpandas/tests/api/test_api.py577 except Exception:CODE
LOWpandas/tests/tslibs/test_conversion.py42 except Exception as err:CODE
LOWpandas/tests/tslibs/test_conversion.py47 except Exception as err:CODE
LOWpandas/plotting/_matplotlib/converter.py339 except Exception:CODE
LOWpandas/plotting/_matplotlib/converter.py363 except Exception:CODE
LOWpandas/plotting/_matplotlib/converter.py477 except Exception: # pragma: no coverCODE
MEDIUMpandas/plotting/_matplotlib/converter.py336def try_parse(values):CODE
LOWpandas/plotting/_matplotlib/core.py1747 except Exception:CODE
Redundant / Tautological Comments27 hits · 37 pts
SeverityFileLineSnippetContext
LOWpandas/core/generic.py2096 # Check if both conversions can be done without a copyCOMMENT
LOWpandas/core/generic.py4818 # Set level to zero in case of MultiIndex and label is string,STRING
LOWpandas/core/generic.py4824 # Check if label doesn't exist along axisSTRING
LOWpandas/core/reshape/merge.py1789 # Check if we are trying to merge on obviouslyCOMMENT
LOWpandas/core/internals/managers.py1316 # Check if we can use _iset_single fastpathCOMMENT
LOWpandas/core/computation/expr.py676 # Check if this is a supported function nameCOMMENT
LOWpandas/core/arrays/datetimes.py3225 # Check if the offset preserves start's time-of-daySTRING
LOWpandas/core/arrays/base.py567 # Check if the array is readonlyCOMMENT
LOWpandas/core/indexes/multi.py502 # Check if elements of array are list-likeCOMMENT
LOWpandas/core/indexes/multi.py507 # Check if lengths of all arrays are equal or not,COMMENT
LOWpandas/core/indexes/multi.py3868 # Check if this tuple is a single key in our first levelCOMMENT
LOWpandas/io/formats/format.py1833 # Check if all decimal numbers end in "0"COMMENT
LOWpandas/io/excel/_base.py910 # Check if we have an empty datasetCOMMENT
LOWpandas/tests/reshape/merge/test_merge.py1091 # Check if working name in dfCOMMENT
LOWpandas/tests/apply/test_frame_apply.py801 # Check if categorical comparisons on apply, GH 21239COMMENT
LOWpandas/tests/apply/test_frame_apply.py1330 # Check if name is still preserved when aggregating series insteadCOMMENT
LOWpandas/tests/extension/base/methods.py517 # Check if the operation is supported pointwise for our scalars. If not,COMMENT
LOWpandas/tests/io/test_clipboard.py106 # Set raising to False because WinError won't exist on non-windows platformsCOMMENT
LOWpandas/tests/io/excel/test_readers.py214 # Check if values matchCOMMENT
LOWpandas/tests/io/excel/test_readers.py218 # Check if types matchCOMMENT
LOWpandas/tests/io/excel/test_writers.py1276 # Read file without comment arg.COMMENT
LOWpandas/tests/io/excel/test_writers.py1296 # Read file with default and explicit comment=NoneCOMMENT
LOWpandas/tests/io/sas/test_sas7bdat.py228 # Check if the SAS file has zero variables (PR #18184)COMMENT
LOWpandas/tests/io/pytables/test_file_handling.py217 # Check if not setting complib or complevel results in no compressionCOMMENT
LOWpandas/tests/io/pytables/test_file_handling.py230 # Check if file-defaults can be overridden on a per table basisCOMMENT
LOWpandas/tests/io/pytables/test_file_handling.py280 # Open file and check metadata for correct amount of compressionCOMMENT
LOWpandas/tests/indexing/multiindex/test_loc.py854 # Check if get_loc matches for Index and MultiIndexCOMMENT
Slop Phrases11 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/wheels.yml9# Alternatively, you can add labels to the pull request in order to trigger wheelCOMMENT
LOW.github/workflows/unit-tests.yml435 # To unfreeze, comment out the ``if: false`` condition, and make sure you updateCOMMENT
MEDIUM.github/workflows/unit-tests.yml445 # Feel free to modify this comment as necessary.COMMENT
LOWpandas/core/reshape/merge.py1344 # make sure to just use the right values or vice-versaCOMMENT
LOWpandas/io/pytables.py5048 # make sure to include levels if we have themCOMMENT
LOWpandas/io/formats/excel.py1021 # make sure to close opened file handlesCOMMENT
LOWpandas/io/excel/_base.py530 # make sure to close opened file handlesCOMMENT
LOWpandas/tests/series/methods/test_reindex.py97 # (don't forget to fix this) I think it's fixedCOMMENT
LOWpandas/tests/series/methods/test_reindex.py97 # (don't forget to fix this) I think it's fixedCOMMENT
LOWpandas/tests/io/parser/test_compression.py186 # make sure to create un-compressed file with zip extensionCOMMENT
LOWpandas/tests/indexing/test_chaining_and_caching.py312 # GH 4939, make sure to update the cache on setitemCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALpandas/tests/io/formats/style/test_html.py22 project_dir = pathlib.Path(__file__).parent.parent.parent.parent.parent.resolve()CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHpandas/tests/dtypes/test_inference.py1118 # make sure the inferred dtype of the fixture is as requestedCOMMENT
TODO Padding2 hits · 4 pts
SeverityFileLineSnippetContext
LOWpandas/core/interchange/column.py432 # TODO: implement for other bit/byte masks?COMMENT
LOWpandas/tests/groupby/transform/test_transform.py1207 # TODO: implement SeriesGroupBy.corrwithCOMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWpandas/tests/io/formats/test_to_html.py22 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
LOWpandas/tests/io/formats/test_to_html.py22 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpandas/core/groupby/grouper.py786 # we need to check if it makes no side effect to subsequent processesCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpandas/tests/io/json/test_ujson.py83 def helper(expected_output, **encode_kwargs):CODE