Git Product home page Git Product logo

raccoon's Issues

support creating DataFrame with Series with different index

say I have 2 timeseries with different index

TimeSeries1

timestamp close
0 0.582778
2 0.682441
4 0.0365585
6 0.549261
8 0.0575284

TimeSeries2

timestamp open
0 0.525396
1 0.380595
2 0.399267
3 0.309334
4 0.339246
5 0.91433
6 0.30177
7 0.814401
8 0.722506
9 0.0100632

does Raccoon support the creation of Dataframe from them?
it doesn't look like it is support this but let me know if I am wrong

Custom sort keys / ordering

I was wondering if you had any plans to implement custom sorting of rows with the sort_columns function. Things like being able to pass in a custom key or comparator function, sort in reverse, etc. I don't see any way to do this currently.

Python 2 support?

Hi there, this is a neat project that might help me with something I'm working on that doesn't lend itself well to how Pandas works. Problem is I do most of my work in Python 2.7. It didn't take long for me to make your code 2.x compatible -- mostly just replaced some of the list.copy()s with list[:]s and removed the type hints. If you're interested I can send a PR -- if not I'll just keep using what I have.

Question: does raccoon use the e.g. the bisect functions from the dropins?

looking at get_slice():

start_location = bisect_left(self._index, start_index) if start_index is not None else None

there bisect_left from bisect is used. if blist is used as dropin it provides its own bisect_left implementation. but as far as I understand the code, this implementation is not used.

would it makes sense to query the list first if it provides a bisect function?

Bug in set_column index check

In set_column, I believe the following check is erroneous:

    if len(index) == (index.count(True) + index.count(False)):  # boolean list

This works in most cases, but in the rare case where the index consists only of combinations of 0 and 1, Python's quirky type system causes the code above to assume that what is being passed in is a boolean list when it's actually numeric IDs. 1==True and 0==False are helpful in many cases, but not this one.

Something like:

    if all([isinstance(i, bool) for i in index]):

Would probably do the right thing.

Start

Begin the project

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.