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

New PathReader features #10

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

louizcerca
Copy link

Added the following features to PathReader, none of which impact current catalog configurations:

  • Filtering the date of files based on a minimum date (min_date parameters on read_args) instead of only through a moving window (history_length and time_scale)
  • Allows using a wildcard(*) on path arg to solve specific cases where only the last date is not enough to determine if a file should be loaded
  • Applying a function passed as a string on read_args to paths to more advanced filtering
  • Setting the file name as a column on loaded dataframes. Useful when the file have no versioning column in it
  • Applying a function passed as a string on read_args during file loading, before the concat of all read dataframes. The main objective is to allow files to be treated individualy, grouped, filtered, have specific columns created to reduce memory usage while and after using the PathReader. Example: A daily dataset that will be only used in monthly aggregation can consume much less resources during the parallel I/O of multiple files if it is grouped right after loading and not after loading all the files. This is very important for low RAM environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant