Code Monkey home page Code Monkey logo

Comments (3)

wesm avatar wesm commented on May 21, 2024

In principle I agree with you that fill should be renamed to something like fillna or fill_missing since a portion of the NumPy API relies on the fill function. Unfortunately changing it would definitely cause downstream breakage in the next release-- as far as API changes go it's not too terrible to go through and fix client code but it sucks.

from pandas.

wesm avatar wesm commented on May 21, 2024

I took a look at fixing this behavior-- I'm going to remove the overridden fill() function from Series, having created fillna functions in all of the classes. There actually is a bug in NumPy which has been fixed about a month ago-- so starting with NumPy 1.6 this can be fixed:

http://projects.scipy.org/numpy/ticket/929

from pandas.

wesm avatar wesm commented on May 21, 2024

{Series, DataFrame, WidePanel}.fill have been removed. So np.fix should work on NumPy >= 1.6 (does not work with 1.5.1, though)

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.