diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index e824a3a925f4e..a83bca267213f 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -19,8 +19,11 @@ Cookbook ******** -This is a respository for *short and sweet* example and links for useful pandas recipes. -We encourage users to add to this documentation. This is a great *First Pull Request*. +This is a respository for *short and sweet* examples and links for useful pandas recipes. +We encourage users to add to this documentation. + +This is a great *First Pull Request* (to add interesting links and/or put short code inline +for existing links) Selection --------- @@ -102,6 +105,9 @@ Timeseries `Between times `__ +`Vectorized Lookup +`__ + Resampling ~~~~~~~~~~ @@ -138,6 +144,9 @@ Plotting `Make Matplotlib look like R `__ +`Setting x-axis major and minor labels +`__ + Data In/Out ----------- @@ -150,6 +159,12 @@ CSV `Reading the first few lines of a frame `__ +SQL +~~~ + +`Reading from databases with SQL +`__ + HDF5 ~~~~ @@ -165,6 +180,24 @@ HDF5 `Large Data work flows `__ +Storing Attributes to a group node + +.. ipython:: python + + df = DataFrame(np.random.randn(8,3)) + store = HDFStore('test.h5') + store.put('df',df) + + # you can store an arbitrary python object via pickle + store.get_storer('df').attrs.my_attribute = dict(A = 10) + store.get_storer('df').attrs.my_attribute + +.. ipython:: python + :suppress: + + store.close() + os.remove('test.h5') + Miscellaneous -------------