[Numpy-svn] [numpy/numpy] 4f9154: BUG: Make randint backwards compatible with pandas

GitHub noreply at github.com
Fri Feb 19 10:06:17 EST 2016


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 4f91544af2a74bc2dcecfce5db05b015f26721e4
      https://github.com/numpy/numpy/commit/4f91544af2a74bc2dcecfce5db05b015f26721e4
  Author: gfyoung <gfyoung17 at gmail.com>
  Date:   2016-02-19 (Fri, 19 Feb 2016)

  Changed paths:
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  BUG: Make randint backwards compatible with pandas

The 'pandas' library expects Python integers to be
returned, so this commit changes the API so that
the default is 'np.int' which converts to native
Python integer types when a singleton is being
generated with this function.

Closes gh-7284.


  Commit: bd905a8f0100a9cda21b1933676ef36ad213e879
      https://github.com/numpy/numpy/commit/bd905a8f0100a9cda21b1933676ef36ad213e879
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2016-02-19 (Fri, 19 Feb 2016)

  Changed paths:
    M numpy/random/mtrand/mtrand.pyx
    M numpy/random/tests/test_random.py

  Log Message:
  -----------
  Merge pull request #7285 from gfyoung/pandas_randint_compat

BUG: Make Randint Backwards Compatible with Pandas


Compare: https://github.com/numpy/numpy/compare/2112e7d47ab4...bd905a8f0100


More information about the Numpy-svn mailing list