Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read csv with naive data, column filters and datetime/timedelta units (…
…#521) Improved import of time series data from CSV file: localize timezone naive data, support reading in datetime and timedelta values, remove rows with NaN values, and filter by values in specific columns. * Support unit conversion for python datetime and timedelta objects Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow to filter by column when reading in beliefs from CSV Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow to set a timezone for reading in timezone naive data Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow throwing out NaN values when reading in beliefs Signed-off-by: F.N. Claessen <felix@seita.nl> * Support datetime unit conversion for aware datetimes with mixed offset Signed-off-by: F.N. Claessen <felix@seita.nl> * Raise instead of assume UTC when reading in timezone naive data without a timezone set explicitly Signed-off-by: F.N. Claessen <felix@seita.nl> * Bump timely-beliefs dependency for read_csv Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: flake8 Signed-off-by: F.N. Claessen <felix@seita.nl> * CLI changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * mypy Signed-off-by: F.N. Claessen <felix@seita.nl> * Use sensor id field validation Signed-off-by: F.N. Claessen <felix@seita.nl> * Querying for a source with a given id no longer requires knowing the source type Signed-off-by: F.N. Claessen <felix@seita.nl> * make freeze-deps Signed-off-by: F.N. Claessen <felix@seita.nl> * add optional dependency: timely-beliefs[forecast] Signed-off-by: F.N. Claessen <felix@seita.nl> * Mention data conversion from 'datetime' or 'timedelta' units Signed-off-by: F.N. Claessen <felix@seita.nl> * Allow converting 'datetime' values to a duration other than seconds (since UNIX epoch) Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor and make convert_time_units a private function Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor and add inline comment explaining why we check to_unit for a digit Signed-off-by: F.N. Claessen <felix@seita.nl> * mypy: PEP 484 prohibits implicit Optional Signed-off-by: F.N. Claessen <felix@seita.nl> * Attempt to revert bugs introduced in merge with main Signed-off-by: F.N. Claessen <felix@seita.nl> * black and flake8 Signed-off-by: F.N. Claessen <felix@seita.nl> * A few more reverts Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix typos Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
11 changed files
with
130 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.