We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Selection of rows by label renders dataframe invalid
Steps/Code to reproduce bug
import cudf import numpy as np idx_1 = ["Hi", "Lo"] idx_2 = ["I", "II", "III"] idx = cudf.MultiIndex.from_product([idx_1, idx_2]) data_rand = np.random.uniform(0, 1, 3 * len(idx)).reshape(3,-1) df = cudf.DataFrame(data_rand, index=["A", "B", "C"], columns=idx) print(df.shape) # (3, 6) -> OK tmp = df.loc[["A", "B"]] print(df.shape) # (3,7) -> NOT OK # print(df2) -> raises error # "ValueError: rangeindex=True and multiindex=True cannot both be True." print(cudf.__version__) # 25.02.02
Expected behavior
Environment overview (please complete the following information)
Environment details I could not locate the script cudf/print_env.sh.
cudf/print_env.sh
The text was updated successfully, but these errors were encountered:
Dataframe.loc
galipremsagar
Successfully merging a pull request may close this issue.
Describe the bug
Selection of rows by label renders dataframe invalid
Steps/Code to reproduce bug
Expected behavior
Environment overview (please complete the following information)
Environment details
I could not locate the script
cudf/print_env.sh
.The text was updated successfully, but these errors were encountered: