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.3 Moderate AI signal View on GitHub
24.3
Adjusted Score
24.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
48,872
Stars
Python
Language
701,653
Lines of Code
1752
Files
14038
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 645MEDIUM 631LOW 12761

Pattern Findings

14038 matches across 17 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers10756 hits · 9786 pts
SeverityFileLineSnippet
LOWweb/tests/test_pandas_web.py83def test_web_preprocessor_creates_releases(mock_response, context) -> None:
LOWasv_bench/benchmarks/arithmetic.py54 def time_frame_op_with_scalar(self, dtype, scalar, op):
LOWasv_bench/benchmarks/arithmetic.py68 def time_frame_op_with_fill_value_no_nas(self):
LOWasv_bench/benchmarks/arithmetic.py71 def time_series_op_with_fill_value_no_nas(self):
LOWasv_bench/benchmarks/arithmetic.py228 def time_frame_float_div_by_zero(self):
LOWasv_bench/benchmarks/arithmetic.py231 def time_frame_float_floor_by_zero(self):
LOWasv_bench/benchmarks/arithmetic.py234 def time_frame_int_div_by_zero(self):
LOWasv_bench/benchmarks/arithmetic.py270 def time_series_timestamp_compare(self, tz):
LOWasv_bench/benchmarks/arithmetic.py273 def time_series_timestamp_different_reso_compare(self, tz):
LOWasv_bench/benchmarks/arithmetic.py276 def time_timestamp_series_compare(self, tz):
LOWasv_bench/benchmarks/arithmetic.py282 def time_timestamp_ops_diff_with_shift(self, tz):
LOWasv_bench/benchmarks/arithmetic.py384 def time_timedelta_plus_datetime(self, df):
LOWasv_bench/benchmarks/arithmetic.py475 def time_binary_op_multiindex(self, func):
LOWasv_bench/benchmarks/frame_ctor.py53 def time_nested_dict_index_columns(self):
LOWasv_bench/benchmarks/frame_ctor.py60 def time_dict_of_categoricals(self):
LOWasv_bench/benchmarks/frame_ctor.py84 def time_dict_with_timestamp_offsets(self, offset):
LOWasv_bench/benchmarks/frame_ctor.py100 def time_frame_from_records_generator(self, nrows):
LOWasv_bench/benchmarks/frame_ctor.py176 def time_frame_from_arrays_float(self):
LOWasv_bench/benchmarks/frame_ctor.py184 def time_frame_from_arrays_int(self):
LOWasv_bench/benchmarks/frame_ctor.py192 def time_frame_from_arrays_sparse(self):
LOWasv_bench/benchmarks/gil.py196 def time_datetime_field_daysinmonth(self):
LOWasv_bench/benchmarks/gil.py203 def time_datetime_field_normalize(self):
LOWasv_bench/benchmarks/ctors.py100 def time_index_from_array_string(self):
LOWasv_bench/benchmarks/ctors.py103 def time_index_from_array_floats(self):
LOWasv_bench/benchmarks/ctors.py109 def time_dtindex_from_index_with_series(self):
LOWasv_bench/benchmarks/ctors.py118 def time_multiindex_from_iterables(self):
LOWasv_bench/benchmarks/ctors.py132 def time_from_list_of_timestamps(self):
LOWasv_bench/benchmarks/ctors.py138 def time_from_list_of_datetimes(self):
LOWasv_bench/benchmarks/join_merge.py154 def time_join_dataframe_index_multi(self, sort):
LOWasv_bench/benchmarks/join_merge.py157 def time_join_dataframe_index_single_key_bigger(self, sort):
LOWasv_bench/benchmarks/join_merge.py160 def time_join_dataframe_index_single_key_small(self, sort):
LOWasv_bench/benchmarks/join_merge.py163 def time_join_dataframe_index_shuffle_key_bigger_sort(self, sort):
LOWasv_bench/benchmarks/join_merge.py166 def time_join_dataframes_cross(self, sort):
LOWasv_bench/benchmarks/join_merge.py192 def time_join_multiindex_subset(self):
LOWasv_bench/benchmarks/join_merge.py202 def time_inner_join_left_empty(self):
LOWasv_bench/benchmarks/join_merge.py205 def time_inner_join_right_empty(self):
LOWasv_bench/benchmarks/join_merge.py263 def time_merge_dataframe_integer_key(self, sort):
LOWasv_bench/benchmarks/join_merge.py266 def time_merge_dataframe_empty_right(self, sort):
LOWasv_bench/benchmarks/join_merge.py269 def time_merge_dataframe_empty_left(self, sort):
LOWasv_bench/benchmarks/join_merge.py272 def time_merge_dataframes_cross(self, sort):
LOWasv_bench/benchmarks/join_merge.py618 def time_left_join_sorted_baseline(self, n):
LOWasv_bench/benchmarks/join_merge.py621 def time_left_join_unsorted_left(self, n):
LOWasv_bench/benchmarks/join_merge.py624 def time_right_join_unsorted_right(self, n):
LOWasv_bench/benchmarks/join_merge.py627 def time_left_join_zero_match_unsorted_left(self, n):
LOWasv_bench/benchmarks/join_merge.py180 def time_left_outer_join_index(self):
LOWasv_bench/benchmarks/join_merge.py222 def time_join_non_unique_equal(self):
LOWasv_bench/benchmarks/join_merge.py566 def time_merge_sorted_multiindex(self, dtypes, how):
LOWasv_bench/benchmarks/join_merge.py586 def time_series_align_left_monotonic(self):
LOWasv_bench/benchmarks/index_object.py60 def time_datetime_difference_disjoint(self):
LOWasv_bench/benchmarks/index_object.py69 def time_union_with_duplicates(self):
LOWasv_bench/benchmarks/index_object.py119 def time_non_object_equals_multiindex(self):
LOWasv_bench/benchmarks/index_object.py144 def time_append_range_list_same(self):
LOWasv_bench/benchmarks/index_object.py198 def time_get_loc_non_unique_sorted(self, dtype):
LOWasv_bench/benchmarks/index_object.py238 def time_intersection_one_duplicate(self, N):
LOWasv_bench/benchmarks/index_object.py241 def time_intersection_both_duplicate(self, N):
LOWasv_bench/benchmarks/plotting.py158 def time_get_plot_backend_fallback(self):
LOWasv_bench/benchmarks/reshape.py43 def time_reshape_pivot_time_series(self):
LOWasv_bench/benchmarks/reshape.py219 def time_pivot_table_categorical(self):
LOWasv_bench/benchmarks/reshape.py224 def time_pivot_table_categorical_observed(self):
LOWasv_bench/benchmarks/reshape.py234 def time_pivot_table_margins_only_column(self):
10696 more matches not shown…
Cross-Language Confusion508 hits · 3020 pts
SeverityFileLineSnippet
HIGHasv_bench/benchmarks/index_object.py120 self.idx_non_object.equals(self.mi_large_slow)
HIGHasv_bench/benchmarks/frame_methods.py570 self.float_df.equals(self.float_df)
HIGHasv_bench/benchmarks/frame_methods.py573 self.float_df.equals(self.float_df_nan)
HIGHasv_bench/benchmarks/frame_methods.py576 self.nonunique_cols.equals(self.nonunique_cols)
HIGHasv_bench/benchmarks/frame_methods.py579 self.nonunique_cols.equals(self.nonunique_cols_nan)
HIGHasv_bench/benchmarks/frame_methods.py582 self.object_df.equals(self.object_df)
HIGHasv_bench/benchmarks/frame_methods.py585 self.object_df.equals(self.object_df_nan)
HIGHasv_bench/benchmarks/multiindex_object.py236 self.mi.equals(self.mi_deepcopy)
HIGHasv_bench/benchmarks/multiindex_object.py239 self.mi.equals(self.idx_non_object)
HIGHpandas/core/algorithms.py930 and idx.equals(values)
HIGHpandas/core/resample.py2189 and obj.index.equals(res_index)
HIGHpandas/core/generic.py1455 return self._mgr.equals(other._mgr)
HIGHpandas/core/generic.py9971 if (axis is None or axis == 0) and not self.index.equals(other.index):
HIGHpandas/core/generic.py9979 and not self.columns.equals(other.columns)
HIGHpandas/core/generic.py10021 if self.index.equals(other.index):
HIGHpandas/core/generic.py10043 if not join_index.equals(other.index):
HIGHpandas/core/generic.py12532 If all elements in Series are NA/null, returns None.
HIGHpandas/core/generic.py12566 If all elements in DataFrame are NA/null, returns None.
HIGHpandas/core/generic.py12619 If all elements in Series are NA/null, returns None.
HIGHpandas/core/generic.py12653 If all elements in DataFrame are NA/null, returns None.
HIGHpandas/core/generic.py1436 >>> df.equals(different_data_type)
HIGHpandas/core/generic.py1443 >>> df_nan1.equals(df_nan2)
HIGHpandas/core/generic.py1449 >>> df_nan1.equals(df_nan3)
HIGHpandas/core/generic.py1414 >>> df.equals(exactly_equal)
HIGHpandas/core/generic.py1425 >>> df.equals(different_column_type)
HIGHpandas/core/series.py454 elif not data.index.equals(index) or copy:
HIGHpandas/core/series.py3740 if self.index.equals(other.index):
HIGHpandas/core/series.py7165 if not left.index.equals(right.index):
HIGHpandas/core/series.py7203 if not self.index.equals(other.index):
HIGHpandas/core/frame.py4312 if isinstance(key, Series) and not key.index.equals(self.index):
HIGHpandas/core/frame.py4732 if len(cols_droplevel) and not cols_droplevel.equals(value.columns):
HIGHpandas/core/frame.py4735 if not cols_droplevel.equals(cols):
HIGHpandas/core/frame.py9156 assert self.index.equals(right.index)
HIGHpandas/core/frame.py9157 assert self.columns.equals(right.columns)
HIGHpandas/core/frame.py9170 assert right.index.equals(self.columns)
HIGHpandas/core/frame.py9182 assert right.index.equals(self.index)
HIGHpandas/core/frame.py9286 and not self.columns.equals(right.columns)
HIGHpandas/core/frame.py19162 if value.index.equals(index) or not len(index):
HIGHpandas/core/indexing.py3052 if not len(new_ix) or ser.index.equals(new_ix):
HIGHpandas/core/indexing.py3061 if ser.index.equals(ax) or not len(ax):
HIGHpandas/core/indexing.py3071 if ser.index.equals(ax):
HIGHpandas/core/indexing.py3079 if ser.index.equals(ax):
HIGHpandas/core/indexing.py2720 elif not unique_cols and value.columns.equals(self.obj.columns):
HIGHpandas/core/indexing.py3107 if df.index.equals(idx) and df.columns.equals(cols):
HIGHpandas/core/indexing.py3115 if df.index.equals(ax):
HIGHpandas/core/indexing.py3458 if isinstance(key, ABCSeries) and not key.index.equals(index):
HIGHpandas/core/apply.py366 if not isinstance(result, (ABCSeries, ABCDataFrame)) or not result.index.equals(
HIGHpandas/core/reshape/concat.py491 if not no_sort_result_index.equals(orig):
HIGHpandas/core/reshape/concat.py653 if not new_labels.equals(obj_labels):
HIGHpandas/core/reshape/concat.py920 if isinstance(hlevel, Index) and hlevel.equals(level):
HIGHpandas/core/reshape/reshape.py939 if not result.columns.equals(desired_columns):
HIGHpandas/core/reshape/reshape.py1136 if not result.columns.equals(desired_columns):
HIGHpandas/core/strings/accessor.py646 if any(not data.index.equals(x.index) for x in others):
HIGHpandas/core/interchange/dataframe_protocol.py267 - Data types not included: complex, Arrow-style null, binary, decimal,
HIGHpandas/core/interchange/column.py226 null, value = _NULL_DESCRIPTION[kind]
HIGHpandas/core/interchange/column.py230 return null, value
HIGHpandas/core/interchange/column.py390 null, invalid = self.describe_null
HIGHpandas/core/interchange/column.py434 msg = f"{_NO_VALIDITY_BUFFER[null]} so does not have a separate mask"
HIGHpandas/core/dtypes/missing.py570 return left.equals(right)
HIGHpandas/core/dtypes/missing.py713 # a block is NOT null, chunks should help in such cases.
448 more matches not shown…
Decorative Section Separators586 hits · 1670 pts
SeverityFileLineSnippet
MEDIUMAUTHORS.md38#-----------------------------------------------------------------------------
MEDIUMAUTHORS.md45#-----------------------------------------------------------------------------
MEDIUMdoc/source/conf.py29# ---------------------------------------------------------------------------
MEDIUMdoc/source/conf.py37# ---------------------------------------------------------------------------
MEDIUMpandas/conftest.py624# ----------------------------------------------------------------
MEDIUMpandas/conftest.py626# ----------------------------------------------------------------
MEDIUMpandas/conftest.py972# ----------------------------------------------------------------
MEDIUMpandas/conftest.py974# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1228# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1230# ----------------------------------------------------------------
MEDIUMpandas/conftest.py98# ----------------------------------------------------------------
MEDIUMpandas/conftest.py100# ----------------------------------------------------------------
MEDIUMpandas/conftest.py272# ----------------------------------------------------------------
MEDIUMpandas/conftest.py274# ----------------------------------------------------------------
MEDIUMpandas/conftest.py296# ----------------------------------------------------------------
MEDIUMpandas/conftest.py298# ----------------------------------------------------------------
MEDIUMpandas/conftest.py505# ----------------------------------------------------------------
MEDIUMpandas/conftest.py507# ----------------------------------------------------------------
MEDIUMpandas/conftest.py543# ----------------------------------------------------------------
MEDIUMpandas/conftest.py545# ----------------------------------------------------------------
MEDIUMpandas/conftest.py856# ----------------------------------------------------------------
MEDIUMpandas/conftest.py858# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1024# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1026# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1047# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1049# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1273# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1275# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1352# ----------------------------------------------------------------
MEDIUMpandas/conftest.py1354# ----------------------------------------------------------------
MEDIUMpandas/conftest.py2030# ----------------------------------------------------------------
MEDIUMpandas/conftest.py2032# ----------------------------------------------------------------
MEDIUMpandas/core/algorithms.py1446# --------------------------------------------------------------------
MEDIUMpandas/core/arraylike.py37 # -------------------------------------------------------------
MEDIUMpandas/core/arraylike.py67 # -------------------------------------------------------------
MEDIUMpandas/core/arraylike.py97 # -------------------------------------------------------------
MEDIUMpandas/core/arraylike.py256# -----------------------------------------------------------------------------
MEDIUMpandas/core/generic.py1457 # -------------------------------------------------------------------------
MEDIUMpandas/core/generic.py241 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py301 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py474 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py486 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py948 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py1351 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py1589 # -------------------------------------------------------------------------
MEDIUMpandas/core/generic.py1876 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py2026 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py2068 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py2119 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py2152 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py6345 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py6935 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py8150 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py8332 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py11280 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py4037 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py4385 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py6164 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py6297 # ----------------------------------------------------------------------
MEDIUMpandas/core/generic.py12402 # ----------------------------------------------------------------------
526 more matches not shown…
Unused Imports1165 hits · 1001 pts
SeverityFileLineSnippet
LOWci/import_pandas_check.py3
LOWasv_bench/benchmarks/arithmetic.py479
LOWasv_bench/benchmarks/arithmetic.py23
LOWasv_bench/benchmarks/frame_ctor.py201
LOWasv_bench/benchmarks/gil.py327
LOWasv_bench/benchmarks/algorithms.py227
LOWasv_bench/benchmarks/ctors.py145
LOWasv_bench/benchmarks/join_merge.py631
LOWasv_bench/benchmarks/index_object.py262
LOWasv_bench/benchmarks/plotting.py164
LOWasv_bench/benchmarks/reshape.py338
LOWasv_bench/benchmarks/dtypes.py129
LOWasv_bench/benchmarks/rolling.py382
LOWasv_bench/benchmarks/frame_methods.py892
LOWasv_bench/benchmarks/sparse.py227
LOWasv_bench/benchmarks/attrs_caching.py50
LOWasv_bench/benchmarks/inference.py302
LOWasv_bench/benchmarks/categoricals.py337
LOWasv_bench/benchmarks/stat_ops.py168
LOWasv_bench/benchmarks/eval.py65
LOWasv_bench/benchmarks/indexing.py619
LOWasv_bench/benchmarks/pandas_vb_common.py19
LOWasv_bench/benchmarks/pandas_vb_common.py21
LOWasv_bench/benchmarks/multiindex_object.py434
LOWasv_bench/benchmarks/reindex.py148
LOWasv_bench/benchmarks/series_methods.py427
LOWasv_bench/benchmarks/timeseries.py297
LOWasv_bench/benchmarks/replace.py76
LOWasv_bench/benchmarks/io/hdf.py143
LOWasv_bench/benchmarks/io/excel.py108
LOWasv_bench/benchmarks/io/csv.py645
LOWasv_bench/benchmarks/io/pickle.py39
LOWasv_bench/benchmarks/io/sql.py173
LOWasv_bench/benchmarks/tslibs/fields.py82
LOWscripts/validate_exception_location.py22
LOWscripts/check_test_naming.py12
LOWscripts/validate_rst_title_capitalization.py15
LOWscripts/pandas_errors_documented.py10
LOWscripts/sort_whatsnew_note.py27
LOWscripts/validate_min_versions_in_sync.py16
LOWpandas/conftest.py21
LOWpandas/_typing.py1
LOWpandas/_typing.py3
LOWpandas/_typing.py43
LOWpandas/_typing.py43
LOWpandas/_typing.py43
LOWpandas/_typing.py43
LOWpandas/_typing.py49
LOWpandas/_typing.py51
LOWpandas/_typing.py53
LOWpandas/_typing.py53
LOWpandas/_typing.py53
LOWpandas/_typing.py53
LOWpandas/_typing.py59
LOWpandas/_typing.py59
LOWpandas/_typing.py63
LOWpandas/_typing.py64
LOWpandas/_typing.py65
LOWpandas/_typing.py66
LOWpandas/_typing.py66
1105 more matches not shown…
Cross-File Repetition136 hits · 680 pts
SeverityFileLineSnippet
HIGHpandas/core/resample.py0sub-classes to define. return a sliced object. parameters ---------- key : string / list of selections ndim : {1, 2} req
HIGHpandas/core/resample.py0sub-classes to define. return a sliced object. parameters ---------- key : string / list of selections ndim : {1, 2} req
HIGHpandas/core/frame.py0sub-classes to define. return a sliced object. parameters ---------- key : string / list of selections ndim : {1, 2} req
HIGHpandas/core/generic.py0detect existing (non-missing) values. return a boolean same-sized object indicating if the values are not na. non-missin
HIGHpandas/core/generic.py0detect existing (non-missing) values. return a boolean same-sized object indicating if the values are not na. non-missin
HIGHpandas/core/frame.py0detect existing (non-missing) values. return a boolean same-sized object indicating if the values are not na. non-missin
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/indexers/objects.py0computes the bounds of a window. parameters ---------- num_values : int, default 0 number of values that will be aggrega
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/dtypes.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/dtypes/base.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/arrays/floating.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/arrays/string_.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/arrays/boolean.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/arrays/integer.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/tests/extension/decimal/array.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/tests/extension/array_with_attr/array.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/tests/extension/json/array.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/tests/extension/list/array.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/tests/arrays/test_array.py0return the array type associated with this dtype. returns ------- type
HIGHpandas/core/window/ewm.py0return an indexer class that will compute the window start and end bounds
HIGHpandas/core/window/rolling.py0return an indexer class that will compute the window start and end bounds
HIGHpandas/core/window/expanding.py0return an indexer class that will compute the window start and end bounds
HIGHpandas/core/window/ewm.py0return an indexer class that will compute the window start and end bounds returns ------- groupbyindexer
HIGHpandas/core/window/rolling.py0return an indexer class that will compute the window start and end bounds returns ------- groupbyindexer
HIGHpandas/core/window/expanding.py0return an indexer class that will compute the window start and end bounds returns ------- groupbyindexer
HIGHpandas/core/arrays/string_.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such t
HIGHpandas/core/arrays/masked.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such t
HIGHpandas/core/arrays/base.py0find indices where elements should be inserted to maintain order. find the indices into a sorted array `self` (a) such t
HIGHpandas/core/indexes/interval.py0fastpath for __getitem__ when we know we have a slice.
HIGHpandas/core/indexes/range.py0fastpath for __getitem__ when we know we have a slice.
HIGHpandas/core/indexes/multi.py0fastpath for __getitem__ when we know we have a slice.
HIGHpandas/core/indexes/base.py0fastpath for __getitem__ when we know we have a slice.
HIGHpandas/core/indexes/timedeltas.py0can we compare values of the given dtype to our own?
HIGHpandas/core/indexes/datetimes.py0can we compare values of the given dtype to our own?
HIGHpandas/core/indexes/period.py0can we compare values of the given dtype to our own?
HIGHpandas/core/indexes/base.py0can we compare values of the given dtype to our own?
HIGHpandas/core/indexes/period.py0shift index by desired number of time frequency increments. this method is for shifting the values of datetime-like inde
HIGHpandas/core/indexes/datetimelike.py0shift index by desired number of time frequency increments. this method is for shifting the values of datetime-like inde
HIGHpandas/core/indexes/datetimelike.py0shift index by desired number of time frequency increments. this method is for shifting the values of datetime-like inde
HIGHpandas/core/indexes/datetimelike.py0return a boolean indicating whether the provided key is in the index. parameters ---------- key : label the key to check
HIGHpandas/core/indexes/base.py0return a boolean indicating whether the provided key is in the index. parameters ---------- key : label the key to check
HIGHpandas/core/indexes/category.py0return a boolean indicating whether the provided key is in the index. parameters ---------- key : label the key to check
HIGHpandas/io/formats/info.py0add lines to the info table, pertaining to non-empty dataframe.
HIGHpandas/io/formats/info.py0add lines to the info table, pertaining to non-empty dataframe.
HIGHpandas/io/formats/info.py0add lines to the info table, pertaining to non-empty dataframe.
HIGHpandas/io/formats/info.py0iterator with string representation of body data with counts.
HIGHpandas/io/formats/info.py0iterator with string representation of body data with counts.
76 more matches not shown…
Deep Nesting646 hits · 554 pts
SeverityFileLineSnippet
LOWweb/pandas_web.py273
LOWasv_bench/benchmarks/algorithms.py15
LOWasv_bench/benchmarks/algorithms.py98
LOWasv_bench/benchmarks/join_merge.py88
LOWasv_bench/benchmarks/index_cached_properties.py24
LOWasv_bench/benchmarks/attrs_caching.py28
LOWasv_bench/benchmarks/array.py119
LOWasv_bench/benchmarks/groupby.py490
LOWasv_bench/benchmarks/series_methods.py90
LOWasv_bench/benchmarks/series_methods.py354
LOWasv_bench/benchmarks/algos/isin.py29
LOWasv_bench/benchmarks/algos/isin.py241
LOWscripts/validate_unwanted_patterns.py90
LOWscripts/validate_unwanted_patterns.py169
LOWscripts/validate_unwanted_patterns.py284
LOWscripts/validate_unwanted_patterns.py336
LOWscripts/validate_unwanted_patterns.py196
LOWscripts/check_test_naming.py79
LOWscripts/pandas_errors_documented.py24
LOWscripts/validate_min_versions_in_sync.py87
LOWscripts/validate_min_versions_in_sync.py129
LOWscripts/validate_min_versions_in_sync.py193
LOWdoc/make.py72
LOWpandas/compat/_optional.py107
LOWpandas/core/nanops.py259
LOWpandas/core/nanops.py348
LOWpandas/core/nanops.py736
LOWpandas/core/nanops.py1447
LOWpandas/core/nanops.py1562
LOWpandas/core/nanops.py1622
LOWpandas/core/missing.py83
LOWpandas/core/algorithms.py112
LOWpandas/core/algorithms.py506
LOWpandas/core/algorithms.py856
LOWpandas/core/algorithms.py1335
LOWpandas/core/algorithms.py1652
LOWpandas/core/resample.py3058
LOWpandas/core/construction.py77
LOWpandas/core/construction.py555
LOWpandas/core/construction.py736
LOWpandas/core/construction.py812
LOWpandas/core/generic.py2084
LOWpandas/core/generic.py3404
LOWpandas/core/generic.py3692
LOWpandas/core/generic.py4696
LOWpandas/core/generic.py5241
LOWpandas/core/generic.py6168
LOWpandas/core/generic.py6245
LOWpandas/core/generic.py6400
LOWpandas/core/generic.py6977
LOWpandas/core/generic.py7436
LOWpandas/core/generic.py9774
LOWpandas/core/generic.py10065
LOWpandas/core/series.py352
LOWpandas/core/series.py1382
LOWpandas/core/series.py6397
LOWpandas/core/series.py6488
LOWpandas/core/series.py7156
LOWpandas/core/series.py7275
LOWpandas/core/sorting.py309
586 more matches not shown…
Self-Referential Comments30 hits · 94 pts
SeverityFileLineSnippet
MEDIUMscripts/generate_pip_deps_from_conda.py106 f"# This file is auto-generated from {conda_path.name}, do not modify.\n"
MEDIUMdoc/source/conf.py4# This file is execfile()d with the current directory set to its containing
MEDIUMpandas/core/apply.py1331 # Create the series
MEDIUMpandas/core/apply.py1470 # Create the series
MEDIUMpandas/core/interchange/from_dataframe.py382 # Create the string
MEDIUMpandas/core/interchange/column.py370 # Define the dtype for the returned buffer
MEDIUMpandas/core/interchange/column.py428 # Define the dtype of the returned buffer
MEDIUMpandas/core/dtypes/concat.py104 # Creating an empty array directly is tempting, but the winnings would be
MEDIUMpandas/core/computation/parsing.py51 # Create a dict with the special characters and their replacement string.
MEDIUMpandas/core/_numba/extensions.py300 # Create an empty typed dict in numba for the hashmap for indexing
MEDIUMpandas/core/arrays/datetimes.py507 # Create a linearly spaced date_range in local time
MEDIUMpandas/util/version/__init__.py5# This file is dual licensed under the terms of the Apache License, Version
MEDIUMpandas/io/parsers/readers.py306 # Create the parser.
MEDIUMpandas/io/excel/_base.py1157 # Defining an ExcelWriter implementation (see abstract methods for more...)
MEDIUMpandas/io/excel/_xlsxwriter.py105 # Create an XlsxWriter format object.
MEDIUMpandas/io/clipboard/__init__.py459 # This function is heavily based on
MEDIUMpandas/tests/test_optional_dependency.py69 # Create a fake module with a submodule
MEDIUMpandas/tests/series/test_formats.py286 # Define a stub extension type with just enough code to run Series.__repr__()
MEDIUMpandas/tests/series/accessors/test_cat_accessor.py128 # This method is likely to be confused, so test that it raises an error
MEDIUMpandas/tests/apply/test_invalid_arg.py2# This file is organized by reason for exception.
MEDIUMpandas/tests/apply/test_frame_apply_relabeling.py102 # This method is used by other libraries (e.g. dask)
MEDIUMpandas/tests/resample/test_period_index.py339 # Create the expected series
MEDIUMpandas/tests/io/test_compression.py66 # Create a new temporary file for uncompressed comparison
MEDIUM…as/tests/tseries/offsets/test_custom_business_month.py181 # Define a TradingDay offset
MEDIUM…as/tests/tseries/offsets/test_custom_business_month.py358 # Define a TradingDay offset
MEDIUM…ndas/tests/tseries/offsets/test_custom_business_day.py43 # Define a TradingDay offset
MEDIUMpandas/tests/libs/test_lib.py314 # Define a custom ndarray subclass
MEDIUMpandas/tests/plotting/frame/test_frame_color.py711 # Creating a DataFrame with duplicate column labels and testing colors of them.
MEDIUMpandas/tests/arithmetic/test_datetime64.py772 # This class is intended for "finished" tests that are fully parametrized
MEDIUMpandas/tests/arithmetic/test_array_ops.py50 # Define a custom ndarray subclass
Over-Commented Block81 hits · 70 pts
SeverityFileLineSnippet
LOWscripts/check_test_naming.py101 _is_register_dtype(decorator) for decorator in node.decorator_list
LOWscripts/tests/data/deps_minimum.toml181 # module level import not at top of file
LOW.github/workflows/wheels.yml1# Workflow to build wheels for upload to PyPI.
LOW.github/workflows/unit-tests.yml381 # - This version should be available on GitHub Actions.
LOWdoc/source/conf.py1#
LOWdoc/source/conf.py101
LOWdoc/source/conf.py481
LOWdoc/source/conf.py501# If true, the current module name will be prepended to all description
LOWdoc/source/conf.py601# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
LOWdoc/source/conf.py701# If true, the index is split into individual pages for each letter.
LOWdoc/source/conf.py741 )
LOWdoc/source/conf.py821 """
LOWpandas/core/nanops.py161 if dtype != object and not needs_i8_conversion(dtype):
LOWpandas/core/algorithms.py1681 # we can fastpath dict/Series to an efficient map
LOWpandas/core/arraylike.py381 # e.g. test.series.test_ufunc.test_reduce
LOWpandas/core/frame.py2361 # When the names and arrays are collected, we
LOWpandas/core/indexing.py2781 elif is_full_setter:
LOWpandas/core/apply.py2041 # sum 18.0 6.0
LOWpandas/core/strings/__init__.py21# - StringArray
LOWpandas/core/interchange/dataframe_protocol.py101 # first element is a buffer containing mask values indicating missing data;
LOWpandas/core/groupby/grouper.py501 # a passed Grouper like, directly get the grouper in the same way
LOWpandas/core/groupby/grouper.py781 # TODO: These if-block and else-block are almost same.
LOWpandas/core/internals/ops.py81 # if right_ea or left_ea:
LOWpandas/core/internals/blocks.py2161 # ExtensionArray-safe unstack.
LOWpandas/core/arrays/datetimelike.py401 # I'm fudging the types a bit here. "Any" above really depends
LOWpandas/core/arrays/base.py541
LOWpandas/core/indexes/multi.py4181 # InvalidIndexError e.g. non-hashable, fall back to treating
LOWpandas/util/version/__init__.py401 dev: tuple[str, int] | None,
LOWpandas/io/stata.py801 # type code.
LOWpandas/io/parsers/readers.py2361 #
LOWpandas/io/formats/console.py21 # Consider
LOWpandas/io/formats/html.py341 # see gh-22579
LOWpandas/io/formats/printing.py81 """
LOWpandas/io/formats/printing.py101# use pprint_thing().
LOWpandas/io/excel/_base.py1161 # --> called to write additional DataFrames to disk
LOWpandas/io/sas/sas_xport.py201 shift[np.where(xport1 & 0x00800000)] = 3
LOWpandas/tests/tools/test_to_datetime.py3121 ("20201012", True, False, datetime(2020, 12, 10)),
LOWpandas/tests/tools/test_to_datetime.py3141
LOWpandas/tests/extension/base/ops.py41 # In _check_op we check that the result of a pointwise operation
LOWpandas/tests/io/test_parquet.py1201 pq.write_table(table, temp_file)
LOWpandas/tests/io/excel/test_readers.py821 def test_reading_all_sheets(self, read_ext):
LOWpandas/tests/io/parser/test_c_parser_only.py341 # to stress the system memory allocator, to cause it to move the
LOWpandas/tests/io/parser/common/test_float.py121 # When a 17-digit mantissa's 16-digit prefix crosses 2^53
LOWpandas/tests/io/xml/test_xml.py41# [X] - ImportError: "lxml not found, please install or use the etree parser."
LOWpandas/tests/io/xml/test_xml.py61
LOWpandas/tests/io/xml/test_to_xml.py21from pandas.io.common import get_handle
LOWpandas/tests/io/xml/test_to_xml.py41# [X] - TypeError: "...is not a valid type for attr_cols"
LOWpandas/tests/io/pytables/test_compat.py101
LOWpandas/tests/io/pytables/test_compat.py121 # if legacy_file.endswith("table.h5"):
LOWpandas/tests/frame/test_reductions.py1961 # may raise on one path (e.g. axis=1 with datetime64 + any)
LOWpandas/tests/frame/methods/test_reindex.py201 # MultiIndex object correctly when using no filling, backfilling, and
LOWpandas/tests/frame/methods/test_reindex.py221 # 1 0 A
LOWpandas/tests/plotting/frame/test_frame.py981 def test_plot_scatter_with_c_array(self):
LOWpandas/tests/arrays/sparse/test_libsparse.py101 def test_index_make_union(self, xloc, xlen, yloc, ylen, eloc, elen, test_length):
LOWpandas/tests/arrays/sparse/test_libsparse.py121 # Case 6
LOWpandas/tests/indexes/multi/test_indexing.py301 result = idx.get_indexer(labels)
LOWpandas/tests/indexes/multi/test_indexing.py361 err = NotImplementedError
LOWpandas/tests/indexes/multi/test_indexing.py381 # 7: 7
LOWpandas/tests/indexes/multi/test_indexing.py461
LOWpandas/tests/indexes/multi/test_indexing.py481 # 6: 2 1
21 more matches not shown…
AI Slop Vocabulary34 hits · 58 pts
SeverityFileLineSnippet
LOWpandas/core/missing.py518 # both directions... just use _interp_limit
LOWpandas/core/missing.py1102 # just use forwards
MEDIUMpandas/core/generic.py1594 # operations should utilize/extend these methods when possible so that we
MEDIUMpandas/core/generic.py6537 # robust in case we
LOWpandas/core/generic.py4300 # so just return them (GH 6394)
LOWpandas/core/frame.py4604 # NB: we can't just use self.loc[key] = value because that
LOWpandas/core/apply.py1118 # so just return a copy of the existing object
LOWpandas/core/reshape/merge.py1340 # make sure to just use the right values or vice-versa
LOWpandas/core/reshape/reshape.py434 # Otherwise, we just use each level item exactly once:
LOWpandas/core/strings/accessor.py4806 # ideally we just pass `dtype=arr.dtype` unconditionally, but this fails
LOWpandas/core/groupby/grouper.py830 # already have a BaseGrouper, just return it
MEDIUMpandas/core/window/online.py70 # used in conjunction with vals[i+1]
MEDIUMpandas/core/window/numba_.py144 # is to be used in conjunction with vals[i+1]
MEDIUMpandas/core/window/numba_.py320 # is to be used in conjunction with vals[i+1]
LOWpandas/core/arrays/_ranges.py82 # cannot just use e = Timestamp(end) + 1 because arange breaks when
LOWpandas/core/arrays/masked.py762 # special case, here we can simply return the underlying data
LOWpandas/core/arrays/base.py2003 # just pass that here instead of coercing to object.
LOWpandas/core/indexes/base.py5370 # TODO(ExtensionIndex): remove special-case, just use self._values
LOWpandas/io/stata.py2989 # ds_format - just use 114
LOWpandas/io/parsers/arrow_parser_wrapper.py83 # just set to pyarrow default of None
LOWpandas/io/json/_normalize.py43 # Determine we have a JSON list to turn to lines otherwise just return the
LOWpandas/tests/reshape/merge/test_merge_asof.py1909 # just use a single ticker
LOWpandas/tests/extension/base/dtype.py112 # (we shortcut to just use that dtype as the common dtype), but
MEDIUMpandas/tests/extension/base/interface.py176 # the _cast_pointwise_result method should be robust to any input,
LOWpandas/tests/io/test_stata.py194 # TODO(GH#55564): just pass M8[s] to the constructor
LOWpandas/tests/frame/test_query_eval.py281 # list equality (really just set membership)
LOWpandas/tests/frame/test_query_eval.py328 # list equality (really just set membership)
LOWpandas/tests/frame/test_query_eval.py369 # list equality (really just set membership)
MEDIUMpandas/tests/dtypes/test_inference.py813 # make sure that this function is robust against it
MEDIUMpandas/tests/dtypes/cast/test_promote.py58 # Compare types in a way that is robust to platform-specific
LOWpandas/tests/groupby/test_categorical.py2163 # Only testing the ids/result_index, okay to just use one kernel
MEDIUMpandas/tests/arrays/test_datetimes.py294 # sufficiently robust
LOWpandas/tests/tslibs/test_parsing.py77 # Raise on invalid input, don't just return it
LOWpandas/plotting/_matplotlib/tools.py314 # one subplot, just return it instead of a 1-element array.
Excessive Try-Catch Wrapping52 hits · 55 pts
SeverityFileLineSnippet
LOWdoc/make.py209 except Exception:
LOWpandas/core/series.py6607 except Exception as error:
LOWpandas/core/frame.py14411 except Exception:
LOWpandas/core/apply.py355 except Exception as err:
LOWpandas/core/apply.py410 except Exception:
LOWpandas/core/apply.py1139 except Exception:
LOWpandas/core/groupby/generic.py2698 except Exception:
LOWpandas/core/groupby/groupby.py1491 except Exception as err:
LOWpandas/core/arrays/_arrow_string_mixins.py74 except Exception as err:
LOWpandas/core/arrays/base.py436 except Exception:
LOWpandas/util/_print_versions.py81 except Exception:
LOWpandas/util/_exceptions.py25 except Exception as err:
LOWpandas/io/pytables.py1364 except Exception as err:
LOWpandas/io/pytables.py1929 except Exception as detail:
LOWpandas/io/_util.py268 except Exception:
LOWpandas/io/_util.py278 except Exception:
LOWpandas/io/sql.py716 except Exception:
LOWpandas/io/sql.py2138 except Exception:
LOWpandas/io/sql.py2690 except Exception:
LOWpandas/io/stata.py2934 except Exception as exc:
LOWpandas/io/parsers/readers.py2014 except Exception:
LOWpandas/io/parsers/readers.py2057 except Exception:
LOWpandas/io/parsers/readers.py2071 except Exception:
MEDIUMpandas/io/parsers/readers.py1962def __next__(self) -> DataFrame:
LOWpandas/io/excel/_base.py566 except Exception:
LOWpandas/io/excel/_base.py961 except Exception as err:
LOWpandas/io/json/_json.py1131 except Exception as ex:
LOWpandas/io/json/_json.py1378 except Exception:
LOWpandas/io/sas/sas7bdat.py241 except Exception:
LOWpandas/io/sas/sas_xport.py263 except Exception:
LOWpandas/tests/extension/base/methods.py557 except Exception:
LOWpandas/tests/extension/base/ops.py225 except Exception as err:
LOWpandas/tests/extension/base/ops.py279 except Exception as err:
LOWpandas/tests/extension/base/dim2.py211 except Exception as err:
LOWpandas/tests/extension/base/dim2.py216 except Exception as err2:
LOWpandas/tests/extension/base/dim2.py245 except Exception as err:
LOWpandas/tests/extension/base/dim2.py248 except Exception as err2:
LOWpandas/tests/extension/base/dim2.py296 except Exception as err:
LOWpandas/tests/extension/base/dim2.py299 except Exception as err2:
MEDIUMpandas/tests/io/test_html.py1539def run(self):
LOWpandas/tests/io/test_html.py1542 except Exception as err:
LOWpandas/tests/io/test_html.py1474 except Exception:
LOWpandas/tests/frame/test_block_internals.py442 except Exception:
MEDIUMpandas/tests/frame/test_block_internals.py439def safe_is_const(s):
LOWpandas/tests/api/test_api.py576 except Exception:
LOWpandas/tests/tslibs/test_conversion.py42 except Exception as err:
LOWpandas/tests/tslibs/test_conversion.py47 except Exception as err:
LOWpandas/plotting/_matplotlib/converter.py339 except Exception:
LOWpandas/plotting/_matplotlib/converter.py363 except Exception:
LOWpandas/plotting/_matplotlib/converter.py477 except Exception: # pragma: no cover
MEDIUMpandas/plotting/_matplotlib/converter.py336def try_parse(values):
LOWpandas/plotting/_matplotlib/core.py1738 except Exception:
Redundant / Tautological Comments27 hits · 37 pts
SeverityFileLineSnippet
LOWpandas/core/generic.py2054 # Check if both conversions can be done without a copy
LOWpandas/core/generic.py4746 # Set level to zero in case of MultiIndex and label is string,
LOWpandas/core/generic.py4752 # Check if label doesn't exist along axis
LOWpandas/core/reshape/merge.py1785 # Check if we are trying to merge on obviously
LOWpandas/core/internals/managers.py1303 # Check if we can use _iset_single fastpath
LOWpandas/core/computation/expr.py676 # Check if this is a supported function name
LOWpandas/core/arrays/datetimes.py3208 # Check if the offset preserves start's time-of-day
LOWpandas/core/arrays/base.py565 # Check if the array is readonly
LOWpandas/core/indexes/multi.py501 # Check if elements of array are list-like
LOWpandas/core/indexes/multi.py506 # Check if lengths of all arrays are equal or not,
LOWpandas/core/indexes/multi.py3853 # Check if this tuple is a single key in our first level
LOWpandas/io/formats/format.py1823 # Check if all decimal numbers end in "0"
LOWpandas/io/excel/_base.py910 # Check if we have an empty dataset
LOWpandas/tests/reshape/merge/test_merge.py1091 # Check if working name in df
LOWpandas/tests/apply/test_frame_apply.py754 # Check if categorical comparisons on apply, GH 21239
LOWpandas/tests/apply/test_frame_apply.py1283 # Check if name is still preserved when aggregating series instead
LOWpandas/tests/extension/base/methods.py487 # Check if the operation is supported pointwise for our scalars. If not,
LOWpandas/tests/io/test_clipboard.py106 # Set raising to False because WinError won't exist on non-windows platforms
LOWpandas/tests/io/excel/test_readers.py214 # Check if values match
LOWpandas/tests/io/excel/test_readers.py218 # Check if types match
LOWpandas/tests/io/excel/test_writers.py1262 # Read file without comment arg.
LOWpandas/tests/io/excel/test_writers.py1282 # Read file with default and explicit comment=None
LOWpandas/tests/io/sas/test_sas7bdat.py228 # Check if the SAS file has zero variables (PR #18184)
LOWpandas/tests/io/pytables/test_file_handling.py213 # Check if not setting complib or complevel results in no compression
LOWpandas/tests/io/pytables/test_file_handling.py226 # Check if file-defaults can be overridden on a per table basis
LOWpandas/tests/io/pytables/test_file_handling.py276 # Open file and check metadata for correct amount of compression
LOWpandas/tests/indexing/multiindex/test_loc.py854 # Check if get_loc matches for Index and MultiIndex
Slop Phrases11 hits · 20 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/wheels.yml9# Alternatively, you can add labels to the pull request in order to trigger wheel
LOW.github/workflows/unit-tests.yml384 # To unfreeze, comment out the ``if: false`` condition, and make sure you update
MEDIUM.github/workflows/unit-tests.yml394 # Feel free to modify this comment as necessary.
LOWpandas/core/reshape/merge.py1340 # make sure to just use the right values or vice-versa
LOWpandas/io/pytables.py4589 # make sure to include levels if we have them
LOWpandas/io/formats/excel.py1021 # make sure to close opened file handles
LOWpandas/io/excel/_base.py530 # make sure to close opened file handles
LOWpandas/tests/series/methods/test_reindex.py97 # (don't forget to fix this) I think it's fixed
LOWpandas/tests/series/methods/test_reindex.py97 # (don't forget to fix this) I think it's fixed
LOWpandas/tests/io/parser/test_compression.py186 # make sure to create un-compressed file with zip extension
LOWpandas/tests/indexing/test_chaining_and_caching.py312 # GH 4939, make sure to update the cache on setitem
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALpandas/tests/io/formats/style/test_html.py22 project_dir = pathlib.Path(__file__).parent.parent.parent.parent.parent.resolve()
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHpandas/tests/dtypes/test_inference.py1118 # make sure the inferred dtype of the fixture is as requested
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWpandas/tests/io/formats/test_to_html.py22 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
LOWpandas/tests/io/formats/test_to_html.py22 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod "
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWpandas/core/groupby/grouper.py786 # we need to check if it makes no side effect to subsequent processes
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWpandas/tests/io/json/test_ujson.py83 def helper(expected_output, **encode_kwargs):