We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c83ee14 + d621299 commit 4de033dCopy full SHA for 4de033d
doc/source/cookbook.rst
@@ -269,6 +269,13 @@ Turn a matrix with hours in columns and days in rows into a continuous row seque
269
`Dealing with duplicates when reindexing a timeseries to a specified frequency
270
<http://stackoverflow.com/questions/22244383/pandas-df-refill-adding-two-columns-of-different-shape>`__
271
272
+Calculate the first day of the month for each entry in a DatetimeIndex
273
+
274
+.. ipython:: python
275
276
+ dates = pd.date_range('2000-01-01', periods=5)
277
+ dates.to_period(freq='M').to_timestamp()
278
279
.. _cookbook.resample:
280
281
Resampling
0 commit comments