-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: explicit kwargs for select #29977
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
CLN: explicit kwargs for select #29977
Conversation
IIRC I answered 1) elsewhere. we pass on kwargs in the constructor to
|
columns=None, | ||
iterator=False, | ||
chunksize: Optional[int] = None, | ||
**kwargs, |
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.
a solution to this would be to remove kwargs and instead add a keyword backend_kwargs={}
or driver_kwargs={}
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.
that would work, will need deprecation cycle, and im all about removing deprecations these days
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.
for now ill need to make a quick PR reverting the assert not kwargs
this introduced
suggestion for a way out to remove the kwargs arg in read_hdf & HDFStore |
Questions for @jreback on follow-ups:
Note in
read_hdf
kwargs is still present in the signature, but i put an assertion that they are empty. In principle we could pass more junk to HDFStore, but we never do in tests. Should we allow it, or can those kwargs be deleted altogether?the current signature for
select_column
is(self, key: str, column: str, **kwargs)
. These kwargs are passed toread_column
, which would accept "where", "start", "stop". In tests we pass start and stop, but never where. Can we rule out "where"?