Skip to content

Commit

Permalink
DOC: Adding parameters to frequencies, offsets (issue pandas-dev#2916)
Browse files Browse the repository at this point in the history
  • Loading branch information
karmel committed Apr 22, 2013
1 parent c21706c commit d385d25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pandas/tseries/frequencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ def infer_freq(index, warn=True):
Parameters
----------
index : DatetimeIndex
warn : boolean, default True
Returns
-------
Expand Down
3 changes: 3 additions & 0 deletions pandas/tseries/offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,13 +1197,16 @@ def generate_range(start=None, end=None, periods=None,
start : datetime (default None)
end : datetime (default None)
periods : int, optional
time_rule : (legacy) name of DateOffset object to be used, optional
Corresponds with names expected by tseries.frequencies.get_offset
Note
----
* This method is faster for generating weekdays than dateutil.rrule
* At least two of (start, end, periods) must be specified.
* If both start and end are specified, the returned dates will
satisfy start <= date <= end.
* If both time_rule and offset are specified, time_rule supersedes offset.
Returns
-------
Expand Down

0 comments on commit d385d25

Please sign in to comment.