Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvictus/coltab
Columnar tables
https://github.com/nvictus/coltab
Last synced: 15 days ago
JSON representation
Columnar tables
- Host: GitHub
- URL: https://github.com/nvictus/coltab
- Owner: nvictus
- Created: 2018-07-15T22:51:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-10T18:11:56.000Z (over 4 years ago)
- Last Synced: 2024-10-03T12:17:50.451Z (about 1 month ago)
- Language: Python
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coltab
```python
>>> import coltab
>>> store = coltab.HDF5Store('/tmp/myfile.h5')
>>> store.open('a')
>>> store.create_table('foo', {'a': int, 'b': int, 'c': float})
>>> store.append('foo', {'a': [1, 2, 3], 'b': [4, 5, 6], 'c': [7, 8, 9]})
>>> store.addcol('foo', 'd', [1.1, 2.2, 3.3])
>>> store.delcol('foo', 'c')
>>> store.select('foo')
a b d
0 1 4 1.1
1 2 5 2.2
2 3 6 3.3
store.drop_table('foo')
store.close()
```