Giter Site home page Giter Site logo

Comments (6)

rhshadrach avatar rhshadrach commented on September 26, 2024

Thanks for the report. Might be related to #45564 - cc @phofl.

pandas/pandas/core/series.py

Lines 4637 to 4646 in 9530851

# Note: new_index is None iff indexer is None
# if not None, indexer is np.intp
if indexer is None and (
new_index is None or new_index.names == self.index.names
):
return self.copy(deep=False)
new_values = algorithms.take_nd(
self._values, indexer, allow_fill=True, fill_value=None
)

Prior to this PR, we would not call take_nd when indexer is None. Now we might be passing indexer=None to take_nd. For NumPy arrays, we end up in _take_nd_array which has the lines:

if indexer is None:
indexer = np.arange(arr.shape[axis], dtype=np.intp)
dtype, fill_value = arr.dtype, arr.dtype.type()

but no such logic exists for EAs. Perhaps it should?

from pandas.

Adasjo avatar Adasjo commented on September 26, 2024

take

from pandas.

CasperKristiansson avatar CasperKristiansson commented on September 26, 2024

take

from pandas.

VictorOsterman avatar VictorOsterman commented on September 26, 2024

take

from pandas.

Tobiky avatar Tobiky commented on September 26, 2024

take

from pandas.

Lindefor avatar Lindefor commented on September 26, 2024

take

from pandas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.