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

getLiveSensors - Error with noCorrection Status Message #49

Open
tbec opened this issue Aug 26, 2021 · 0 comments
Open

getLiveSensors - Error with noCorrection Status Message #49

tbec opened this issue Aug 26, 2021 · 0 comments
Assignees
Labels
bug Something isn't working regions-support Specific to Ross's regions-support branch

Comments

@tbec
Copy link
Contributor

tbec commented Aug 26, 2021

on this line:

df.at[idx, 'status'] += ["No correction"]

every element in the variable status_data gets updated, making the "status" field for each row == len(df). Fix it with:

df.at[idx, 'status'] = df.at[idx, 'status'] + ["No correction"]

This happens because += has different behavior for lists as described in this SO post. The reason it updates status_data is beyond me. Apparently you can set a DataFrame column to a list pointer?
Screen Shot 2021-08-26 at 8 10 50 AM
Screen Shot 2021-08-26 at 8 10 56 AM
Screen Shot 2021-08-26 at 8 11 37 AM
Screen Shot 2021-08-26 at 8 11 42 AM

@tbec tbec added bug Something isn't working regions-support Specific to Ross's regions-support branch labels Aug 26, 2021
@tbec tbec changed the title Error with noCorrection Status Message in getLiveSensors getLiveSensors - Error with noCorrection Status Message Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regions-support Specific to Ross's regions-support branch
Projects
None yet
Development

No branches or pull requests

2 participants