Giter Site home page Giter Site logo

hdfe's People

Contributors

esantorella avatar tbenthompson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hdfe's Issues

Performance of Groupby

I found your blog post (http://esantorella.com/2016/06/16/groupby/) and was initially intrigued about being able to increase performance of user defined functions in groupby. But looking more closely I think you're just comparing a lazy function to a strict one. I don't see any difference in speed in terms of applying the functions to groups.

using the example from your blog, it think this shows most clearly what i mean:

In [30]: %timeit Groupby(df["first category"])
5.79 ms ± 103 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

In [31]: %timeit df.groupby("first category")
55.8 µs ± 3.99 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each)

pandas groupby is lazy and does essentially nothing until you apply some function. your groupby does work in init to setup the groups.

Does that seem correct or am I missing how to speed up applying functions to groups?

This function always gives a syntax error.

Hi
I am trying to use this library but i am always getting a syntax error.

result[self.keys_as_int[k]] = function(vector[idx])
TypeError: only integer scalar arrays can be converted to a scalar index

Documentation

I read the article and code of your Groupby and really liked it. I am a bit lost with the other functions, but if Groupby is any indication, it would be worth learning about them. Could you write a documentation for them, similar to Groupby? At least what they are about and what the basic principles behind them are?

numpy function parameters

Hi
I want to use np.std over groupby and want to change the default value of ddof used in np.std.
Is this possible.

Thank you

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.