KxSystems / pykx

PyKX is a Python first interface to the worlds fastest time-series database kdb+ and it's underlying vector programming language q.
https://code.kx.com/pykx
Other
45 stars 10 forks source link

Addition of skew, add_prefix, add_suffix, round, count, std functions #15

Closed nipsn closed 7 months ago

nipsn commented 7 months ago

Feature

What does this change introduce?

An implementation of the skew function: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.skew.html#pandas.DataFrame.skew

An implementation of the add_prefix and add_suffix function: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.add_prefix.html https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.add_suffix.html

Observations:

An implementation of the round function:

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.round.html#pandas.DataFrame.round

Observations:

An implementation of the count function:

Observations:

An implementation of the std function:

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.std.html#pandas.DataFrame.std

General

Code

Testing

Documentation

nipsn commented 7 months ago

@cmccarthy1 @rianoc-kx Please review our contributions and feel free to give any kind of feedback. Thanks in advance.

cmccarthy1 commented 7 months ago

Thanks @nipsn we'll aim to review before the end of the week and get back to you with any feedback/updates! Thanks for the contribution

neutropolis commented 7 months ago

Hi @cmccarthy1 I just came back after my leave, please let me a few days to take a look at these changes before handing them back to you, just to check our progress. Thanks!

cmccarthy1 commented 7 months ago

No issues @neutropolis I've added a couple of small comments to ponder but will hold off digging deeper until after you've reviewed further

neutropolis commented 7 months ago

Hi @cmccarthy1 sorry for the delay, it took us longer than expected to review the code. In essence, we've decided to remove round from this contribution and put it off for the near future, since we've started to work in other functions from the pandas api that we hope to share with you in the near future. Beyond that, all methods and tests have been polished and we think the new version is simpler and more elegant. Unfortunately, we could see that there was some kind of problem while cherry picking commits, which made it very hard to review the changes at the test file. Therefore, we are about to create a new PR (https://github.com/KxSystems/pykx/pull/16) and close the present one.