AvinashYerra commented on code in PR #1444:
URL: https://github.com/apache/hamilton/pull/1444#discussion_r2706003042
##########
hamilton/plugins/pandas_extensions.py:
##########
@@ -205,14 +206,15 @@ def _get_loading_kwargs(self) -> Dict[str, Any]:
kwargs["keep_default_na"] = self.keep_default_na
if self.na_filter is not None:
kwargs["na_filter"] = self.na_filter
- if self.verbose is not None:
- kwargs["verbose"] = self.verbose
if self.skip_blank_lines is not None:
kwargs["skip_blank_lines"] = self.skip_blank_lines
if self.parse_dates is not None:
kwargs["parse_dates"] = self.parse_dates
- if self.keep_date_col is not None:
- kwargs["keep_date_col"] = self.keep_date_col
+ if pandas_version < Version("2.0"):
Review Comment:
Done.
##########
hamilton/plugins/pandas_extensions.py:
##########
@@ -257,7 +257,12 @@ def _get_loading_kwargs(self) -> Dict[str, Any]:
kwargs["float_precision"] = self.float_precision
if self.storage_options is not None:
kwargs["storage_options"] = self.storage_options
- if pd.__version__ >= "2.0" and self.dtype_backend is not None:
+ if self.delim_whitespace is not None:
+ if pandas_version < Version("2.0"):
+ kwargs["delim_whitespace"] = self.delim_whitespace
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]