Cudf: [BUG] slicing rows from df shows errors

Created on 24 Jul 2020  路  5Comments  路  Source: rapidsai/cudf

Describe the bug
A clear and concise description of what the bug is.

Steps/Code to reproduce bug


import cudf
new_df = cudf.DataFrame({"a":range(10000000)})
print(new_df[2500000:2500001])
print(new_df[2500000:5000000])

outputs
               a
2500000  2500000 <== correct

                           a
0       -9223372036854775808 <== WOAH NELLY!!!
1       -9223372036854775808
2       -9223372036854775808
3       -9223372036854775808
4       -9223372036854775808
...                      ...
4999995              4999995
4999996              4999996
4999997              4999997
4999998              4999998
4999999              4999999

Expected behavior
The data from this slice operation shouldn't return corrupt rows

Environment overview (please complete the following information)
Running on a dgx2

Environment details

Click here to see environment details

 **git***
 Not inside a git repository

 ***OS Information***
 DGX_NAME="DGX Server"
 DGX_PRETTY_NAME="NVIDIA DGX Server"
 DGX_SWBUILD_DATE="2019-12-02"
 DGX_SWBUILD_VERSION="4.3.0"
 DGX_COMMIT_ID="3015363"
 DGX_PLATFORM="DGX Server for DGX-2"
 DGX_SERIAL_NUMBER="0574318000143"
 DISTRIB_ID=Ubuntu
 DISTRIB_RELEASE=18.04
 DISTRIB_CODENAME=bionic
 DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
 NAME="Ubuntu"
 VERSION="18.04.3 LTS (Bionic Beaver)"
 ID=ubuntu
 ID_LIKE=debian
 PRETTY_NAME="Ubuntu 18.04.3 LTS"
 VERSION_ID="18.04"
 HOME_URL="https://www.ubuntu.com/"
 SUPPORT_URL="https://help.ubuntu.com/"
 BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
 PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
 VERSION_CODENAME=bionic
 UBUNTU_CODENAME=bionic
 Linux rl-dgx2-d17-u05-rapids-dgx201 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

 ***GPU Information***
 Thu Jul 23 22:54:22 2020
 +-----------------------------------------------------------------------------+
 | NVIDIA-SMI 440.33.01    Driver Version: 440.33.01    CUDA Version: 10.2     |
 |-------------------------------+----------------------+----------------------+
 | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
 | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
 |===============================+======================+======================|
 |   0  Tesla V100-SXM3...  On   | 00000000:34:00.0 Off |                    0 |
 | N/A   35C    P0    66W / 350W |   3390MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   1  Tesla V100-SXM3...  On   | 00000000:36:00.0 Off |                    0 |
 | N/A   33C    P0    66W / 350W |   1831MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   2  Tesla V100-SXM3...  On   | 00000000:39:00.0 Off |                    0 |
 | N/A   41C    P0    68W / 350W |   1855MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   3  Tesla V100-SXM3...  On   | 00000000:3B:00.0 Off |                    0 |
 | N/A   43C    P0    68W / 350W |   1827MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   4  Tesla V100-SXM3...  On   | 00000000:57:00.0 Off |                    0 |
 | N/A   34C    P0    65W / 350W |   1827MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   5  Tesla V100-SXM3...  On   | 00000000:59:00.0 Off |                    0 |
 | N/A   42C    P0    78W / 350W |   1875MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   6  Tesla V100-SXM3...  On   | 00000000:5C:00.0 Off |                    0 |
 | N/A   34C    P0    66W / 350W |   1883MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   7  Tesla V100-SXM3...  On   | 00000000:5E:00.0 Off |                    0 |
 | N/A   43C    P0    71W / 350W |   1837MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   8  Tesla V100-SXM3...  On   | 00000000:B7:00.0 Off |                    0 |
 | N/A   33C    P0    66W / 350W |   1516MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |   9  Tesla V100-SXM3...  On   | 00000000:B9:00.0 Off |                    0 |
 | N/A   36C    P0    67W / 350W |   1540MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |  10  Tesla V100-SXM3...  On   | 00000000:BC:00.0 Off |                    0 |
 | N/A   42C    P0    69W / 350W |   1516MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |  11  Tesla V100-SXM3...  On   | 00000000:BE:00.0 Off |                    0 |
 | N/A   40C    P0    67W / 350W |   1564MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |  12  Tesla V100-SXM3...  On   | 00000000:E0:00.0 Off |                    0 |
 | N/A   35C    P0    70W / 350W |   1578MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |  13  Tesla V100-SXM3...  On   | 00000000:E2:00.0 Off |                    0 |
 | N/A   34C    P0    66W / 350W |   1558MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |  14  Tesla V100-SXM3...  On   | 00000000:E5:00.0 Off |                    0 |
 | N/A   43C    P0    70W / 350W |   1562MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+
 |  15  Tesla V100-SXM3...  On   | 00000000:E7:00.0 Off |                    0 |
 | N/A   41C    P0    73W / 350W |   1516MiB / 32510MiB |      0%      Default |
 +-------------------------------+----------------------+----------------------+

 +-----------------------------------------------------------------------------+
 | Processes:                                                       GPU Memory |
 |  GPU       PID   Type   Process name                             Usage      |
 |=============================================================================|
 |    0     49895      C   ...lipe/miniconda3/envs/nightly/bin/python  1499MiB |
 |    0     53166      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    0     96615      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    1     53167      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    1     96618      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    2     53172      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    2     96622      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    3     53176      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    3     96626      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    4     53180      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    4     96630      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    5     53183      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    5     96633      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    6     53186      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    6     96636      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    7     53189      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    7     96719      C   ...e/felipe/miniconda3/envs/ucx/bin/python   305MiB |
 |    8     53192      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |    9     53195      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |   10     53198      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |   11     53201      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |   12     53204      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |   13     53207      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |   14     53210      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 |   15     53213      C   ...niconda3/envs/rapids-tpcx-bb/bin/python  1499MiB |
 +-----------------------------------------------------------------------------+

 ***CPU***
 Architecture:        x86_64
 CPU op-mode(s):      32-bit, 64-bit
 Byte Order:          Little Endian
 CPU(s):              96
 On-line CPU(s) list: 0-95
 Thread(s) per core:  2
 Core(s) per socket:  24
 Socket(s):           2
 NUMA node(s):        2
 Vendor ID:           GenuineIntel
 CPU family:          6
 Model:               85
 Model name:          Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz
 Stepping:            4
 CPU MHz:             3290.480
 CPU max MHz:         3700.0000
 CPU min MHz:         1200.0000
 BogoMIPS:            5400.00
 Virtualization:      VT-x
 L1d cache:           32K
 L1i cache:           32K
 L2 cache:            1024K
 L3 cache:            33792K
 NUMA node0 CPU(s):   0-23,48-71
 NUMA node1 CPU(s):   24-47,72-95
 Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin ssbd mba ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb intel_pt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req pku ospke md_clear flush_l1d

 ***CMake***
 /usr/bin/cmake
 cmake version 3.10.2

 CMake suite maintained and supported by Kitware (kitware.com/cmake).

 ***g++***
 /usr/bin/g++
 g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
 Copyright (C) 2017 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 ***nvcc***

 ***Python***
 /home/felipe/miniconda3/envs/nightly/bin/python
 Python 3.7.8

 ***Environment Variables***
 PATH                            : /home/felipe/miniconda3/envs/nightly/bin:/home/felipe/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
 LD_LIBRARY_PATH                 :
 NUMBAPRO_NVVM                   :
 NUMBAPRO_LIBDEVICE              :
 CONDA_PREFIX                    : /home/felipe/miniconda3/envs/nightly
 PYTHON_PATH                     :

 ***conda packages***
 /home/felipe/miniconda3/condabin/conda
 # packages in environment at /home/felipe/miniconda3/envs/nightly:
 #
 # Name                    Version                   Build  Channel
 _libgcc_mutex             0.1                 conda_forge    conda-forge
 _openmp_mutex             4.5                       0_gnu    conda-forge
 abseil-cpp                20200225.2           he1b5a44_1    conda-forge
 alsa-lib                  1.2.3                h516909a_0    conda-forge
 arrow-cpp                 0.17.1          py37h1234567_11_cuda    conda-forge
 arrow-cpp-proc            1.0.0                      cuda    conda-forge
 attrs                     19.3.0                     py_0    conda-forge
 aws-sdk-cpp               1.7.164              hc831370_1    conda-forge
 backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
 blazingsql                0.15.0a         cuda10.2_py37_401    blazingsql-nightly/label/cuda10.2
 bleach                    3.1.5              pyh9f0ad1d_0    conda-forge
 bokeh                     2.1.1            py37hc8dfbb8_0    conda-forge
 boost-cpp                 1.72.0               h7b93d67_2    conda-forge
 brotli                    1.0.7             he1b5a44_1004    conda-forge
 brotlipy                  0.7.0           py37h8f50634_1000    conda-forge
 bzip2                     1.0.8                h516909a_2    conda-forge
 c-ares                    1.16.1               h516909a_0    conda-forge
 ca-certificates           2020.6.20            hecda079_0    conda-forge
 cairo                     1.16.0            h3fc0475_1005    conda-forge
 certifi                   2020.6.20        py37hc8dfbb8_0    conda-forge
 cffi                      1.14.0           py37hd463f26_0    conda-forge
 chardet                   3.0.4           py37hc8dfbb8_1006    conda-forge
 click                     7.1.2              pyh9f0ad1d_0    conda-forge
 cloudpickle               1.5.0                      py_0    conda-forge
 cppzmq                    4.6.0                hc9558a2_0    conda-forge
 cryptography              3.0              py37hb09aad4_0    conda-forge
 cudatoolkit               10.2.89              h6bb024c_0    nvidia
 cudf                      0.15.0a200723   py37_gd23252798_3207    rapidsai-nightly
 cudnn                     7.6.5                cuda10.2_0
 cupy                      7.6.0            py37h940342b_0    conda-forge
 curl                      7.71.1               he644dc0_3    conda-forge
 cyrus-sasl                2.1.27               h063b49f_1    conda-forge
 cytoolz                   0.10.1           py37h516909a_0    conda-forge
 dask                      2.21.0                     py_0    conda-forge
 dask-core                 2.21.0                     py_0    conda-forge
 dask-cuda                 0.15.0a200723           py37_76    rapidsai-nightly
 dask-cudf                 0.15.0a200723   py37_gd23252798_3207    rapidsai-nightly
 decorator                 4.4.2                      py_0    conda-forge
 defusedxml                0.6.0                      py_0    conda-forge
 distributed               2.21.0           py37hc8dfbb8_0    conda-forge
 dlpack                    0.3                  he1b5a44_1    conda-forge
 double-conversion         3.1.5                he1b5a44_2    conda-forge
 entrypoints               0.3             py37hc8dfbb8_1001    conda-forge
 fastavro                  0.23.6           py37h8f50634_0    conda-forge
 fastrlock                 0.5              py37h3340039_0    conda-forge
 fontconfig                2.13.1            h1056068_1002    conda-forge
 freetype                  2.10.2               he06d7ca_0    conda-forge
 fsspec                    0.7.4                      py_0    conda-forge
 future                    0.18.2           py37hc8dfbb8_1    conda-forge
 gettext                   0.19.8.1          hc5be6a0_1002    conda-forge
 gflags                    2.2.2             he1b5a44_1004    conda-forge
 giflib                    5.2.1                h516909a_2    conda-forge
 glib                      2.65.0               h6f030ca_0    conda-forge
 glog                      0.4.0                h49b9bf7_3    conda-forge
 google-cloud-cpp          1.15.0               h3bc3856_0    conda-forge
 google-cloud-cpp-common   0.25.0               h6a85093_6    conda-forge
 googleapis-cpp            0.10.0               h52dead3_2    conda-forge
 graphite2                 1.3.13            he1b5a44_1001    conda-forge
 grpc-cpp                  1.30.2               heedbac9_0    conda-forge
 gtest                     1.10.0               hc9558a2_2    conda-forge
 harfbuzz                  2.4.0                hee91db6_5    conda-forge
 heapdict                  1.0.1                      py_0    conda-forge
 icu                       67.1                 he1b5a44_0    conda-forge
 idna                      2.10               pyh9f0ad1d_0    conda-forge
 importlib-metadata        1.7.0            py37hc8dfbb8_0    conda-forge
 importlib_metadata        1.7.0                         0    conda-forge
 ipykernel                 5.3.4            py37h43977f1_0    conda-forge
 ipython                   7.16.1           py37h43977f1_0    conda-forge
 ipython_genutils          0.2.0                      py_1    conda-forge
 jedi                      0.17.2           py37hc8dfbb8_0    conda-forge
 jinja2                    2.11.2             pyh9f0ad1d_0    conda-forge
 jpeg                      9d                   h516909a_0    conda-forge
 jpype1                    1.0.1            py37h99015e2_0    conda-forge
 json5                     0.9.4              pyh9f0ad1d_0    conda-forge
 jsonschema                3.2.0            py37hc8dfbb8_1    conda-forge
 jupyter_client            6.1.6                      py_0    conda-forge
 jupyter_core              4.6.3            py37hc8dfbb8_1    conda-forge
 jupyterlab                2.2.0                      py_0    conda-forge
 jupyterlab_server         1.2.0                      py_0    conda-forge
 krb5                      1.17.1               hfafb76e_1    conda-forge
 lcms2                     2.11                 hbd6801e_0    conda-forge
 ld_impl_linux-64          2.34                 h53a641e_7    conda-forge
 libblas                   3.8.0               17_openblas    conda-forge
 libcblas                  3.8.0               17_openblas    conda-forge
 libcrc32c                 1.1.1                he1b5a44_2    conda-forge
 libcudf                   0.15.0a200723   cuda10.2_gd23252798_3207    rapidsai-nightly
 libcurl                   7.71.1               hcdd3856_3    conda-forge
 libedit                   3.1.20191231         h46ee950_1    conda-forge
 libevent                  2.1.10               hcdb4288_1    conda-forge
 libffi                    3.2.1             he1b5a44_1007    conda-forge
 libgcc-ng                 9.2.0                h24d8f2e_2    conda-forge
 libgfortran-ng            7.5.0                hdf63c60_6    conda-forge
 libgomp                   9.2.0                h24d8f2e_2    conda-forge
 libiconv                  1.15              h516909a_1006    conda-forge
 liblapack                 3.8.0               17_openblas    conda-forge
 libllvm9                  9.0.1                he513fc3_1    conda-forge
 libntlm                   1.4               h516909a_1002    conda-forge
 libopenblas               0.3.10          pthreads_hb3c22a3_3    conda-forge
 libpng                    1.6.37               hed695b0_1    conda-forge
 libprotobuf               3.12.3               h8b12597_2    conda-forge
 librmm                    0.15.0a200723   cuda10.2_gba4436b_418    rapidsai-nightly
 libsodium                 1.0.17               h516909a_0    conda-forge
 libssh2                   1.9.0                hab1572f_4    conda-forge
 libstdcxx-ng              9.2.0                hdf63c60_2    conda-forge
 libtiff                   4.1.0                hc7e4089_6    conda-forge
 libuuid                   2.32.1            h14c3975_1000    conda-forge
 libwebp-base              1.1.0                h516909a_3    conda-forge
 libxcb                    1.13              h14c3975_1002    conda-forge
 libxml2                   2.9.10               h72b56ed_1    conda-forge
 llvmlite                  0.33.0           py37h5202443_1    conda-forge
 locket                    0.2.0                      py_2    conda-forge
 lz4-c                     1.9.2                he1b5a44_1    conda-forge
 markupsafe                1.1.1            py37h8f50634_1    conda-forge
 mistune                   0.8.4           py37h8f50634_1001    conda-forge
 msgpack-python            1.0.0            py37h99015e2_1    conda-forge
 nbconvert                 5.6.1            py37hc8dfbb8_1    conda-forge
 nbformat                  5.0.7                      py_0    conda-forge
 nccl                      2.7.6.1              hc6a2c23_0    conda-forge
 ncurses                   6.2                  he1b5a44_1    conda-forge
 netifaces                 0.10.9          py37h8f50634_1002    conda-forge
 notebook                  6.0.3            py37hc8dfbb8_1    conda-forge
 numba                     0.50.1           py37h0da4684_1    conda-forge
 numpy                     1.19.1           py37h8960a57_0    conda-forge
 olefile                   0.46                       py_0    conda-forge
 openjdk                   11.0.1            hacce0ff_1021    conda-forge
 openssl                   1.1.1g               h516909a_0    conda-forge
 packaging                 20.4               pyh9f0ad1d_0    conda-forge
 pandas                    1.0.5            py37h0da4684_0    conda-forge
 pandoc                    2.10                 h14c3975_0    conda-forge
 pandocfilters             1.4.2                      py_1    conda-forge
 parquet-cpp               1.5.1                         2    conda-forge
 parso                     0.7.0              pyh9f0ad1d_0    conda-forge
 partd                     1.1.0                      py_0    conda-forge
 pcre                      8.44                 he1b5a44_0    conda-forge
 pexpect                   4.8.0            py37hc8dfbb8_1    conda-forge
 pickleshare               0.7.5           py37hc8dfbb8_1001    conda-forge
 pillow                    7.2.0            py37h718be6c_1    conda-forge
 pip                       20.1.1                     py_1    conda-forge
 pixman                    0.38.0            h516909a_1003    conda-forge
 prometheus_client         0.8.0              pyh9f0ad1d_0    conda-forge
 prompt-toolkit            3.0.5                      py_1    conda-forge
 psutil                    5.7.2            py37h8f50634_0    conda-forge
 pthread-stubs             0.4               h14c3975_1001    conda-forge
 ptyprocess                0.6.0                   py_1001    conda-forge
 pyarrow                   0.17.1          py37h1234567_11_cuda    conda-forge
 pycparser                 2.20               pyh9f0ad1d_2    conda-forge
 pygments                  2.6.1                      py_0    conda-forge
 pyhive                    0.6.2              pyh9f0ad1d_0    conda-forge
 pynvml                    8.0.4                      py_1    conda-forge
 pyopenssl                 19.1.0                     py_1    conda-forge
 pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
 pyrsistent                0.16.0           py37h8f50634_0    conda-forge
 pysocks                   1.7.1            py37hc8dfbb8_1    conda-forge
 python                    3.7.8           h6f2ec95_0_cpython    conda-forge
 python-dateutil           2.8.1                      py_0    conda-forge
 python_abi                3.7                     1_cp37m    conda-forge
 pytz                      2020.1             pyh9f0ad1d_0    conda-forge
 pyyaml                    5.3.1            py37h8f50634_0    conda-forge
 pyzmq                     19.0.1           py37hac76be4_0    conda-forge
 re2                       2020.07.06           he1b5a44_1    conda-forge
 readline                  8.0                  he28a2e2_2    conda-forge
 requests                  2.24.0             pyh9f0ad1d_0    conda-forge
 rmm                       0.15.0a200723   py37_gba4436b_418    rapidsai-nightly
 sasl                      0.2.1           py37h3340039_1002    conda-forge
 send2trash                1.5.0                      py_0    conda-forge
 setuptools                49.2.0           py37hc8dfbb8_0    conda-forge
 six                       1.15.0             pyh9f0ad1d_0    conda-forge
 snappy                    1.1.8                he1b5a44_3    conda-forge
 sortedcontainers          2.2.2              pyh9f0ad1d_0    conda-forge
 spdlog                    1.7.0                hc9558a2_0    conda-forge
 sqlalchemy                1.3.18           py37h8f50634_0    conda-forge
 sqlite                    3.32.3               hcee41ef_1    conda-forge
 tblib                     1.6.0                      py_0    conda-forge
 terminado                 0.8.3            py37hc8dfbb8_1    conda-forge
 testpath                  0.4.4                      py_0    conda-forge
 thrift                    0.13.0           py37h3340039_1    conda-forge
 thrift-cpp                0.13.0               h62aa4f2_2    conda-forge
 thrift_sasl               0.4.2            py37h8f50634_0    conda-forge
 tk                        8.6.10               hed695b0_0    conda-forge
 toolz                     0.10.0                     py_0    conda-forge
 tornado                   6.0.4            py37h8f50634_1    conda-forge
 traitlets                 4.3.3            py37hc8dfbb8_1    conda-forge
 typing_extensions         3.7.4.2                    py_0    conda-forge
 urllib3                   1.25.10                    py_0    conda-forge
 wcwidth                   0.2.5              pyh9f0ad1d_0    conda-forge
 webencodings              0.5.1                      py_1    conda-forge
 wheel                     0.34.2                     py_1    conda-forge
 xorg-fixesproto           5.0               h14c3975_1002    conda-forge
 xorg-inputproto           2.3.2             h14c3975_1002    conda-forge
 xorg-kbproto              1.0.7             h14c3975_1002    conda-forge
 xorg-libice               1.0.10               h516909a_0    conda-forge
 xorg-libsm                1.2.3             h84519dc_1000    conda-forge
 xorg-libx11               1.6.9                h516909a_0    conda-forge
 xorg-libxau               1.0.9                h14c3975_0    conda-forge
 xorg-libxdmcp             1.1.3                h516909a_0    conda-forge
 xorg-libxext              1.3.4                h516909a_0    conda-forge
 xorg-libxfixes            5.0.3             h516909a_1004    conda-forge
 xorg-libxi                1.7.10               h516909a_0    conda-forge
 xorg-libxrender           0.9.10            h516909a_1002    conda-forge
 xorg-libxtst              1.2.3             h516909a_1002    conda-forge
 xorg-recordproto          1.14.2            h516909a_1002    conda-forge
 xorg-renderproto          0.11.1            h14c3975_1002    conda-forge
 xorg-xextproto            7.3.0             h14c3975_1002    conda-forge
 xorg-xproto               7.0.31            h14c3975_1007    conda-forge
 xz                        5.2.5                h516909a_1    conda-forge
 yaml                      0.2.5                h516909a_0    conda-forge
 zeromq                    4.3.2                he1b5a44_2    conda-forge
 zict                      2.0.0                      py_0    conda-forge
 zipp                      3.1.0                      py_0    conda-forge
 zlib                      1.2.11            h516909a_1006    conda-forge
 zstd                      1.4.5                h6597ccf_1    conda-forge

bug cuDF (Python)

All 5 comments

@galipremsagar can you take a look at this?

Looking into it..


cudf                      0.15.0a200723   py37_gd23252798_3207    rapidsai-nightly
dask-cudf                 0.15.0a200723   py37_gd23252798_3207    rapidsai-nightly
libcudf                   0.15.0a200723   cuda10.2_gd23252798_3207    rapidsai-nightly

new_df[2499840:2499901] <<== has issue

new_df[2499840:2499900] <<== works just fine

cutoff seems to be 60 i think

So after looking into the code, The values remain correct. It's just that __repr__ function is broken due to .iloc not functioning correctly:
https://github.com/rapidsai/cudf/blob/branch-0.15/python/cudf/cudf/core/dataframe.py#L1188

See a minimal reproducer below:

(Pdb) df = self.head(upper_rows)
(Pdb) df.to_pandas()
               a
2500000  2500000
2500001  2500001
2500002  2500002
2500003  2500003
2500004  2500004
2500005  2500005
2500006  2500006
2500007  2500007
2500008  2500008
2500009  2500009
2500010  2500010
2500011  2500011
2500012  2500012
2500013  2500013
2500014  2500014
2500015  2500015
2500016  2500016
2500017  2500017
2500018  2500018
2500019  2500019
2500020  2500020
2500021  2500021
2500022  2500022
2500023  2500023
2500024  2500024
2500025  2500025
2500026  2500026
2500027  2500027
2500028  2500028
2500029  2500029
2500030  2500030
(Pdb) df.to_pandas().iloc[:, 1:]
Empty DataFrame
Columns: []
Index: [2500000, 2500001, 2500002, 2500003, 2500004, 2500005, 2500006, 2500007, 2500008, 2500009, 2500010, 2500011, 2500012, 2500013, 2500014, 2500015, 2500016, 2500017, 2500018, 2500019, 2500020, 2500021, 2500022, 2500023, 2500024, 2500025, 2500026, 2500027, 2500028, 2500029, 2500030]
(Pdb) df.iloc[:, 1:].to_pandas()
Empty DataFrame
Columns: []
Index: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
(Pdb) 

Since this incorrect half dataframe is being passed into concat we are having a corrupted dataframe. Will issue a fix 馃憤

Was this page helpful?
0 / 5 - 0 ratings