@@ -9,10 +9,13 @@ enhancements along with a large number of bug fixes.
9
9
New features
10
10
~~~~~~~~~~~~
11
11
12
- - Docs for PyTables ``Table`` format & several enhancements to the api. Here is a taste of what to expect. The
12
+ Updated PyTables Support
13
+ ~~~~~~~~~~~~~~~~~~~~~~~~
13
14
14
- `full docs for tables
15
- <https://github.com/pydata/pandas/blob/master/io.html#hdf5-pytables>`__
15
+ Docs for PyTables ``Table`` format & several enhancements to the api. Here is a taste of what to expect.
16
+
17
+ `the full docs for tables
18
+ <https://github.com/pydata/pandas/blob/master/io.html#hdf5-pytables>`__
16
19
17
20
18
21
.. ipython:: python
@@ -38,17 +41,9 @@ New features
38
41
# selecting the entire store
39
42
store.select('df')
40
43
41
- .. ipython:: python
42
- :suppress:
43
-
44
- store.close()
45
- import os
46
- os.remove('store.h5')
47
-
48
44
.. ipython:: python
49
45
50
46
from pandas.io.pytables import Term
51
- store = HDFStore('store.h5')
52
47
wp = Panel(randn(2, 5, 4), items=['Item1', 'Item2'],
53
48
major_axis=date_range('1/1/2000', periods=5),
54
49
minor_axis=['A', 'B', 'C', 'D'])
@@ -65,6 +60,38 @@ New features
65
60
store.remove('wp', [ 'major_axis', '>', wp.major_axis[3] ])
66
61
store.select('wp')
67
62
63
+ # deleting a store
64
+ del store['df']
65
+ store
66
+
67
+ **Enhancements**
68
+
69
+ - added multi-dtype support!
70
+
71
+ .. ipython:: python
72
+
73
+ df['string'] = 'string'
74
+ df['int'] = 1
75
+
76
+ store.append('df',df)
77
+ df1 = store.select('df')
78
+ df1
79
+ df1.get_dtype_counts()
80
+
81
+ - performance improvments on table writing
82
+ - support for arbitrarily indexed dimensions
83
+
84
+ **Bug Fixes**
85
+
86
+ - added ``Term`` method of specifying where conditions, closes GH #1996
87
+ - ``del store['df']`` now call ``store.remove('df')`` for store deletion
88
+ - deleting of consecutive rows is much faster than before
89
+ - ``min_itemsize`` parameter can be specified in table creation to force a minimum size for indexing columns
90
+ (the previous implementation would set the column size based on the first append)
91
+ - indexing support via ``create_table_index`` (requires PyTables >= 2.3), close GH #698
92
+ - appending on a store would fail if the table was not first created via ``put``
93
+ - minor change to select and remove: require a table ONLY if where is also provided (and not None)
94
+
68
95
.. ipython:: python
69
96
:suppress:
70
97
0 commit comments