-
Notifications
You must be signed in to change notification settings - Fork 172
fixed the deprecated functions #1444
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
base: main
Are you sure you want to change the base?
fixed the deprecated functions #1444
Conversation
|
@skrawcz , can you please review this and let me know if any changes are required |
skrawcz
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.
In the right direction. Some changes please.
… changes for delim_whitespace
| kwargs["storage_options"] = self.storage_options | ||
| if pd.__version__ >= "2.0" and self.dtype_backend is not None: | ||
| kwargs["dtype_backend"] = self.dtype_backend | ||
| if pandas_version < Version("2.0"): |
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.
You need to import Version at the top of the file -- then tests should pass...
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.
can you check now @skrawcz
skrawcz
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.
thanks for the changes -- just need to get CI to pass now.
This PR fixes the #1417 to remove the deprecated pandas CSV reader args. Fixed by adding a variable for identifying the pandas version and updated the functions to add them into kwargs only the version is less than 2.0
Changes
How I tested this
Checklist