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

Ensure a Projection Box is created for calls that modify an object but have no return values #19

Open
rlisahuang opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request PB

Comments

@rlisahuang
Copy link

To replicate, paste the following code into the editor

import pandas as pd
import io


csv = '''
breed,size,weight,height
Labrador Retriever,medium,67.5,23.0
German Shepherd,large,,24.0
Beagle,small,,14.0
Golden Retriever,medium,60.0,22.75
Yorkshire Terrier,small,5.5,
Bulldog,medium,45.0,
Boxer,medium,,23.25
Poodle,medium,,16.0
Dachshund,small,24.0,
Rottweiler,large,,24.5
'''
dogs = pd.read_csv(io.StringIO(csv))


# sort the data frame by the value of the size column
# in descending order
dogs.sort_values(by='size', ascending=False, inplace=True)

A hack for it would be to add

dogs = dogs

below the last line of this code.

@rlisahuang rlisahuang added enhancement New feature or request PB urgent labels Feb 17, 2023
@rlisahuang rlisahuang self-assigned this Feb 22, 2023
@rlisahuang rlisahuang removed the urgent label Feb 24, 2023
@rlisahuang
Copy link
Author

removing urgency as none of the existing examples seem to expose the need for implementing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PB
Projects
None yet
Development

No branches or pull requests

1 participant