Skip to content

COMPAT: some numpy 1.11 warnings #12792

Closed
@jreback

Description

@jreback

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions