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

Allow a lambda function for computer column to return a constant (e.g. types are ok) #24

Open
gordonwatts opened this issue Jul 23, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@gordonwatts
Copy link
Owner

The following currently causes type check error - though it is dealt with just fine by the code:

    f = ServiceXDatasetSource(servicex_ds)
    df = xaod_table(f)
    jets = df.jets
    jets['ptgev'] = lambda j: 1000.0
    seq = df.jets.ptgev

To fix this will require only altering the Types that are allowed in __setitem__

@gordonwatts gordonwatts added the bug Something isn't working label Jul 23, 2020
@gordonwatts gordonwatts self-assigned this Jul 23, 2020
@gordonwatts gordonwatts removed their assignment Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant