SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/tseries/frequencies.py", line 624, in get_offset
  3.     klass = prefix_mapping[split[0]]
  4. KeyError: 'Y'
  5.  
  6. During handling of the above exception, another exception occurred:
  7.  
  8. Traceback (most recent call last):
  9.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/tseries/frequencies.py", line 550, in to_offset
  10.     offset = get_offset(name)
  11.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/tseries/frequencies.py", line 630, in get_offset
  12.     raise ValueError(_INVALID_FREQ_ERROR.format(name))
  13. ValueError: Invalid frequency: Y
  14.  
  15. During handling of the above exception, another exception occurred:
  16.  
  17. Traceback (most recent call last):
  18.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
  19.     response = get_response(request)
  20.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response
  21.     response = self.process_exception_by_middleware(e, request)
  22.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response
  23.     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  24.   File "/usr/lib/python3.6/contextlib.py", line 52, in inner
  25.     return func(*args, **kwds)
  26.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/views/generic/base.py", line 68, in view
  27.     return self.dispatch(request, *args, **kwargs)
  28.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/contrib/auth/mixins.py", line 56, in dispatch
  29.     return super(LoginRequiredMixin, self).dispatch(request, *args, **kwargs)
  30.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/utils/decorators.py", line 67, in _wrapper
  31.     return bound_func(*args, **kwargs)
  32.   File "/usr/lib/python3.6/contextlib.py", line 52, in inner
  33.     return func(*args, **kwds)
  34.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/viewflow/decorators.py", line 213, in _wrapper
  35.     return view(request, **kwargs)
  36.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/utils/decorators.py", line 63, in bound_func
  37.     return func.__get__(self, type(self))(*args2, **kwargs2)
  38.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/viewflow/flow/views/task.py", line 70, in dispatch
  39.     return super(BaseFlowMixin, self).dispatch(request, **kwargs)
  40.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/views/generic/base.py", line 88, in dispatch
  41.     return handler(request, *args, **kwargs)
  42.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/django/views/generic/edit.py", line 174, in get
  43.     return self.render_to_response(self.get_context_data())
  44.   File "/home/henrytebs/projects/property-mode/erisk/e_risk/banks/mixins.py", line 283, in get_context_data
  45.     annual_change_df = self.get_annual_change_df(df, geo_data)
  46.   File "/home/henrytebs/projects/property-mode/erisk/e_risk/banks/mixins.py", line 264, in get_annual_change_df
  47.     sect_mkt_df = get_market_activity_df(sect_sales_15, 'year', 'sale_amount', 'approval_date')
  48.   File "/home/henrytebs/projects/property-mode/erisk/e_risk/valuations/market_activity.py", line 39, in get_market_activity_df
  49.     .dt.to_period(periods_freqs[period])
  50.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/core/base.py", line 211, in f
  51.     return self._delegate_method(name, *args, **kwargs)
  52.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/core/indexes/accessors.py", line 133, in _delegate_method
  53.     result = method(*args, **kwargs)
  54.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/core/indexes/datetimes.py", line 944, in to_period
  55.     return PeriodIndex(self.values, name=self.name, freq=freq, tz=self.tz)
  56.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/core/indexes/period.py", line 229, in __new__
  57.     freq = Period._maybe_convert_freq(freq)
  58.   File "pandas/_libs/period.pyx", line 700, in pandas._libs.period._Period._maybe_convert_freq (pandas/_libs/period.c:11195)
  59.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/util/_decorators.py", line 91, in wrapper
  60.     return func(*args, **kwargs)
  61.   File "/home/henrytebs/.virtualenvs/erisk/lib/python3.6/site-packages/pandas/tseries/frequencies.py", line 557, in to_offset
  62.     raise ValueError(_INVALID_FREQ_ERROR.format(freq))
  63. ValueError: Invalid frequency: Y
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top