Skip to content

Cannot use FromPandas with string columns #18534

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

Open
1 task
acampove opened this issue Apr 28, 2025 · 0 comments · May be fixed by #18571
Open
1 task

Cannot use FromPandas with string columns #18534

acampove opened this issue Apr 28, 2025 · 0 comments · May be fixed by #18571
Assignees
Labels

Comments

@acampove
Copy link

Check duplicate issues.

  • Checked for duplicates

Description

Hi,

I seem to be unable to use FromPandas with dataframes that have a string.

Reproducer

import pandas as pd
import ROOT
import numpy as np

df = pd.DataFrame({
    'value': [1.1, 2.2, 3.3, 4.4],
    'label': ['a', 'b', 'c', 'd']
})

print(df)

rdf = ROOT.RDF.FromPandas(df)
rdf.Display().Print()

ROOT version

6.32.10

also checked in 6.34.4

Installation method

mamba

Operating system

alma9

Additional context

No response

@acampove acampove added the bug label Apr 28, 2025
@siliataider siliataider linked a pull request Apr 30, 2025 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants