Returns the original data conformed to a new index with the specified
frequency.
If the index of this Series/DataFrame is a , the new index
is the result of transforming the original index with
(so the original index
will map one-to-one to the new index).
Otherwise, the new index will be equivalent to pd.date_range(start,end,freq=freq) where start and end are, respectively, the first and
last entries in the original index (see pandas.date_range()). The
values corresponding to any timesteps in the new index which were not present
in the original index will be null (NaN), unless a method for filling
such unknowns is provided (see the method parameter below).
The resample() method is more appropriate if an operation on each group of
timesteps (such as an aggregate) is necessary to represent the data at the new
frequency.