Skip to content

COMPAT: some numpy 1.11 warnings #12792

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
jreback opened this issue Apr 4, 2016 · 0 comments
Closed

COMPAT: some numpy 1.11 warnings #12792

jreback opened this issue Apr 4, 2016 · 0 comments
Labels
Compat pandas objects compatability with Numpy or Python functions
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Apr 4, 2016

we are not fully testing with numpy 1.11 with all of our dependencies as they are not quite available in conda yet. But you can update an existing env and it will work. Some warnings in current master.

/Users/jreback/miniconda/lib/python2.7/site-packages/nose/importer.py:94: FutureWarning: The pandas.rpy module is deprecated and will be removed in a future version. We refer to external packages like rpy2. 
See here for a guide on how to port your code to rpy2: http://pandas.pydata.org/pandas-docs/stable/r_interface.html
  mod = load_module(part_fqname, fh, filename, desc)
......................................................................................S...........S.......S.......S.......S...............................................................................................................................................................................................F.......S.........................S...SS...S...........SSS..........S........S......SS................................SS.....................S.........................................................S..................................S..................................S...................SS..............................................................SS............................................................SS.............SSSSSSSSSSSSSSSSSSS........................................................................................................................................................................................................................................................................................................................................./Users/jreback/pandas/pandas/io/pytables.py:1479: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  values = values[self.cname]
...........................S...................../Users/jreback/pandas/pandas/io/pytables.py:2005: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  values = values[self.cname]
............................../Users/jreback/pandas/pandas/io/tests/test_pytables.py:3005: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  n=1, p=.01, size=(1e3, 10))).to_sparse(fill_value=0)
/Users/jreback/pandas/pandas/io/tests/test_pytables.py:3018: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  df[0] = np.zeros(1e3)
....................................SSS.........................................................................S................................................................................S....................................S.........................S....................................................S............................................................S........................................................................./Users/jreback/miniconda/lib/python2.7/site-packages/numpy/lib/function_base.py:3823: RuntimeWarning: Invalid value encountered in percentile
  RuntimeWarning)
................................................................................................S..............................................................................................................S.................................................................................................................................................................................................................................................................................................................................................................................................................................................S..S.................................................................................................................................................................................S..................................................S...S................................................................................................................................E.E...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S......................................SS.....S...SS.......S.S.......................SS.....S...SS.......S.S........................................................................................................................................S.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.......................................................................................................................S..................................S.........S................................................................................................................/Users/jreback/pandas/pandas/tseries/base.py:156: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  val = getitem(key)
...............................................................................................................................................................................................S...............................................................................................................................................................................................................................................................................................................................................................................................................................SSS................................................................................................................................................................................S...............S.....S......................................................................................................................................................................................................................................................................................................................................................................................................S.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
.....SS.....SSSS.....................................................................................................................................................................................................................................................................................................................................................................S....................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_range_slice_day (pandas.tseries.tests.test_period.TestPeriodIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jreback/pandas/pandas/tseries/tests/test_period.py", line 2619, in test_range_slice_day
    idx[v:]
  File "/Users/jreback/pandas/pandas/tseries/base.py", line 176, in __getitem__
    result = getitem(key)
IndexError: failed to coerce slice entry of type str to integer

======================================================================
ERROR: test_range_slice_seconds (pandas.tseries.tests.test_period.TestPeriodIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/jreback/pandas/pandas/tseries/tests/test_period.py", line 2676, in test_range_slice_seconds
    idx[v:]
  File "/Users/jreback/pandas/pandas/tseries/base.py", line 176, in __getitem__
    result = getitem(key)
IndexError: failed to coerce slice entry of type str to integer

The errors are fixed in #12736

@jreback jreback added Compat pandas objects compatability with Numpy or Python functions Difficulty Intermediate labels Apr 4, 2016
@jreback jreback added this to the 0.18.1 milestone Apr 4, 2016
jreback added a commit to jreback/pandas that referenced this issue Apr 5, 2016
@jreback jreback closed this as completed in fded942 Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant