Skip to content
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

[BUG] df.loc drops index labels during assignment #15718

Closed
galipremsagar opened this issue May 10, 2024 · 0 comments · Fixed by #15752
Closed

[BUG] df.loc drops index labels during assignment #15718

galipremsagar opened this issue May 10, 2024 · 0 comments · Fixed by #15752
Assignees
Labels
bug Something isn't working cudf.pandas Issues specific to cudf.pandas

Comments

@galipremsagar
Copy link
Contributor

galipremsagar commented May 10, 2024

Describe the bug
df.loc seems to be dropping index labels, see example below.

Steps/Code to reproduce bug

# pandas:
> import pandas as pd
> df = pd.DataFrame(index=['index_1', 'index_2', 'index_3'])
> df.loc[["index_1"], "new_col"] = "A"
> df
     new_col
index_1    A
index_2  NaN
index_3  NaN

# cuDF:
> import cudf
> df = cudf.DataFrame(index=['index_1', 'index_2', 'index_3'])
> df.loc[["index_1"], "new_col"] = "A"
> df
     new_col
index_1    A

Expected behavior
Match pandas

Environment overview (please complete the following information)

  • Environment location: [Bare-metal]
  • Method of cuDF install: [from source]

Environment details
Please run and paste the output of the cudf/print_env.sh script here, to gather any other relevant environment details

Click here to see environment details
 **git***
 commit e1c6dc2848984279e6c5422496390c6396e74b6c (HEAD -> 15713, upstream/branch-24.06, branch-24.06)
 Author: Alfred Xu <lovedreamf@gmail.com>
 Date:   Fri May 10 22:37:21 2024 +0800
 
 Refine `CudaTest.testCudaException` in case throwing wrong type of CudaError under aarch64 (#15706)
 
 Fix #15705
 
 1. Replacing  `Cuda.memset(Long.MAX_VALUE, (byte) 0, 1024)` with `Cuda.freePinned(-1L)`, the previous one throws fatal CUDAError `cudaErrorIllegalAddress`  instead of nonFatal CUDAError `cudaErrorInvalidValue` under aarch64, while the later one throwing the correct kind of error.
 
 2. Enable the test case when Sanitizer is ON
 
 Authors:
 - Alfred Xu (https://github.com/sperlingxx)
 
 Approvers:
 - Tim Liu (https://github.com/NvTimLiu)
 - Jason Lowe (https://github.com/jlowe)
 
 URL: https://github.com/rapidsai/cudf/pull/15706
 **git submodules***
 
 ***OS Information***
 DISTRIB_ID=Ubuntu
 DISTRIB_RELEASE=22.04
 DISTRIB_CODENAME=jammy
 DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"
 PRETTY_NAME="Ubuntu 22.04.2 LTS"
 NAME="Ubuntu"
 VERSION_ID="22.04"
 VERSION="22.04.2 LTS (Jammy Jellyfish)"
 VERSION_CODENAME=jammy
 ID=ubuntu
 ID_LIKE=debian
 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"
 UBUNTU_CODENAME=jammy
 Linux dt07 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 
 ***GPU Information***
 Fri May 10 17:30:28 2024
 +---------------------------------------------------------------------------------------+
 | NVIDIA-SMI 535.129.03             Driver Version: 535.129.03   CUDA Version: 12.2     |
 |-----------------------------------------+----------------------+----------------------+
 | GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
 | Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
 |                                         |                      |               MIG M. |
 |=========================================+======================+======================|
 |   0  Tesla T4                       On  | 00000000:3B:00.0 Off |                    0 |
 | N/A   48C    P0              27W /  70W |    130MiB / 15360MiB |      0%      Default |
 |                                         |                      |                  N/A |
 +-----------------------------------------+----------------------+----------------------+
 |   1  Tesla T4                       On  | 00000000:5E:00.0 Off |                    0 |
 | N/A   36C    P8               9W /  70W |      4MiB / 15360MiB |      0%      Default |
 |                                         |                      |                  N/A |
 +-----------------------------------------+----------------------+----------------------+
 |   2  Tesla T4                       On  | 00000000:AF:00.0 Off |                    0 |
 | N/A   30C    P8               9W /  70W |      4MiB / 15360MiB |      0%      Default |
 |                                         |                      |                  N/A |
 +-----------------------------------------+----------------------+----------------------+
 |   3  Tesla T4                       On  | 00000000:D8:00.0 Off |                    0 |
 | N/A   30C    P8               9W /  70W |      4MiB / 15360MiB |      0%      Default |
 |                                         |                      |                  N/A |
 +-----------------------------------------+----------------------+----------------------+
 
 +---------------------------------------------------------------------------------------+
 | Processes:                                                                            |
 |  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
 |        ID   ID                                                             Usage      |
 |=======================================================================================|
 +---------------------------------------------------------------------------------------+
 
 ***CPU***
 Architecture:                       x86_64
 CPU op-mode(s):                     32-bit, 64-bit
 Address sizes:                      46 bits physical, 48 bits virtual
 Byte Order:                         Little Endian
 CPU(s):                             64
 On-line CPU(s) list:                0-63
 Vendor ID:                          GenuineIntel
 Model name:                         Intel(R) Xeon(R) Gold 6130 CPU @ 2.10GHz
 CPU family:                         6
 Model:                              85
 Thread(s) per core:                 2
 Core(s) per socket:                 16
 Socket(s):                          2
 Stepping:                           4
 CPU max MHz:                        3700.0000
 CPU min MHz:                        1000.0000
 BogoMIPS:                           4200.00
 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 ept_ad 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 pku ospke md_clear flush_l1d arch_capabilities
 Virtualization:                     VT-x
 L1d cache:                          1 MiB (32 instances)
 L1i cache:                          1 MiB (32 instances)
 L2 cache:                           32 MiB (32 instances)
 L3 cache:                           44 MiB (2 instances)
 NUMA node(s):                       2
 NUMA node0 CPU(s):                  0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62
 NUMA node1 CPU(s):                  1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63
 Vulnerability Gather data sampling: Mitigation; Microcode
 Vulnerability Itlb multihit:        KVM: Mitigation: VMX disabled
 Vulnerability L1tf:                 Mitigation; PTE Inversion; VMX conditional cache flushes, SMT vulnerable
 Vulnerability Mds:                  Mitigation; Clear CPU buffers; SMT vulnerable
 Vulnerability Meltdown:             Mitigation; PTI
 Vulnerability Mmio stale data:      Mitigation; Clear CPU buffers; SMT vulnerable
 Vulnerability Retbleed:             Mitigation; IBRS
 Vulnerability Spec rstack overflow: Not affected
 Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl and seccomp
 Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
 Vulnerability Spectre v2:           Mitigation; IBRS, IBPB conditional, STIBP conditional, RSB filling, PBRSB-eIBRS Not affected
 Vulnerability Srbds:                Not affected
 Vulnerability Tsx async abort:      Mitigation; Clear CPU buffers; SMT vulnerable
 
 ***CMake***
 /nvme/0/pgali/envs/cudfdev/bin/cmake
 cmake version 3.29.2
 
 CMake suite maintained and supported by Kitware (kitware.com/cmake).
 
 ***g++***
 /nvme/0/pgali/envs/cudfdev/bin/g++
 g++ (conda-forge gcc 11.4.0-7) 11.4.0
 Copyright (C) 2021 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***
 /nvme/0/pgali/envs/cudfdev/bin/nvcc
 nvcc: NVIDIA (R) Cuda compiler driver
 Copyright (c) 2005-2023 NVIDIA Corporation
 Built on Tue_Aug_15_22:02:13_PDT_2023
 Cuda compilation tools, release 12.2, V12.2.140
 Build cuda_12.2.r12.2/compiler.33191640_0
 
 ***Python***
 /nvme/0/pgali/envs/cudfdev/bin/python
 Python 3.11.9
 
 ***Environment Variables***
 PATH                            : /nvme/0/pgali/envs/cudfdev/bin:/nvme/0/pgali/envs/cudfdev/bin:/nvme/0/pgali/anaconda3/bin:/nvme/0/pgali/envs/cudfdev/bin:/nvme/0/pgali/.cargo/bin:/home/nfs/pgali/.vscode-server/cli/servers/Stable-b58957e67ee1e712cebf466b995adf4c5307b2bd/server/bin/remote-cli:/nvme/0/pgali/.cargo/bin:/nvme/0/pgali/anaconda3/bin:/nvme/0/pgali/anaconda3/condabin:/nvme/0/pgali/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin:/usr/local/cuda/bin
 LD_LIBRARY_PATH                 : /usr/local/cuda/lib64:/usr/local/cuda/lib64::/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
 NUMBAPRO_NVVM                   :
 NUMBAPRO_LIBDEVICE              :
 CONDA_PREFIX                    : /nvme/0/pgali/envs/cudfdev
 PYTHON_PATH                     :
 
 ***conda packages***
 /nvme/0/pgali/anaconda3/bin/conda
 # packages in environment at /nvme/0/pgali/envs/cudfdev:
 #
 # Name                    Version                   Build  Channel
 _libgcc_mutex             0.1                 conda_forge    conda-forge
 _openmp_mutex             4.5                  2_kmp_llvm    conda-forge
 _sysroot_linux-64_curr_repodata_hack 3                   h69a702a_14    conda-forge
 accessible-pygments       0.0.4              pyhd8ed1ab_0    conda-forge
 aiobotocore               2.12.2             pyhd8ed1ab_0    conda-forge
 aiohttp                   3.9.5           py311h459d7ec_0    conda-forge
 aioitertools              0.11.0             pyhd8ed1ab_0    conda-forge
 aiosignal                 1.3.1              pyhd8ed1ab_0    conda-forge
 alabaster                 0.7.16             pyhd8ed1ab_0    conda-forge
 annotated-types           0.6.0              pyhd8ed1ab_0    conda-forge
 anyio                     4.3.0              pyhd8ed1ab_0    conda-forge
 argon2-cffi               23.1.0             pyhd8ed1ab_0    conda-forge
 argon2-cffi-bindings      21.2.0          py311h459d7ec_4    conda-forge
 arrow                     1.3.0              pyhd8ed1ab_0    conda-forge
 asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
 async-lru                 2.0.4              pyhd8ed1ab_0    conda-forge
 attrs                     23.2.0             pyh71513ae_0    conda-forge
 aws-c-auth                0.7.19               h5f1c8d9_1    conda-forge
 aws-c-cal                 0.6.12               h2ba76a8_0    conda-forge
 aws-c-common              0.9.17               h4ab18f5_0    conda-forge
 aws-c-compression         0.2.18               h36a0aea_4    conda-forge
 aws-c-event-stream        0.4.2               h161de36_10    conda-forge
 aws-c-http                0.8.1               h63f54a0_13    conda-forge
 aws-c-io                  0.14.8               h96d4d28_0    conda-forge
 aws-c-mqtt                0.10.4               hcc7299c_2    conda-forge
 aws-c-s3                  0.5.8                hdec9a15_2    conda-forge
 aws-c-sdkutils            0.1.16               h36a0aea_0    conda-forge
 aws-checksums             0.1.18               h36a0aea_4    conda-forge
 aws-crt-cpp               0.26.8               h5ef9dee_9    conda-forge
 aws-sam-translator        1.88.0             pyhd8ed1ab_0    conda-forge
 aws-sdk-cpp               1.11.267             h51dfee4_8    conda-forge
 aws-xray-sdk              2.13.0             pyhd8ed1ab_0    conda-forge
 babel                     2.14.0             pyhd8ed1ab_0    conda-forge
 backports.zoneinfo        0.2.1           py311h38be061_8    conda-forge
 bcrypt                    4.1.2           py311h46250e7_0    conda-forge
 beautifulsoup4            4.12.3             pyha770c72_0    conda-forge
 binutils                  2.40                 h4852527_0    conda-forge
 binutils_impl_linux-64    2.40                 ha885e6a_0    conda-forge
 binutils_linux-64         2.40                 hdade7a5_3    conda-forge
 bleach                    6.1.0              pyhd8ed1ab_0    conda-forge
 blinker                   1.8.2              pyhd8ed1ab_0    conda-forge
 bokeh                     3.4.1              pyhd8ed1ab_0    conda-forge
 boto3                     1.34.51            pyhd8ed1ab_0    conda-forge
 botocore                  1.34.51         pyge310_1234567_0    conda-forge
 breathe                   4.35.0             pyhd8ed1ab_1    conda-forge
 brotli-python             1.1.0           py311hb755f60_1    conda-forge
 bzip2                     1.0.8                hd590300_5    conda-forge
 c-ares                    1.28.1               hd590300_0    conda-forge
 c-compiler                1.5.2                h0b41bf4_0    conda-forge
 ca-certificates           2024.2.2             hbcca054_0    conda-forge
 cached-property           1.5.2                hd8ed1ab_1    conda-forge
 cached_property           1.5.2              pyha770c72_1    conda-forge
 cachetools                5.3.3              pyhd8ed1ab_0    conda-forge
 certifi                   2024.2.2           pyhd8ed1ab_0    conda-forge
 cffi                      1.16.0          py311hb3a22ac_0    conda-forge
 cfgv                      3.3.1              pyhd8ed1ab_0    conda-forge
 cfn-lint                  0.87.2             pyhd8ed1ab_0    conda-forge
 charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
 clang                     16.0.6               h39da44c_6    conda-forge
 clang-16                  16.0.6          default_h127d8a8_6    conda-forge
 clang-format              16.0.6          default_h127d8a8_6    conda-forge
 clang-format-16           16.0.6          default_h127d8a8_6    conda-forge
 clang-tools               16.0.6          default_h127d8a8_6    conda-forge
 click                     8.1.7           unix_pyh707e725_0    conda-forge
 cloudpickle               3.0.0              pyhd8ed1ab_0    conda-forge
 cmake                     3.29.2               h91dbaaa_1    conda-forge
 colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
 comm                      0.2.2              pyhd8ed1ab_0    conda-forge
 commonmark                0.9.1                      py_0    conda-forge
 contourpy                 1.2.1           py311h9547e67_0    conda-forge
 coverage                  7.5.1           py311h331c9d8_0    conda-forge
 cramjam                   2.8.3           py311h46250e7_0    conda-forge
 cryptography              42.0.7          py311h4a61cc7_0    conda-forge
 cuda-cccl_linux-64        12.2.140             ha770c72_0    conda-forge
 cuda-crt-dev_linux-64     12.2.140             ha770c72_1    conda-forge
 cuda-crt-tools            12.2.140             ha770c72_1    conda-forge
 cuda-cudart               12.2.140             hd3aeb46_0    conda-forge
 cuda-cudart-dev           12.2.140             hd3aeb46_0    conda-forge
 cuda-cudart-dev_linux-64  12.2.140             h59595ed_0    conda-forge
 cuda-cudart-static        12.2.140             hd3aeb46_0    conda-forge
 cuda-cudart-static_linux-64 12.2.140             h59595ed_0    conda-forge
 cuda-cudart_linux-64      12.2.140             h59595ed_0    conda-forge
 cuda-driver-dev_linux-64  12.2.140             h59595ed_0    conda-forge
 cuda-nvcc                 12.2.140             hcdd1206_0    conda-forge
 cuda-nvcc-dev_linux-64    12.2.140             ha770c72_1    conda-forge
 cuda-nvcc-impl            12.2.140             hd3aeb46_1    conda-forge
 cuda-nvcc-tools           12.2.140             hd3aeb46_1    conda-forge
 cuda-nvcc_linux-64        12.2.140             h8a487aa_0    conda-forge
 cuda-nvrtc                12.2.140             hd3aeb46_0    conda-forge
 cuda-nvrtc-dev            12.2.140             hd3aeb46_0    conda-forge
 cuda-nvtx                 12.2.140             h59595ed_0    conda-forge
 cuda-nvtx-dev             12.2.140             ha770c72_0    conda-forge
 cuda-nvvm-dev_linux-64    12.2.140             ha770c72_1    conda-forge
 cuda-nvvm-impl            12.2.140             h59595ed_1    conda-forge
 cuda-nvvm-tools           12.2.140             h59595ed_1    conda-forge
 cuda-python               12.4.0          py311h817de4b_2    conda-forge
 cuda-sanitizer-api        12.2.140             h59595ed_0    conda-forge
 cuda-version              12.2                 he2b69de_3    conda-forge
 cudf                      24.6.0                   pypi_0    pypi
 cudnn                     8.9.7.29             h092f7fd_3    conda-forge
 cupy                      13.1.0          py311hf829483_4    conda-forge
 cupy-core                 13.1.0          py311he1e6e68_4    conda-forge
 cxx-compiler              1.5.2                hf52228f_0    conda-forge
 cyrus-sasl                2.1.27               h54b06d7_7    conda-forge
 cython                    3.0.10          py311hb755f60_0    conda-forge
 cytoolz                   0.12.3          py311h459d7ec_0    conda-forge
 dask                      2024.5.1a240508  py_ge4a05450_2    dask/label/dev
 dask-core                 2024.5.1a240510 py_g6f5821d66_13    dask/label/dev
 dask-cuda                 24.06.00a13     py311_240510_gef83eb4_13    rapidsai-nightly
 dask-cudf                 24.6.0                   pypi_0    pypi
 dask-expr                 1.1.1a240509      py_ga8f19ab_2    dask/label/dev
 datasets                  2.19.1             pyhd8ed1ab_0    conda-forge
 debugpy                   1.8.1           py311hb755f60_0    conda-forge
 decopatch                 1.4.10             pyhd8ed1ab_0    conda-forge
 decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
 defusedxml                0.7.1              pyhd8ed1ab_0    conda-forge
 dill                      0.3.8              pyhd8ed1ab_0    conda-forge
 distlib                   0.3.8              pyhd8ed1ab_0    conda-forge
 distributed               2024.5.1a240508  py_ge4a05450_2    dask/label/dev
 dlpack                    0.8                  h59595ed_3    conda-forge
 docker-py                 7.0.0              pyhd8ed1ab_0    conda-forge
 docutils                  0.19            py311h38be061_1    conda-forge
 doxygen                   1.9.1                hb166930_1    conda-forge
 ecdsa                     0.19.0             pyhd8ed1ab_0    conda-forge
 entrypoints               0.4                pyhd8ed1ab_0    conda-forge
 exceptiongroup            1.2.0              pyhd8ed1ab_2    conda-forge
 execnet                   2.1.1              pyhd8ed1ab_0    conda-forge
 executing                 2.0.1              pyhd8ed1ab_0    conda-forge
 fastavro                  1.9.4           py311h459d7ec_0    conda-forge
 fastrlock                 0.8.2           py311hb755f60_2    conda-forge
 filelock                  3.14.0             pyhd8ed1ab_0    conda-forge
 flask                     3.0.3              pyhd8ed1ab_0    conda-forge
 flask_cors                3.0.10             pyhd3deb0d_0    conda-forge
 fmt                       10.2.1               h00ab1b0_0    conda-forge
 fqdn                      1.5.1              pyhd8ed1ab_0    conda-forge
 freetype                  2.12.1               h267a509_2    conda-forge
 frozenlist                1.4.1           py311h459d7ec_0    conda-forge
 fsspec                    2024.3.1           pyhca7485f_0    conda-forge
 future                    1.0.0              pyhd8ed1ab_0    conda-forge
 gcc                       11.4.0               h602e360_7    conda-forge
 gcc_impl_linux-64         11.4.0               h00c12a0_7    conda-forge
 gcc_linux-64              11.4.0               h0f0c6b6_3    conda-forge
 gflags                    2.2.2             he1b5a44_1004    conda-forge
 glog                      0.7.0                hed5481d_0    conda-forge
 gmp                       6.3.0                h59595ed_1    conda-forge
 gmpy2                     2.1.5           py311he48d604_0    conda-forge
 graphql-core              3.2.3              pyhd8ed1ab_0    conda-forge
 greenlet                  3.0.3           py311hb755f60_0    conda-forge
 gxx                       11.4.0               h602e360_7    conda-forge
 gxx_impl_linux-64         11.4.0               h634f3ee_7    conda-forge
 gxx_linux-64              11.4.0               h2730b16_3    conda-forge
 h11                       0.14.0             pyhd8ed1ab_0    conda-forge
 h2                        4.1.0              pyhd8ed1ab_0    conda-forge
 hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
 httpcore                  1.0.5              pyhd8ed1ab_0    conda-forge
 httpx                     0.27.0             pyhd8ed1ab_0    conda-forge
 huggingface_hub           0.23.0             pyhd8ed1ab_0    conda-forge
 hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
 hypothesis                6.100.5            pyha770c72_0    conda-forge
 icu                       73.2                 h59595ed_0    conda-forge
 identify                  2.5.36             pyhd8ed1ab_0    conda-forge
 idna                      3.7                pyhd8ed1ab_0    conda-forge
 imagesize                 1.4.1              pyhd8ed1ab_0    conda-forge
 importlib-metadata        7.1.0              pyha770c72_0    conda-forge
 importlib-resources       6.4.0              pyhd8ed1ab_0    conda-forge
 importlib_metadata        7.1.0                hd8ed1ab_0    conda-forge
 importlib_resources       6.4.0              pyhd8ed1ab_0    conda-forge
 iniconfig                 2.0.0              pyhd8ed1ab_0    conda-forge
 ipykernel                 6.29.3             pyhd33586a_0    conda-forge
 ipython                   8.24.0             pyh707e725_0    conda-forge
 isoduration               20.11.0            pyhd8ed1ab_0    conda-forge
 itsdangerous              2.2.0              pyhd8ed1ab_0    conda-forge
 jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
 jinja2                    3.1.4              pyhd8ed1ab_0    conda-forge
 jmespath                  1.0.1              pyhd8ed1ab_0    conda-forge
 joserfc                   0.9.0              pyhd8ed1ab_1    conda-forge
 jschema-to-python         1.2.3              pyhd8ed1ab_0    conda-forge
 json5                     0.9.25             pyhd8ed1ab_0    conda-forge
 jsondiff                  2.0.0              pyhd8ed1ab_0    conda-forge
 jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
 jsonpickle                3.0.4              pyhd8ed1ab_0    conda-forge
 jsonpointer               2.4             py311h38be061_3    conda-forge
 jsonschema                4.22.0             pyhd8ed1ab_0    conda-forge
 jsonschema-path           0.3.2           py311h06a4308_0
 jsonschema-specifications 2023.12.1          pyhd8ed1ab_0    conda-forge
 jsonschema-with-format-nongpl 4.22.0             pyhd8ed1ab_0    conda-forge
 junit-xml                 1.9                pyh9f0ad1d_0    conda-forge
 jupyter-cache             1.0.0              pyhd8ed1ab_0    conda-forge
 jupyter-lsp               2.2.5              pyhd8ed1ab_0    conda-forge
 jupyter_client            8.6.1              pyhd8ed1ab_0    conda-forge
 jupyter_core              5.7.2           py311h38be061_0    conda-forge
 jupyter_events            0.10.0             pyhd8ed1ab_0    conda-forge
 jupyter_server            2.14.0             pyhd8ed1ab_0    conda-forge
 jupyter_server_terminals  0.5.3              pyhd8ed1ab_0    conda-forge
 jupyterlab                4.1.8              pyhd8ed1ab_0    conda-forge
 jupyterlab_pygments       0.3.0              pyhd8ed1ab_1    conda-forge
 jupyterlab_server         2.27.1             pyhd8ed1ab_0    conda-forge
 kernel-headers_linux-64   3.10.0              h4a8ded7_14    conda-forge
 keyutils                  1.6.1                h166bdaf_0    conda-forge
 krb5                      1.21.2               h659d440_0    conda-forge
 lazy-object-proxy         1.10.0          py311h459d7ec_0    conda-forge
 lcms2                     2.16                 hb7c19ff_0    conda-forge
 ld_impl_linux-64          2.40                 h55db66e_0    conda-forge
 lerc                      4.0.0                h27087fc_0    conda-forge
 libabseil                 20240116.2      cxx17_h59595ed_0    conda-forge
 libarrow                  16.0.0           hefa796f_1_cpu    conda-forge
 libarrow-acero            16.0.0           hac33072_1_cpu    conda-forge
 libarrow-dataset          16.0.0           hac33072_1_cpu    conda-forge
 libarrow-substrait        16.0.0           h7e0c224_1_cpu    conda-forge
 libblas                   3.9.0           22_linux64_openblas    conda-forge
 libbrotlicommon           1.1.0                hd590300_1    conda-forge
 libbrotlidec              1.1.0                hd590300_1    conda-forge
 libbrotlienc              1.1.0                hd590300_1    conda-forge
 libcblas                  3.9.0           22_linux64_openblas    conda-forge
 libclang-cpp16            16.0.6          default_h127d8a8_6    conda-forge
 libclang13                18.1.5          default_h5d6823c_0    conda-forge
 libcrc32c                 1.1.2                h9c3ff4c_0    conda-forge
 libcublas                 12.2.5.6             hd3aeb46_0    conda-forge
 libcufft                  11.0.8.103           hd3aeb46_0    conda-forge
 libcufile                 1.7.2.10             hd3aeb46_0    conda-forge
 libcufile-dev             1.7.2.10             hd3aeb46_0    conda-forge
 libcurand                 10.3.3.141           hd3aeb46_0    conda-forge
 libcurand-dev             10.3.3.141           hd3aeb46_0    conda-forge
 libcurl                   8.7.1                hca28451_0    conda-forge
 libcusolver               11.5.2.141           hd3aeb46_0    conda-forge
 libcusparse               12.1.2.141           hd3aeb46_0    conda-forge
 libdeflate                1.20                 hd590300_0    conda-forge
 libedit                   3.1.20191231         he28a2e2_2    conda-forge
 libev                     4.33                 hd590300_2    conda-forge
 libevent                  2.1.12               hf998b51_1    conda-forge
 libexpat                  2.6.2                h59595ed_0    conda-forge
 libffi                    3.4.2                h7f98852_5    conda-forge
 libgcc-devel_linux-64     11.4.0             h515aa5d_107    conda-forge
 libgcc-ng                 13.2.0               h77fa898_7    conda-forge
 libgfortran-ng            13.2.0               h69a702a_7    conda-forge
 libgfortran5              13.2.0               hca663fb_7    conda-forge
 libgomp                   13.2.0               h77fa898_7    conda-forge
 libgoogle-cloud           2.23.0               h9be4e54_1    conda-forge
 libgoogle-cloud-storage   2.23.0               hc7a4891_1    conda-forge
 libgrpc                   1.62.2               h15f2491_0    conda-forge
 libhwloc                  2.10.0          default_h2fb2949_1000    conda-forge
 libiconv                  1.17                 hd590300_2    conda-forge
 libjpeg-turbo             3.0.0                hd590300_1    conda-forge
 libkvikio                 24.06.00a       cuda12_240510_g6ed7bcc_16    rapidsai-nightly
 liblapack                 3.9.0           22_linux64_openblas    conda-forge
 libllvm14                 14.0.6               hcd5def8_4    conda-forge
 libllvm16                 16.0.6               hb3ce162_3    conda-forge
 libllvm18                 18.1.5               hb77312f_0    conda-forge
 libmagma                  2.7.2                h173bb3b_2    conda-forge
 libmagma_sparse           2.7.2                h173bb3b_3    conda-forge
 libnghttp2                1.58.0               h47da74e_1    conda-forge
 libnsl                    2.0.1                hd590300_0    conda-forge
 libntlm                   1.4               h7f98852_1002    conda-forge
 libnvjitlink              12.2.140             hd3aeb46_0    conda-forge
 libopenblas               0.3.27          pthreads_h413a1c8_0    conda-forge
 libparquet                16.0.0           h6a7eafb_1_cpu    conda-forge
 libpng                    1.6.43               h2797004_0    conda-forge
 libprotobuf               4.25.3               h08a7969_0    conda-forge
 librdkafka                1.9.2                ha5a0de0_2    conda-forge
 libre2-11                 2023.09.01           h5a48ba9_2    conda-forge
 librmm                    24.06.00a28     cuda12_240510_gaa165882_28    rapidsai-nightly
 libsanitizer              11.4.0               h5763a12_7    conda-forge
 libsodium                 1.0.18               h36c2ea0_1    conda-forge
 libsqlite                 3.45.3               h2797004_0    conda-forge
 libssh2                   1.11.0               h0841786_0    conda-forge
 libstdcxx-devel_linux-64  11.4.0             h515aa5d_107    conda-forge
 libstdcxx-ng              13.2.0               hc0a3c3a_7    conda-forge
 libthrift                 0.19.0               hb90f79a_1    conda-forge
 libtiff                   4.6.0                h1dd3fc0_3    conda-forge
 libtorch                  2.1.2           cuda120_he0d6596_304    conda-forge
 libutf8proc               2.8.0                h166bdaf_0    conda-forge
 libuuid                   2.38.1               h0b41bf4_0    conda-forge
 libuv                     1.48.0               hd590300_0    conda-forge
 libwebp-base              1.4.0                hd590300_0    conda-forge
 libxcb                    1.15                 h0b41bf4_0    conda-forge
 libxcrypt                 4.4.36               hd590300_1    conda-forge
 libxml2                   2.12.6               h232c23b_2    conda-forge
 libzlib                   1.2.13               hd590300_5    conda-forge
 livereload                2.6.3              pyh9f0ad1d_0    conda-forge
 llvm-openmp               18.1.5               ha31de31_0    conda-forge
 llvmlite                  0.42.0          py311ha6695c7_1    conda-forge
 locket                    1.0.0              pyhd8ed1ab_0    conda-forge
 lz4                       4.3.3           py311h38e4bf4_0    conda-forge
 lz4-c                     1.9.4                hcb278e6_0    conda-forge
 make                      4.3                  hd18ef5c_1    conda-forge
 makefun                   1.15.2             pyhd8ed1ab_0    conda-forge
 markdown                  3.6                pyhd8ed1ab_0    conda-forge
 markdown-it-py            3.0.0              pyhd8ed1ab_0    conda-forge
 markupsafe                2.1.5           py311h459d7ec_0    conda-forge
 matplotlib-inline         0.1.7              pyhd8ed1ab_0    conda-forge
 mdit-py-plugins           0.4.0              pyhd8ed1ab_0    conda-forge
 mdurl                     0.1.2              pyhd8ed1ab_0    conda-forge
 mistune                   3.0.2              pyhd8ed1ab_0    conda-forge
 mkl                       2023.2.0         h84fe81f_50496    conda-forge
 moto                      5.0.6              pyhd8ed1ab_0    conda-forge
 mpc                       1.3.1                hfe3b2da_0    conda-forge
 mpfr                      4.2.1                h9458935_1    conda-forge
 mpmath                    1.3.0              pyhd8ed1ab_0    conda-forge
 msgpack-python            1.0.7           py311h9547e67_0    conda-forge
 multidict                 6.0.5           py311h459d7ec_0    conda-forge
 multiprocess              0.70.16         py311h459d7ec_0    conda-forge
 myst-nb                   1.1.0              pyhd8ed1ab_0    conda-forge
 myst-parser               3.0.1              pyhd8ed1ab_0    conda-forge
 nbclient                  0.10.0             pyhd8ed1ab_0    conda-forge
 nbconvert                 7.16.4               hd8ed1ab_0    conda-forge
 nbconvert-core            7.16.4             pyhd8ed1ab_0    conda-forge
 nbconvert-pandoc          7.16.4               hd8ed1ab_0    conda-forge
 nbformat                  5.10.4             pyhd8ed1ab_0    conda-forge
 nbsphinx                  0.9.4              pyhd8ed1ab_0    conda-forge
 nccl                      2.21.5.1             h3a97aeb_0    conda-forge
 ncurses                   6.5                  h59595ed_0    conda-forge
 nest-asyncio              1.6.0              pyhd8ed1ab_0    conda-forge
 networkx                  3.3                pyhd8ed1ab_1    conda-forge
 ninja                     1.12.0               h00ab1b0_0    conda-forge
 nodeenv                   1.8.0              pyhd8ed1ab_0    conda-forge
 notebook                  7.1.3              pyhd8ed1ab_0    conda-forge
 notebook-shim             0.2.4              pyhd8ed1ab_0    conda-forge
 numba                     0.59.1          py311h96b013e_0    conda-forge
 numpy                     1.26.4          py311h64a7726_0    conda-forge
 numpydoc                  1.7.0              pyhd8ed1ab_0    conda-forge
 nvcomp                    3.0.6                h10b603f_0    conda-forge
 nvtx                      0.2.10          py311h459d7ec_0    conda-forge
 openapi-schema-validator  0.6.2              pyhd8ed1ab_0    conda-forge
 openapi-spec-validator    0.7.1              pyhd8ed1ab_0    conda-forge
 openjpeg                  2.5.2                h488ebb8_0    conda-forge
 openssl                   3.3.0                hd590300_0    conda-forge
 orc                       2.0.0                h17fec99_1    conda-forge
 overrides                 7.7.0              pyhd8ed1ab_0    conda-forge
 packaging                 24.0               pyhd8ed1ab_0    conda-forge
 pandas                    2.2.2           py311h320fe9a_0    conda-forge
 pandoc                    3.1.13               ha770c72_0    conda-forge
 pandocfilters             1.5.0              pyhd8ed1ab_0    conda-forge
 paramiko                  3.4.0              pyhd8ed1ab_0    conda-forge
 parso                     0.8.4              pyhd8ed1ab_0    conda-forge
 partd                     1.4.2              pyhd8ed1ab_0    conda-forge
 pathable                  0.4.3              pyhd8ed1ab_0    conda-forge
 pathspec                  0.12.1             pyhd8ed1ab_0    conda-forge
 pbr                       6.0.0              pyhd8ed1ab_0    conda-forge
 pexpect                   4.9.0              pyhd8ed1ab_0    conda-forge
 pickleshare               0.7.5                   py_1003    conda-forge
 pillow                    10.3.0          py311h18e6fac_0    conda-forge
 pip                       24.0               pyhd8ed1ab_0    conda-forge
 pkgutil-resolve-name      1.3.10             pyhd8ed1ab_1    conda-forge
 platformdirs              4.2.1              pyhd8ed1ab_0    conda-forge
 pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
 pre-commit                3.7.0              pyha770c72_0    conda-forge
 prometheus_client         0.20.0             pyhd8ed1ab_0    conda-forge
 prompt-toolkit            3.0.42             pyha770c72_0    conda-forge
 psutil                    5.9.8           py311h459d7ec_0    conda-forge
 pthread-stubs             0.4               h36c2ea0_1001    conda-forge
 ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
 pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
 py-cpuinfo                9.0.0              pyhd8ed1ab_0    conda-forge
 pyarrow                   16.0.0          py311h781c19f_0    conda-forge
 pyarrow-core              16.0.0          py311h8e2c35d_0_cpu    conda-forge
 pyarrow-hotfix            0.6                pyhd8ed1ab_0    conda-forge
 pyasn1                    0.6.0              pyhd8ed1ab_0    conda-forge
 pycparser                 2.22               pyhd8ed1ab_0    conda-forge
 pydantic                  2.7.1              pyhd8ed1ab_0    conda-forge
 pydantic-core             2.18.2          py311h5ecf98a_0    conda-forge
 pydata-sphinx-theme       0.15.2             pyhd8ed1ab_0    conda-forge
 pygments                  2.18.0             pyhd8ed1ab_0    conda-forge
 pynacl                    1.5.0           py311h459d7ec_3    conda-forge
 pynvjitlink               0.2.3           py311hdaa3023_0    rapidsai
 pynvml                    11.4.1             pyhd8ed1ab_0    conda-forge
 pyparsing                 3.1.2              pyhd8ed1ab_0    conda-forge
 pysocks                   1.7.1              pyha2e5f31_6    conda-forge
 pytest                    7.4.4              pyhd8ed1ab_0    conda-forge
 pytest-benchmark          4.0.0              pyhd8ed1ab_0    conda-forge
 pytest-cases              3.8.5              pyhd8ed1ab_0    conda-forge
 pytest-cov                5.0.0              pyhd8ed1ab_0    conda-forge
 pytest-xdist              3.5.0              pyhd8ed1ab_0    conda-forge
 python                    3.11.9          hb806964_0_cpython    conda-forge
 python-confluent-kafka    1.9.2           py311hd4cff14_2    conda-forge
 python-dateutil           2.9.0              pyhd8ed1ab_0    conda-forge
 python-fastjsonschema     2.19.1             pyhd8ed1ab_0    conda-forge
 python-jose               3.3.0              pyh6c4a22f_1    conda-forge
 python-json-logger        2.0.7              pyhd8ed1ab_0    conda-forge
 python-tzdata             2024.1             pyhd8ed1ab_0    conda-forge
 python-xxhash             3.4.1           py311h459d7ec_0    conda-forge
 python_abi                3.11                    4_cp311    conda-forge
 pytorch                   2.1.2           cuda120_py311h2667f23_304    conda-forge
 pytz                      2024.1             pyhd8ed1ab_0    conda-forge
 pywin32-on-windows        0.1.0              pyh1179c8e_3    conda-forge
 pyyaml                    6.0.1           py311h459d7ec_1    conda-forge
 pyzmq                     26.0.3          py311h08a0b41_0    conda-forge
 rapids-dask-dependency    24.06.00a20                py_0    rapidsai-nightly
 re2                       2023.09.01           h7f4b329_2    conda-forge
 readline                  8.2                  h8228510_1    conda-forge
 recommonmark              0.7.1              pyhd8ed1ab_0    conda-forge
 referencing               0.31.1             pyhd8ed1ab_0    conda-forge
 regex                     2024.5.10       py311h331c9d8_0    conda-forge
 requests                  2.31.0             pyhd8ed1ab_0    conda-forge
 responses                 0.25.0             pyhd8ed1ab_0    conda-forge
 rfc3339-validator         0.1.4              pyhd8ed1ab_0    conda-forge
 rfc3986-validator         0.1.1              pyh9f0ad1d_0    conda-forge
 rhash                     1.4.4                hd590300_0    conda-forge
 rich                      13.7.1             pyhd8ed1ab_0    conda-forge
 rmm                       24.06.00a28     cuda12_py311_240510_gaa165882_28    rapidsai-nightly
 rpds-py                   0.18.1          py311h5ecf98a_0    conda-forge
 rsa                       4.9                pyhd8ed1ab_0    conda-forge
 s2n                       1.4.13               he19d79f_0    conda-forge
 s3fs                      2024.3.1           pyhd8ed1ab_0    conda-forge
 s3transfer                0.10.1             pyhd8ed1ab_0    conda-forge
 safetensors               0.4.3           py311h46250e7_0    conda-forge
 sarif-om                  1.0.4              pyhd8ed1ab_0    conda-forge
 scikit-build-core         0.9.3              pyh4af843d_0    conda-forge
 scipy                     1.13.0          py311h517d4fd_1    conda-forge
 send2trash                1.8.3              pyh0d859eb_0    conda-forge
 setuptools                69.5.1             pyhd8ed1ab_0    conda-forge
 six                       1.16.0             pyh6c4a22f_0    conda-forge
 sleef                     3.5.1                h9b69904_2    conda-forge
 snappy                    1.2.0                hdb0a2a9_1    conda-forge
 sniffio                   1.3.1              pyhd8ed1ab_0    conda-forge
 snowballstemmer           2.2.0              pyhd8ed1ab_0    conda-forge
 sortedcontainers          2.4.0              pyhd8ed1ab_0    conda-forge
 soupsieve                 2.5                pyhd8ed1ab_1    conda-forge
 spdlog                    1.12.0               hd2e6256_2    conda-forge
 sphinx                    6.2.1              pyhd8ed1ab_0    conda-forge
 sphinx-autobuild          2024.4.16          pyhd8ed1ab_0    conda-forge
 sphinx-copybutton         0.5.2              pyhd8ed1ab_0    conda-forge
 sphinx-markdown-tables    0.0.17             pyh6c4a22f_0    conda-forge
 sphinx-remove-toctrees    1.0.0.post1        pyhd8ed1ab_0    conda-forge
 sphinxcontrib-applehelp   1.0.8              pyhd8ed1ab_0    conda-forge
 sphinxcontrib-devhelp     1.0.6              pyhd8ed1ab_0    conda-forge
 sphinxcontrib-htmlhelp    2.0.5              pyhd8ed1ab_0    conda-forge
 sphinxcontrib-jsmath      1.0.1              pyhd8ed1ab_0    conda-forge
 sphinxcontrib-qthelp      1.0.7              pyhd8ed1ab_0    conda-forge
 sphinxcontrib-serializinghtml 1.1.10             pyhd8ed1ab_0    conda-forge
 sphinxcontrib-websupport  1.2.7              pyhd8ed1ab_0    conda-forge
 sqlalchemy                2.0.30          py311h331c9d8_0    conda-forge
 sshpubkeys                3.3.1              pyhd8ed1ab_0    conda-forge
 stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
 starlette                 0.37.2             pyhd8ed1ab_0    conda-forge
 streamz                   0.6.4              pyh6c4a22f_0    conda-forge
 sympy                     1.12            pypyh9d50eac_103    conda-forge
 sysroot_linux-64          2.17                h4a8ded7_14    conda-forge
 tabulate                  0.9.0              pyhd8ed1ab_1    conda-forge
 tbb                       2021.12.0            h00ab1b0_0    conda-forge
 tblib                     3.0.0              pyhd8ed1ab_0    conda-forge
 terminado                 0.18.1             pyh0d859eb_0    conda-forge
 tinycss2                  1.3.0              pyhd8ed1ab_0    conda-forge
 tk                        8.6.13          noxft_h4845f30_101    conda-forge
 tokenizers                0.15.2          py311h6640629_0    conda-forge
 toml                      0.10.2             pyhd8ed1ab_0    conda-forge
 tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
 toolz                     0.12.1             pyhd8ed1ab_0    conda-forge
 tornado                   6.4             py311h459d7ec_0    conda-forge
 tqdm                      4.66.4             pyhd8ed1ab_0    conda-forge
 traitlets                 5.14.3             pyhd8ed1ab_0    conda-forge
 transformers              4.39.3             pyhd8ed1ab_0    conda-forge
 types-python-dateutil     2.9.0.20240316     pyhd8ed1ab_0    conda-forge
 types-pyyaml              6.0.12.20240311    pyhd8ed1ab_0    conda-forge
 typing-extensions         4.11.0               hd8ed1ab_0    conda-forge
 typing_extensions         4.11.0             pyha770c72_0    conda-forge
 typing_utils              0.1.0              pyhd8ed1ab_0    conda-forge
 tzdata                    2024a                h0c530f3_0    conda-forge
 ukkonen                   1.0.1           py311h9547e67_4    conda-forge
 uri-template              1.3.0              pyhd8ed1ab_0    conda-forge
 urllib3                   2.0.7              pyhd8ed1ab_0    conda-forge
 uvicorn                   0.29.0          py311h38be061_0    conda-forge
 virtualenv                20.26.1            pyhd8ed1ab_0    conda-forge
 watchfiles                0.21.0          py311h46250e7_0    conda-forge
 wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
 webcolors                 1.13               pyhd8ed1ab_0    conda-forge
 webencodings              0.5.1              pyhd8ed1ab_2    conda-forge
 websocket-client          1.8.0              pyhd8ed1ab_0    conda-forge
 websockets                12.0            py311h459d7ec_0    conda-forge
 werkzeug                  3.0.3              pyhd8ed1ab_0    conda-forge
 wheel                     0.43.0             pyhd8ed1ab_1    conda-forge
 wrapt                     1.16.0          py311h459d7ec_0    conda-forge
 xmltodict                 0.13.0             pyhd8ed1ab_0    conda-forge
 xorg-libxau               1.0.11               hd590300_0    conda-forge
 xorg-libxdmcp             1.1.3                h7f98852_0    conda-forge
 xxhash                    0.8.2                hd590300_0    conda-forge
 xyzservices               2024.4.0           pyhd8ed1ab_0    conda-forge
 xz                        5.2.6                h166bdaf_0    conda-forge
 yaml                      0.2.5                h7f98852_2    conda-forge
 yarl                      1.9.4           py311h459d7ec_0    conda-forge
 zeromq                    4.3.5                h75354e8_3    conda-forge
 zict                      3.0.0              pyhd8ed1ab_0    conda-forge
 zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
 zlib                      1.2.13               hd590300_5    conda-forge
 zstd                      1.5.6                ha6fb4c9_0    conda-forge

@galipremsagar galipremsagar added bug Something isn't working cudf.pandas Issues specific to cudf.pandas labels May 10, 2024
@galipremsagar galipremsagar changed the title [BUG] df.loc drops index labels [BUG] df.loc drops index labels during assignment May 10, 2024
@galipremsagar galipremsagar self-assigned this May 13, 2024
rapids-bot bot pushed a commit that referenced this issue May 15, 2024
…15752)

Fixes: #15718 

This PR fixes an issue with `loc` setitem where the dataframe is empty but has an index of length greater than 0.

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Matthew Roeschke (https://github.com/mroeschke)

URL: #15752
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cudf.pandas Issues specific to cudf.pandas
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant