Skip to content

Better error msg for malformed freq alias #1328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
changhiskhan opened this issue May 28, 2012 · 0 comments
Closed

Better error msg for malformed freq alias #1328

changhiskhan opened this issue May 28, 2012 · 0 comments
Assignees
Labels
Bug Datetime Datetime data dtype
Milestone

Comments

@changhiskhan
Copy link
Contributor

In [17]: date_range(datetime.datetime.today(), periods=10, freq='2h20m')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/home/chang/Dropbox/git/pandas/<ipython-input-17-ff4e03382573> in <module>()
----> 1 date_range(datetime.datetime.today(), periods=10, freq='2h20m')

/home/chang/Dropbox/git/pandas/pandas/tseries/index.pyc in date_range(start, end, periods, freq, tz, normalize)
   1209     """
   1210     return DatetimeIndex(start=start, end=end, periods=periods,
-> 1211                          freq=freq, tz=tz, normalize=normalize)
   1212 
   1213 

/home/chang/Dropbox/git/pandas/pandas/tseries/index.pyc in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, **kwds)
    202 
    203         if data is None and offset is None:
--> 204             raise ValueError("Must provide freq argument if no data is "
    205                              "supplied")
    206 

ValueError: Must provide freq argument if no data is supplied
@ghost ghost assigned wesm May 28, 2012
@wesm wesm closed this as completed in 6478c87 May 28, 2012
yarikoptic added a commit to neurodebian/pandas that referenced this issue Jun 21, 2012
Version 0.8.0 beta 1

* tag 'v0.8.0b1': (703 commits)
  RLS: 0.8.0 beta 1
  RLS: 0.8.0beta
  RLS: release notes
  ENH: add option to use Series.values to interpolate, close pandas-dev#1206
  TST: testing to close pandas-dev#1331
  DOC: groupby drop duplicate index pandas-dev#1312
  ENH: tz_convert for DataFrame pandas-dev#1330
  ENH: add NA handling to scatter_matrix, close pandas-dev#1297
  BUG: display localtime in DatetimeIndex.__repr__, close pandas-dev#1336
  DOC: draft of timeseries section of docs. Added Period related documentation and examples
  DOC: timezone handling and started on Period
  DOC: rough draft of DatetimeIndex, date_range, shifting/resampling etc
  DOC: more ts docs. Need to do resampling then PeriodIndex
  DOC: starting deeper revamp of ts docs for 0.8
  BUG: raise exception for unintellible frequency strings, close pandas-dev#1328
  ENH: construct PeriodIndex from arrays of fields, allow negative ordinals. close pandas-dev#1333 and pandas-dev#1264
  BUG: tsplot fix with business freq pandas-dev#1332
  BUG: DatetimeIndex partial slicing bug, tsplot kludge around pandas-dev#1332
  BUG: alias W to W-SUN, add test for buglet close pandas-dev#1327
  ENH: mix arrays and scalars in DataFrame constructor, close pandas-dev#1329
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype
Projects
None yet
Development

No branches or pull requests

2 participants