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

LabfrontLoader warning with ffill #90

Open
dado93 opened this issue Aug 27, 2024 · 0 comments
Open

LabfrontLoader warning with ffill #90

dado93 opened this issue Aug 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request labfront Issues related to LabfrontLoader

Comments

@dado93
Copy link
Owner

dado93 commented Aug 27, 2024

When indexing the Labfront files from a folder, either for the first time or if the .pywearable_file_index.csv file does not exist, pandas is throwing warnings when performing the ffill() operation when reindexing files based on dates at line 458:

groupby.reindex(dates).ffill()

FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. 
Call result.infer_objects(copy=False) instead. 
To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`  
return groupby.reindex(dates).ffill()`
@dado93 dado93 added enhancement New feature or request labfront Issues related to LabfrontLoader labels Aug 27, 2024
@dado93 dado93 self-assigned this Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request labfront Issues related to LabfrontLoader
Projects
None yet
Development

No branches or pull requests

1 participant