Closed ugGit closed 1 year ago
I like this suggestion, and I've definitely felt similarly frustrated before by having to restate the default arguments when needing df_kwargs
.
Go for it ✅ and let's also think of some test cases for:
df_kwargs
and you get the expected index for outputindex_col
to df_kwargs
, and getting the expected output (including default index)index_col
to df_kwargs
and getting the expected index for the output
Hi
When passing in the
df_kwargs
toexport_records()
all default values are overwritten in PyCap 2.4. I believe, it would be more intuitive to only updated the changed values, and keep the other defaults as ifdf_kwargs
is not passed in.Example code
Describe the behavior: Returns a dataframe with no index columns.
Expected behavior: A clear and concise description of what you expected to happen. Return a dataframe with the same index columns as the following method call:
Additional context: As far as I see, the if statement here in
base.py
would need to be modified:As a change, I'd suggest something along the lines of:
If that sounds like a reasonable thing, I gladly make the changes and submit a PR.