File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -795,7 +795,7 @@ Objects can be written to the file just like adding key-value pairs to a dict:
795
795
major_axis = date_range(' 1/1/2000' , periods = 5 ),
796
796
minor_axis = [' A' , ' B' , ' C' , ' D' ])
797
797
798
- # store.put('s', s' ) is an equivalent method
798
+ # store.put('s', s) is an equivalent method
799
799
store[' s' ] = s
800
800
801
801
store[' df' ] = df
@@ -853,15 +853,19 @@ after data is already in the table (this may become automatic in the future or a
853
853
store = HDFStore(' store.h5' )
854
854
df1 = df[0 :4 ]
855
855
df2 = df[4 :]
856
+
857
+ # append data (creates a table automatically)
856
858
store.append(' df' , df1)
857
859
store.append(' df' , df2)
858
860
store
859
861
862
+ # select the entire object
860
863
store.select(' df' )
861
864
862
865
# the type of stored data
863
866
store.handle.root.df._v_attrs.pandas_type
864
867
868
+ # create an index
865
869
store.create_table_index(' df' )
866
870
store.handle.root.df.table
867
871
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ Updated PyTables Support
90
90
91
91
- performance improvments on table writing
92
92
- support for arbitrarily indexed dimensions
93
- - ``SparseSeries`` now has a ``density`` property (#2384)
94
93
95
94
**Bug Fixes**
96
95
@@ -111,8 +110,6 @@ Updated PyTables Support
111
110
import os
112
111
os.remove('store.h5')
113
112
114
- - Implement ``value_vars`` in ``melt`` and add ``melt`` to pandas namespace (GH2412_)
115
-
116
113
N Dimensional Panels (Experimental)
117
114
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118
115
@@ -130,8 +127,6 @@ Adding experimental support for Panel4D and factory functions to create n-dimens
130
127
131
128
132
129
133
- - Enable ``Series.str.strip/lstrip/rstrip`` methods to take an argument (GH2411_)
134
-
135
130
API changes
136
131
~~~~~~~~~~~
137
132
@@ -142,14 +137,14 @@ API changes
142
137
def f(x):
143
138
return Series([ x, x**2 ], index = ['x', 'x^s'])
144
139
s = Series(np.random.rand(5))
145
- s
140
+ s
146
141
s.apply(f)
147
142
148
- This is conceptually similar to the following.
143
+ - Enable ``Series.str.strip/lstrip/rstrip`` methods to take an argument (GH2411_)
149
144
150
- .. ipython:: python
145
+ - Implement ``value_vars`` in ``melt`` and add ``melt`` to pandas namespace (GH2412_)
151
146
152
- concat([ f(y) for x, y in s.iteritems() ], axis=1).T
147
+ - ``SparseSeries`` now has a ``density`` property (#2384)
153
148
154
149
- New API functions for working with pandas options (GH2097_):
155
150
You can’t perform that action at this time.
0 commit comments