Skip to content

Commit aefcd68

Browse files
committed
Merge pull request #3051 from jreback/cook4
DOC: more examples
2 parents 0395dd0 + e6fac57 commit aefcd68

File tree

1 file changed

+87
-13
lines changed

1 file changed

+87
-13
lines changed

doc/source/cookbook.rst

+87-13
Original file line numberDiff line numberDiff line change
@@ -27,72 +27,146 @@ Selection
2727
`Boolean Rows Indexing
2828
<http://stackoverflow.com/questions/14725068/pandas-using-row-labels-in-boolean-indexing>`__
2929

30+
`Using loc and iloc in selections
31+
<https://github.com/pydata/pandas/issues/2904>`__
32+
3033
`Extending a panel along the minor axis
3134
<http://stackoverflow.com/questions/15364050/extending-a-pandas-panel-frame-along-the-minor-axis>`__
3235

33-
`Using loc and iloc in selections
34-
<https://github.com/pydata/pandas/issues/2904>`__
36+
`Boolean masking in a panel
37+
<http://stackoverflow.com/questions/14650341/boolean-mask-in-pandas-panel>`__
38+
39+
`Selecting via the complement
40+
<http://stackoverflow.com/questions/14986510/picking-out-elements-based-on-complement-of-indices-in-python-pandas>`__
3541

3642
MultiIndexing
3743
-------------
3844

39-
`Prepending a level to a multiindex
40-
<http://stackoverflow.com/questions/14744068/prepend-a-level-to-a-pandas-multiindex>`__
45+
`Creating a multi-index from a labeled frame
46+
<http://stackoverflow.com/questions/14916358/reshaping-dataframes-in-pandas-based-on-column-labels>`__
47+
48+
Slicing
49+
~~~~~~~
4150

4251
`Slicing a multi-index with xs
4352
<http://stackoverflow.com/questions/12590131/how-to-slice-multindex-columns-in-pandas-dataframes>`__
4453

54+
`Slicing a multi-index with xs #2
55+
<http://stackoverflow.com/questions/14964493/multiindex-based-indexing-in-pandas>`__
56+
57+
Sorting
58+
~~~~~~~
59+
4560
`Multi-index sorting
4661
<http://stackoverflow.com/questions/14733871/mutli-index-sorting-in-pandas>`__
4762

4863
`Partial Selection, the need for sortedness
4964
<https://github.com/pydata/pandas/issues/2995>`__
5065

66+
Levels
67+
~~~~~~
68+
69+
`Prepending a level to a multiindex
70+
<http://stackoverflow.com/questions/14744068/prepend-a-level-to-a-pandas-multiindex>`__
71+
72+
`Flatten Hierarchical columns
73+
<http://stackoverflow.com/questions/14507794/python-pandas-how-to-flatten-a-hierarchical-index-in-columns>`__
74+
5175
Grouping
5276
--------
5377

5478
`Basic grouping with apply
5579
<http://stackoverflow.com/questions/15322632/python-pandas-df-groupy-agg-column-reference-in-agg>`__
5680

81+
`Using get_group
82+
<http://stackoverflow.com/questions/14734533/how-to-access-pandas-groupby-dataframe-by-key>`__
83+
5784
`Apply to different items in a group
5885
<http://stackoverflow.com/questions/15262134/apply-different-functions-to-different-items-in-group-object-python-pandas>`__
5986

87+
`Expanding Apply
88+
<http://stackoverflow.com/questions/14542145/reductions-down-a-column-in-pandas>`__
89+
6090
`Replacing values with groupby means
6191
<http://stackoverflow.com/questions/14760757/replacing-values-with-groupby-means>`__
6292

93+
`Sort by group with aggregation
94+
<http://stackoverflow.com/questions/14941366/pandas-sort-by-group-aggregate-and-column>`__
95+
96+
`Create multiple aggregated columns
97+
<http://stackoverflow.com/questions/14897100/create-multiple-columns-in-pandas-aggregation-function>`__
98+
99+
Timeseries
100+
----------
101+
102+
`Between times
103+
<http://stackoverflow.com/questions/14539992/pandas-drop-rows-outside-of-time-range>`__
104+
105+
Resampling
106+
~~~~~~~~~~
107+
63108
`TimeGrouping of values grouped across time
64109
<http://stackoverflow.com/questions/15297053/how-can-i-divide-single-values-of-a-dataframe-by-monthly-averages>`__
65110

111+
`TimeGrouping #2
112+
<http://stackoverflow.com/questions/14569223/timegrouper-pandas>`__
113+
114+
`Resampling with custom periods
115+
<http://stackoverflow.com/questions/15408156/resampling-with-custom-periods>`__
116+
117+
`Resample intraday frame without adding new days
118+
<http://stackoverflow.com/questions/14898574/resample-intrday-pandas-dataframe-without-add-new-days>`__
119+
120+
`Resample minute data
121+
<http://stackoverflow.com/questions/14861023/resampling-minute-data>`__
122+
66123
Merge
67124
-----
68125

69-
Join
70-
~~~~
126+
`emulate R rbind
127+
<http://stackoverflow.com/questions/14988480/pandas-version-of-rbind>`__
71128

72-
`Joining a DataFrame to itself
129+
`Self Join
73130
<https://github.com/pydata/pandas/issues/2996>`__
74131

75-
Timeseries
76-
----------
132+
`How to set the index and join
133+
<http://stackoverflow.com/questions/14341805/pandas-merge-pd-merge-how-to-set-the-index-and-join>`__
77134

78-
`Resample intraday frame without adding new days
79-
<http://stackoverflow.com/questions/14898574/resample-intrday-pandas-dataframe-without-add-new-days>`__
135+
Plotting
136+
--------
137+
138+
`Make Matplotlib look like R
139+
<http://stackoverflow.com/questions/14349055/making-matplotlib-graphs-look-like-r-by-default>`__
80140

81141
Data In/Out
82142
-----------
83143

84144
CSV
85145
~~~
86146

147+
`Reading a csv chunk-by-chunk
148+
<http://stackoverflow.com/questions/11622652/large-persistent-dataframe-in-pandas/12193309#12193309>`__
149+
150+
`Reading the first few lines of a frame
151+
<http://stackoverflow.com/questions/15008970/way-to-read-first-few-lines-for-pandas-dataframe>`__
152+
87153
HDF5
88154
~~~~
89155

156+
`Simple Queries with a Timestamp Index
157+
<http://stackoverflow.com/questions/13926089/selecting-columns-from-pandas-hdfstore-table>`__
158+
90159
`Managing heteregenous data using a linked multiple table hierarchy
91160
<https://github.com/pydata/pandas/issues/3032>`__
92161

93-
`Simple Queries with a Timestamp Index
94-
<http://stackoverflow.com/questions/13926089/selecting-columns-from-pandas-hdfstore-table>`__
162+
`Merging on-disk tables with millions of rows
163+
<http://stackoverflow.com/questions/14614512/merging-two-tables-with-millions-of-rows-in-python/14617925#14617925>`__
164+
165+
`Large Data work flows
166+
<http://stackoverflow.com/questions/14262433/large-data-work-flows-using-pandas>`__
95167

96168
Miscellaneous
97169
-------------
98170

171+
`Operating with timedeltas
172+
<https://github.com/pydata/pandas/pull/2899>`__

0 commit comments

Comments
 (0)