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.8 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,581 GitHub stars. SynthScan v2.0 examined 741,960 lines of code across 1763 source files, recording 15826 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 24.8 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.8
Adjusted Score
24.8
Raw Score
100%
Time Factor
2026-08-28
Last Push
49.6K
Stars
Python
Language
742.0K
Lines of Code
1.8K
Files
15.8K
Pattern Hits
2026-08-29
Scan Date
0.36
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 635MEDIUM 660LOW 14530

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 15826 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 Identifiers12087 hits · 10759 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/ctors.py144 def time_from_list_of_str_with_tz(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.py652 def time_left_join_sorted_baseline(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py655 def time_left_join_unsorted_left(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py658 def time_right_join_unsorted_right(self, n):CODE
LOWasv_bench/benchmarks/join_merge.py661 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.py600 def time_merge_sorted_multiindex(self, dtypes, how):CODE
LOWasv_bench/benchmarks/join_merge.py620 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
12027 more matches not shown…
Cross-Language Confusion525 hits · 3128 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.py1101 and idx.equals(values)CODE
HIGHpandas/core/resample.py2189 and obj.index.equals(res_index)CODE
HIGHpandas/core/generic.py1466 return self._mgr.equals(other._mgr)CODE
HIGHpandas/core/generic.py10167 if (axis is None or axis == 0) and not self.index.equals(other.index):CODE
HIGHpandas/core/generic.py10175 and not self.columns.equals(other.columns)CODE
HIGHpandas/core/generic.py10217 if self.index.equals(other.index):CODE
HIGHpandas/core/generic.py10239 if not join_index.equals(other.index):CODE
HIGHpandas/core/generic.py10349 if not cond._info_axis.equals(self._info_axis):CODE
HIGHpandas/core/generic.py12754 If all elements in Series are NA/null, returns None.CODE
HIGHpandas/core/generic.py12788 If all elements in DataFrame are NA/null, returns None.CODE
HIGHpandas/core/generic.py12841 If all elements in Series are NA/null, returns None.CODE
HIGHpandas/core/generic.py12875 If all elements in DataFrame are NA/null, returns None.CODE
HIGHpandas/core/generic.py1447 >>> df.equals(different_data_type)STRING
HIGHpandas/core/generic.py1454 >>> df_nan1.equals(df_nan2)STRING
HIGHpandas/core/generic.py1460 >>> df_nan1.equals(df_nan3)STRING
HIGHpandas/core/generic.py1425 >>> df.equals(exactly_equal)STRING
HIGHpandas/core/generic.py1436 >>> df.equals(different_column_type)STRING
HIGHpandas/core/generic.py2608 '{"name":null,"index":[0,1,2],"data":[1,2,3]}'STRING
HIGHpandas/core/series.py455 elif not data.index.equals(index) or copy:CODE
HIGHpandas/core/series.py3811 if self.index.equals(other.index):CODE
HIGHpandas/core/series.py7328 if not left.index.equals(right.index):CODE
HIGHpandas/core/series.py7366 if not self.index.equals(other.index):CODE
HIGHpandas/core/frame.py4341 if isinstance(key, Series) and not key.index.equals(self.index):STRING
HIGHpandas/core/frame.py4766 if len(cols_droplevel) and not cols_droplevel.equals(value.columns):STRING
HIGHpandas/core/frame.py4780 if not cols_droplevel.equals(cols):STRING
HIGHpandas/core/frame.py9722 assert self.index.equals(right.index)STRING
HIGHpandas/core/frame.py9723 assert self.columns.equals(right.columns)STRING
HIGHpandas/core/frame.py9736 assert right.index.equals(self.columns)STRING
HIGHpandas/core/frame.py9748 assert right.index.equals(self.index)STRING
HIGHpandas/core/frame.py9852 and not self.columns.equals(right.columns)STRING
HIGHpandas/core/frame.py19840 if value.index.equals(index) or not len(index):STRING
HIGHpandas/core/indexing.py3168 if not len(new_ix) or ser.index.equals(new_ix):CODE
HIGHpandas/core/indexing.py3177 if ser.index.equals(ax) or not len(ax):CODE
HIGHpandas/core/indexing.py3187 if ser.index.equals(ax):CODE
HIGHpandas/core/indexing.py3195 if ser.index.equals(ax):CODE
HIGHpandas/core/indexing.py2799 elif not unique_cols and value.columns.equals(self.obj.columns):CODE
HIGHpandas/core/indexing.py3223 if df.index.equals(idx) and df.columns.equals(cols):CODE
HIGHpandas/core/indexing.py3231 if df.index.equals(ax):CODE
HIGHpandas/core/indexing.py3610 if isinstance(key, ABCSeries) and not key.index.equals(index):CODE
HIGHpandas/core/apply.py403 if not isinstance(result, (ABCSeries, ABCDataFrame)) or not result.index.equals(CODE
HIGHpandas/core/apply.py1141 if not row.index.equals(sub.columns):CODE
HIGHpandas/core/reshape/concat.py511 if not no_sort_result_index.equals(orig):CODE
HIGHpandas/core/reshape/concat.py674 if not all_equal[ax] and not new_labels.equals(obj_labels):CODE
HIGHpandas/core/reshape/concat.py953 if isinstance(hlevel, Index) and hlevel.equals(level):CODE
HIGHpandas/core/reshape/reshape.py944 if not result.columns.equals(desired_columns):CODE
HIGHpandas/core/reshape/reshape.py1145 if not result.columns.equals(desired_columns):CODE
HIGHpandas/core/strings/accessor.py688 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
465 more matches not shown…
Decorative Section Separators614 hits · 1760 pts
SeverityFileLineSnippetContext
MEDIUMAUTHORS.md38#-----------------------------------------------------------------------------COMMENT
MEDIUMAUTHORS.md45#-----------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py29# ---------------------------------------------------------------------------COMMENT
MEDIUMdoc/source/conf.py37# ---------------------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py607# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py609# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py960# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py962# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1216# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1218# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py99# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py101# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py255# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py257# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py279# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py281# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py488# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py490# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py526# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py528# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py844# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py846# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1012# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1014# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1035# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1037# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1261# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1263# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1340# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py1342# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py2018# ----------------------------------------------------------------COMMENT
MEDIUMpandas/conftest.py2020# ----------------------------------------------------------------COMMENT
MEDIUMpandas/core/algorithms.py1639# --------------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py36 # -------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py66 # -------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py114 # -------------------------------------------------------------COMMENT
MEDIUMpandas/core/arraylike.py273# -----------------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1468 # -------------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py255 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py315 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py497 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py509 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py959 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1362 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1645 # -------------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py1932 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2082 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2124 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2175 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py2208 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py6460 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py7112 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py8350 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py8532 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py11499 # ----------------------------------------------------------------------COMMENT
MEDIUMpandas/core/generic.py4144 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py4499 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py6279 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py6412 # ----------------------------------------------------------------------STRING
MEDIUMpandas/core/generic.py12624 # ----------------------------------------------------------------------STRING
554 more matches not shown…
Unused Imports1174 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.py148CODE
LOWasv_bench/benchmarks/join_merge.py665CODE
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.py902CODE
LOWasv_bench/benchmarks/sparse.py227CODE
LOWasv_bench/benchmarks/attrs_caching.py76CODE
LOWasv_bench/benchmarks/inference.py309CODE
LOWasv_bench/benchmarks/categoricals.py337CODE
LOWasv_bench/benchmarks/stat_ops.py196CODE
LOWasv_bench/benchmarks/eval.py65CODE
LOWasv_bench/benchmarks/indexing.py655CODE
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.py741CODE
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
LOWscripts/tests/test_issue_assignment.py1CODE
LOWscripts/issue_assignment/client.py8CODE
LOWscripts/issue_assignment/__init__.py9CODE
LOWscripts/issue_assignment/core.py9CODE
LOWscripts/issue_assignment/unassign_inactive.py19CODE
LOWscripts/issue_assignment/gate.py6CODE
LOWscripts/issue_assignment/messages.py8CODE
LOWscripts/issue_assignment/label_awaiting_review.py15CODE
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
1114 more matches not shown…
Deep Nesting673 hits · 554 pts
SeverityFileLineSnippetContext
LOWweb/pandas_web.py296CODE
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.py510CODE
LOWasv_bench/benchmarks/groupby.py1192CODE
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.py91CODE
LOWscripts/validate_unwanted_patterns.py170CODE
LOWscripts/validate_unwanted_patterns.py285CODE
LOWscripts/validate_unwanted_patterns.py337CODE
LOWscripts/validate_unwanted_patterns.py419CODE
LOWscripts/validate_unwanted_patterns.py197CODE
LOWscripts/check_test_naming.py79CODE
LOWscripts/pandas_errors_documented.py24CODE
LOWscripts/validate_min_versions_in_sync.py87CODE
LOWscripts/validate_min_versions_in_sync.py131CODE
LOWscripts/issue_assignment/client.py336CODE
LOWscripts/issue_assignment/unassign_inactive.py133CODE
LOWdoc/make.py72CODE
LOWpandas/compat/_optional.py107CODE
LOWpandas/core/nanops.py268CODE
LOWpandas/core/nanops.py357CODE
LOWpandas/core/nanops.py886CODE
LOWpandas/core/nanops.py1356CODE
LOWpandas/core/nanops.py1776CODE
LOWpandas/core/nanops.py1891CODE
LOWpandas/core/nanops.py1986CODE
LOWpandas/core/nanops.py1359CODE
LOWpandas/core/missing.py84CODE
LOWpandas/core/algorithms.py112CODE
LOWpandas/core/algorithms.py525CODE
LOWpandas/core/algorithms.py1027CODE
LOWpandas/core/algorithms.py1530CODE
LOWpandas/core/algorithms.py1651CODE
LOWpandas/core/algorithms.py1899CODE
LOWpandas/core/resample.py3088CODE
LOWpandas/core/construction.py82CODE
LOWpandas/core/construction.py579CODE
LOWpandas/core/construction.py760CODE
LOWpandas/core/construction.py836CODE
LOWpandas/core/generic.py2140CODE
LOWpandas/core/generic.py3509CODE
LOWpandas/core/generic.py3799CODE
LOWpandas/core/generic.py4248CODE
LOWpandas/core/generic.py4810CODE
LOWpandas/core/generic.py5355CODE
LOWpandas/core/generic.py6283CODE
LOWpandas/core/generic.py6360CODE
LOWpandas/core/generic.py6515CODE
LOWpandas/core/generic.py7154CODE
LOWpandas/core/generic.py7616CODE
LOWpandas/core/generic.py9970CODE
LOWpandas/core/generic.py10261CODE
613 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 · 209 pts
SeverityFileLineSnippetContext
LOWasv_bench/benchmarks/groupby.py179CODE
LOWscripts/tests/test_issue_assignment.py495CODE
LOWpandas/core/nanops.py1456CODE
LOWpandas/core/nanops.py1505CODE
LOWpandas/core/nanops.py1401CODE
LOWpandas/core/missing.py508CODE
LOWpandas/core/algorithms.py469CODE
LOWpandas/core/resample.py2427CODE
LOWpandas/core/arraylike.py437CODE
LOWpandas/core/generic.py2212CODE
LOWpandas/core/generic.py2386CODE
LOWpandas/core/generic.py2751CODE
LOWpandas/core/generic.py3455CODE
LOWpandas/core/generic.py3482CODE
LOWpandas/core/generic.py3509CODE
LOWpandas/core/generic.py3874CODE
LOWpandas/core/generic.py3901CODE
LOWpandas/core/generic.py3928CODE
LOWpandas/core/generic.py4465CODE
LOWpandas/core/generic.py5255CODE
LOWpandas/core/generic.py5270CODE
LOWpandas/core/generic.py5285CODE
LOWpandas/core/generic.py5299CODE
LOWpandas/core/generic.py5355CODE
LOWpandas/core/generic.py9320CODE
LOWpandas/core/generic.py11182CODE
LOWpandas/core/generic.py12408CODE
LOWpandas/core/generic.py11771CODE
LOWpandas/core/series.py1565CODE
LOWpandas/core/series.py1581CODE
LOWpandas/core/series.py1599CODE
LOWpandas/core/series.py3119CODE
LOWpandas/core/series.py4196CODE
LOWpandas/core/series.py4211CODE
LOWpandas/core/series.py4226CODE
LOWpandas/core/series.py4240CODE
LOWpandas/core/series.py5242CODE
LOWpandas/core/series.py5395CODE
LOWpandas/core/series.py5736CODE
LOWpandas/core/series.py8992CODE
LOWpandas/core/frame.py1007CODE
LOWpandas/core/frame.py1032CODE
LOWpandas/core/frame.py1056CODE
LOWpandas/core/frame.py2484CODE
LOWpandas/core/frame.py3125CODE
LOWpandas/core/frame.py3154CODE
LOWpandas/core/frame.py3182CODE
LOWpandas/core/frame.py3406CODE
LOWpandas/core/frame.py3428CODE
LOWpandas/core/frame.py3449CODE
LOWpandas/core/frame.py6213CODE
LOWpandas/core/frame.py6716CODE
LOWpandas/core/frame.py6730CODE
LOWpandas/core/frame.py6743CODE
LOWpandas/core/frame.py8912CODE
LOWpandas/core/frame.py8927CODE
LOWpandas/core/frame.py8942CODE
LOWpandas/core/frame.py8956CODE
LOWpandas/core/frame.py10109CODE
LOWpandas/core/frame.py13493CODE
208 more matches not shown…
Modern Structural Boilerplate118 hits · 105 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.py30__all__ = [CODE
LOWpandas/compat/__init__.py144__all__ = [CODE
LOWpandas/compat/numpy/__init__.py25__all__ = [CODE
LOWpandas/core/nanops.py64def set_use_bottleneck(v: bool = True) -> None:CODE
LOWpandas/core/generic.py742 def _set_axis_nocheck(self, labels, axis: Axis, inplace: Literal[True]) -> None: ...CODE
LOWpandas/core/generic.py757 def _set_axis(self, axis: AxisInt, labels: AnyArrayLike | list) -> None:CODE
LOWpandas/core/generic.py4893 def _update_inplace(self, result) -> None:STRING
LOWpandas/core/series.py1261 def _set_labels(self, key, value) -> None:CODE
LOWpandas/core/series.py1269 def _set_values(self, key, value) -> None:CODE
LOWpandas/core/series.py1275 def _set_value(self, label, value, takeable: bool = False) -> None:CODE
LOWpandas/core/series.py200__all__ = ["Series"]CODE
LOWpandas/core/series.py1244 def _set_with_engine(self, key, value) -> None:CODE
LOWpandas/core/series.py1250 def _set_with(self, key, value) -> None:CODE
LOWpandas/core/api.py84__all__ = [CODE
LOWpandas/core/frame.py4632 def _setitem_slice(self, key: slice, value) -> None:STRING
LOWpandas/core/frame.py4638 def _setitem_array(self, key, value) -> None:STRING
LOWpandas/core/frame.py4720 def _setitem_frame(self, key, value) -> None:STRING
LOWpandas/core/frame.py4749 def _set_item_frame_value(self, key, value: DataFrame) -> None:STRING
LOWpandas/core/frame.py4842 def _set_item(self, key, value) -> None:STRING
LOWpandas/core/col.py432__all__ = ["Expression", "col"]CODE
LOWpandas/core/indexing.py2516 def _setitem_new_column(self, indexer, key, value, name: str) -> None:CODE
LOWpandas/core/indexing.py2581 def _setitem_with_indexer(self, indexer, value, name: str = "iloc") -> None:CODE
LOWpandas/core/indexing.py2747 def _setitem_with_indexer_2d_value(self, indexer, value) -> None:CODE
LOWpandas/core/indexing.py2840 def _setitem_single_column(self, loc: int, value, plane_indexer) -> None:CODE
LOWpandas/core/indexing.py2904 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.py1549__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.py1916__all__ = [CODE
LOWpandas/core/groupby/__init__.py9__all__ = [CODE
LOWpandas/core/internals/__init__.py8__all__ = [CODE
LOWpandas/core/internals/blocks.py1030 def set_inplace(self, locs, values: ArrayLike, copy: bool = False) -> None:CODE
LOWpandas/core/internals/blocks.py2100 def set_inplace(self, locs, values: ArrayLike, copy: bool = False) -> None:CODE
LOWpandas/core/internals/managers.py272 def set_axis(self, axis: AxisInt, new_labels: Index) -> None:CODE
LOWpandas/core/internals/managers.py2301 def set_values(self, values: ArrayLike) -> None:CODE
LOWpandas/core/computation/check.py8__all__ = ["NUMEXPR_INSTALLED"]CODE
LOWpandas/core/computation/expressions.py46def set_use_numexpr(v: bool = True) -> None:CODE
LOWpandas/core/computation/expressions.py59def set_numexpr_threads(n=None) -> None:CODE
LOWpandas/core/computation/expressions.py266def 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.py957 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.py1722 def _set_names(self, names, *, level=None) -> None:CODE
LOWpandas/core/indexes/api.py39__all__ = [CODE
LOWpandas/core/indexes/base.py223__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
58 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.py1377 # Create the seriesCOMMENT
MEDIUMpandas/core/apply.py1577 # 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.py117 # 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.py370 # Create the parser.COMMENT
MEDIUMpandas/io/excel/_base.py1187 # 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.py402 # 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.py348 # 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.py780 # 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 Block88 hits · 76 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 pytest_target: "pandas"COMMENT
LOWdoc/source/conf.py1#COMMENT
LOWdoc/source/conf.py481# The full version, including alpha/beta/rc tags.COMMENT
LOWdoc/source/conf.py501# The reST default role (used for this markup: `text`) to use for allCOMMENT
LOWdoc/source/conf.py601COMMENT
LOWpandas/core/nanops.py161 if dtype != object and not needs_i8_conversion(dtype):COMMENT
LOWpandas/core/algorithms.py561 if (COMMENT
LOWpandas/core/algorithms.py621 # as "f")COMMENT
LOWpandas/core/arraylike.py401 return resultCOMMENT
LOWpandas/core/arraylike.py541 if "axis" not in kwargs:COMMENT
LOWpandas/core/frame.py5701 # An ExtensionDtype subclass matches every instance ofCOMMENT
LOWpandas/core/indexing.py1281 elif isinstance(self.obj, ABCSeries) and any(COMMENT
LOWpandas/core/indexing.py2861COMMENT
LOWpandas/core/apply.py2141COMMENT
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/dtypes/concat.py101 elif axis == 0: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/internals/blocks.py901 and id(res_blk) in self_blk_idsCOMMENT
LOWpandas/core/arrays/timedeltas.py521 "integers instead"COMMENT
LOWpandas/core/arrays/timedeltas.py921 result = floor_s + residual / ppsCOMMENT
LOWpandas/core/arrays/base.py541 -------COMMENT
LOWpandas/core/indexes/multi.py4261 # KeyError it can be ambiguous if this is a label or sequenceCOMMENT
LOWpandas/core/indexes/multi.py4321 if (COMMENT
LOWpandas/core/indexes/multi.py4341 # _get_level_indexer.COMMENT
LOWpandas/core/indexes/multi.py4361 # a missing label whenever the level carries an NA entryCOMMENT
LOWpandas/core/indexes/datetimelike.py801 if freq != inferred:COMMENT
LOWpandas/util/version/__init__.py401 dev: tuple[str, int] | None,COMMENT
LOWpandas/io/pytables.py6081 name, converted, "date", _tables().Time32Col(), index_name=index_nameCOMMENT
LOWpandas/io/parsers/readers.py841 # chunk workers would fail on the extra field; bail out up front.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.py1181 ... mode="a",COMMENT
LOWpandas/tests/tools/test_to_datetime.py3561 # bug fix in 2.5.2COMMENT
LOWpandas/tests/tools/test_to_datetime.py4561COMMENT
LOWpandas/tests/extension/base/ops.py41 # In _check_op we check that the result of a pointwise operationCOMMENT
LOWpandas/tests/io/test_parquet.py1201 tm.assert_frame_equal(result, expected)COMMENT
LOWpandas/tests/io/parser/test_c_parser_only.py341COMMENT
LOWpandas/tests/io/parser/test_c_parser_only.py421COMMENT
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/sas/test_sas7bdat.py561 [COMMENT
LOWpandas/tests/io/pytables/test_compat.py101COMMENT
LOWpandas/tests/frame/methods/test_reindex.py201 # cCOMMENT
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 )COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py321 # 3: 4COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py381 # 3: 7COMMENT
LOWpandas/tests/indexes/multi/test_indexing.py481 # 2: 2 1COMMENT
LOWpandas/tests/indexes/multi/test_partial_indexing.py21 # c 5COMMENT
28 more matches not shown…
Excessive Try-Catch Wrapping60 hits · 60 pts
SeverityFileLineSnippetContext
LOWdoc/make.py214 except Exception:CODE
LOWpandas/core/series.py6744 except Exception as error:CODE
LOWpandas/core/frame.py14991 except Exception:STRING
LOWpandas/core/indexing.py3776 except Exception:CODE
LOWpandas/core/apply.py392 except Exception as err:CODE
LOWpandas/core/apply.py447 except Exception:CODE
LOWpandas/core/apply.py1185 except Exception:CODE
LOWpandas/core/groupby/generic.py2891 except Exception:CODE
LOWpandas/core/groupby/groupby.py1530 except Exception as err:CODE
LOWpandas/core/arrays/_arrow_string_mixins.py75 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.py756 except Exception:CODE
LOWpandas/io/sql.py2181 except Exception:CODE
LOWpandas/io/sql.py2776 except Exception:CODE
LOWpandas/io/stata.py2933 except Exception as exc:CODE
MEDIUMpandas/io/parsers/readers.py2817def __next__(self) -> DataFrame:CODE
LOWpandas/io/parsers/readers.py735 except Exception:CODE
LOWpandas/io/parsers/readers.py1086 except Exception:CODE
LOWpandas/io/parsers/readers.py2869 except Exception:STRING
LOWpandas/io/parsers/readers.py2912 except Exception:STRING
LOWpandas/io/parsers/readers.py2926 except Exception:STRING
LOWpandas/io/excel/_base.py588 except Exception:CODE
LOWpandas/io/excel/_base.py983 except Exception as err:CODE
LOWpandas/io/json/_json.py1423 except Exception as ex:CODE
LOWpandas/io/json/_json.py1670 except Exception:CODE
LOWpandas/io/sas/sas7bdat.py362 except Exception:CODE
LOWpandas/io/sas/sas7bdat.py635 except Exception:CODE
LOWpandas/io/sas/sas7bdat.py897 except Exception:CODE
LOWpandas/io/sas/sas_xport.py277 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/io/test_sql.py616 except Exception as err:STRING
MEDIUMpandas/tests/io/parser/test_parallel_read.py1559def tracked(*args, **kwargs):CODE
LOWpandas/tests/io/parser/test_parallel_read.py1562 except Exception:CODE
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.py44 except Exception as err:CODE
LOWpandas/tests/tslibs/test_conversion.py49 except Exception as err:CODE
LOWpandas/plotting/_matplotlib/converter.py355 except Exception:CODE
LOWpandas/plotting/_matplotlib/converter.py379 except Exception:CODE
LOWpandas/plotting/_matplotlib/converter.py493 except Exception: # pragma: no coverCODE
MEDIUMpandas/plotting/_matplotlib/converter.py352def try_parse(values):CODE
LOWpandas/plotting/_matplotlib/core.py1777 except Exception:CODE
AI Slop Vocabulary34 hits · 58 pts
SeverityFileLineSnippetContext
LOWpandas/core/missing.py571 # both directions... just use _interp_limitCOMMENT
LOWpandas/core/missing.py1155 # just use forwardsCOMMENT
MEDIUMpandas/core/generic.py1650 # operations should utilize/extend these methods when possible so that weCOMMENT
MEDIUMpandas/core/generic.py6657 # robust in case weCOMMENT
LOWpandas/core/generic.py4407 # so just return them (GH 6394)STRING
LOWpandas/core/frame.py4633 # NB: we can't just use self.loc[key] = value because thatSTRING
LOWpandas/core/apply.py1164 # so just return a copy of the existing objectCOMMENT
LOWpandas/core/reshape/merge.py1360 # make sure to just use the right values or vice-versaCOMMENT
LOWpandas/core/reshape/reshape.py442 # Otherwise, we just use each level item exactly once:COMMENT
LOWpandas/core/strings/accessor.py4879 # 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.py824 # 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.py5408 # TODO(ExtensionIndex): remove special-case, just use self._valuesCOMMENT
LOWpandas/io/stata.py2988 # ds_format - just use 114COMMENT
LOWpandas/io/parsers/arrow_parser_wrapper.py173 # just set to pyarrow default of NoneCOMMENT
LOWpandas/io/json/_normalize.py42 # 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.py170 # the _cast_pointwise_result method should be robust to any input,COMMENT
LOWpandas/tests/io/test_stata.py198 # TODO(GH#55564): just pass M8[s] to the constructorCOMMENT
LOWpandas/tests/frame/test_query_eval.py348 # list equality (really just set membership)COMMENT
LOWpandas/tests/frame/test_query_eval.py395 # list equality (really just set membership)COMMENT
LOWpandas/tests/frame/test_query_eval.py436 # list equality (really just set membership)COMMENT
MEDIUMpandas/tests/dtypes/test_inference.py906 # 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.py317 # sufficiently robustCOMMENT
LOWpandas/tests/tslibs/test_parsing.py86 # 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
Redundant / Tautological Comments27 hits · 37 pts
SeverityFileLineSnippetContext
LOWpandas/core/generic.py2110 # Check if both conversions can be done without a copyCOMMENT
LOWpandas/core/generic.py4860 # Set level to zero in case of MultiIndex and label is string,STRING
LOWpandas/core/generic.py4866 # Check if label doesn't exist along axisSTRING
LOWpandas/core/reshape/merge.py1805 # Check if we are trying to merge on obviouslyCOMMENT
LOWpandas/core/internals/managers.py1321 # 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.py3227 # 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.py517 # Check if elements of array are list-likeCOMMENT
LOWpandas/core/indexes/multi.py522 # Check if lengths of all arrays are equal or not,COMMENT
LOWpandas/core/indexes/multi.py3895 # 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.py932 # Check if we have an empty datasetCOMMENT
LOWpandas/tests/reshape/merge/test_merge.py1089 # 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.py237 # Check if values matchCOMMENT
LOWpandas/tests/io/excel/test_readers.py241 # Check if types matchCOMMENT
LOWpandas/tests/io/excel/test_writers.py1279 # Read file without comment arg.COMMENT
LOWpandas/tests/io/excel/test_writers.py1299 # Read file with default and explicit comment=NoneCOMMENT
LOWpandas/tests/io/sas/test_sas7bdat.py369 # 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.py857 # 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.yml432 # To unfreeze, comment out the ``if: false`` condition, and make sure you updateCOMMENT
MEDIUM.github/workflows/unit-tests.yml442 # Feel free to modify this comment as necessary.COMMENT
LOWpandas/core/reshape/merge.py1360 # make sure to just use the right values or vice-versaCOMMENT
LOWpandas/io/pytables.py5132 # 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.py552 # 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.py181 # 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.py1211 # 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 · 0 pts
SeverityFileLineSnippetContext
LOWpandas/tests/io/json/test_ujson.py86 def helper(expected_output, **encode_kwargs):CODE