-
Notifications
You must be signed in to change notification settings - Fork 722
Forward all pandas kwargs #126
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
Conversation
| ini -= forgotten_bytes | ||
| end -= 1 # Range is inclusive, contrary from Python's List | ||
| bytes_range = "bytes={}-{}".format(ini, end) | ||
| bytes_range = f"bytes={ini}-{end}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
| :param sql: SQL Query | ||
| :param database: Glue/Athena Database | ||
| :param s3_output: AWS S3 path | ||
| :param s3_output: Amazon S3 path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops
| thousands, decimal, lineterminator, quotechar, quoting, escapechar, parse_dates, | ||
| infer_datetime_format, na_values, keep_default_na, na_filter, encoding, converters), | ||
| ) | ||
| proc = mp.Process(target=self._read_csv_once_remote, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better now!
igorborgest
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great contribution, thanks @tuliocasagrande!
Description of changes:
We are currently manipulating each pandas.read_csv parameter individually and setting default values in case they were missing. A safer approach would be to forward them and let pandas handle default values.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.