blaze / castra

Partitioned storage system based on blosc. **No longer actively maintained.**
BSD 3-Clause "New" or "Revised" License
153 stars 21 forks source link

Support naive indexes with castra #24

Closed mrocklin closed 9 years ago

mrocklin commented 9 years ago

In cases where the user dumps many dataframes without a meaningful index (like 0, 1, 2, ...) we assume that they don't mind us changing these values to stack on on top of the other.

Example

In [1]: import pandas as pd

In [2]: a = pd.DataFrame({'x': [1, 2, 3]})

In [3]: b = pd.DataFrame({'x': [4, 5, 6]})

In [4]: from castra import Castra

In [5]: c = Castra(template=a)

In [6]: c.extend(a)

In [7]: c.extend(b)

In [8]: c[:]
Out[8]:
   x
0  1
1  2
2  3
3  4
4  5
5  6
mrocklin commented 9 years ago

I plan to merge this in a few hours if no comment and then release. I apologize for the short notice.

esc commented 9 years ago

On July 23, 2015 9:03:53 PM CEST, Matthew Rocklin notifications@github.com wrote:

I plan to merge this in a few hours if no comment and then release. I apologize for the short notice.


Reply to this email directly or view it on GitHub: https://github.com/Blosc/castra/pull/24#issuecomment-124212780

go right ahead!

Sent from my Android device with K-9 Mail. Please excuse my brevity.