A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/commit/51f3d03087414bdff763d3f45b11e37b2a28ea84 below:

avoid unnecessary method call in get_indexer_non_unique() on Mu… · pandas-dev/pandas@51f3d03 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed Original file line number Diff line number Diff line change

@@ -6036,12 +6036,13 @@ def get_indexer_non_unique(

6036 6036 6037 6037

# Note: _maybe_downcast_for_indexing ensures we never get here

6038 6038

# with MultiIndex self and non-Multi target

6039 -

tgt_values = target._get_engine_target()

6040 6039

if self._is_multi and target._is_multi:

6041 6040

engine = self._engine

6042 6041

# Item "IndexEngine" of "Union[IndexEngine, ExtensionEngine]" has

6043 6042

# no attribute "_extract_level_codes"

6044 6043

tgt_values = engine._extract_level_codes(target) # type: ignore[union-attr]

6044 +

else:

6045 +

tgt_values = target._get_engine_target()

6045 6046 6046 6047

indexer, missing = self._engine.get_indexer_non_unique(tgt_values)

6047 6048

return ensure_platform_int(indexer), ensure_platform_int(missing)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4