-
Notifications
You must be signed in to change notification settings - Fork 79
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
Proposal: Improve division of functionality between build_lookup_from_csv
, read_csv_to_dataframe
, pandas.read_csv
#1327
Labels
Comments
From 6/15 coffee call: Once this is implemented, we might not need |
3 tasks
emlys
added a commit
to emlys/invest
that referenced
this issue
Jun 20, 2023
emlys
added a commit
to emlys/invest
that referenced
this issue
Jun 20, 2023
emlys
added a commit
to emlys/invest
that referenced
this issue
Jun 20, 2023
emlys
added a commit
to emlys/invest
that referenced
this issue
Jun 20, 2023
emlys
added a commit
to emlys/invest
that referenced
this issue
Jun 20, 2023
emlys
added a commit
to emlys/invest
that referenced
this issue
Jun 20, 2023
emlys
added a commit
that referenced
this issue
Jun 22, 2023
emlys
added a commit
that referenced
this issue
Jun 22, 2023
emlys
added a commit
that referenced
this issue
Jun 22, 2023
emlys
added a commit
that referenced
this issue
Jun 22, 2023
emlys
added a commit
that referenced
this issue
Jun 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
read_csv_to_dataframe
is a wrapper aroundpandas.read_csv
that adds this functionality:build_lookup_from_csv
reformats the table as a dictionary indexed by a particular column, and also adds this functionality:It would make more sense if the additional functionality of
build_lookup_from_csv
was moved toread_csv_to_dataframe
. Particularly the lowercase conversion options are confusing: theto_lower
arg ofbuild_lookup_from_csv
affects column names AND values. theto_lower
arg ofread_csv_to_dataframe
affects column names only.Pseudocode outlining the proposed division of functionality:
The data processing that can be done with arguments to
pandas.read_csv
(such as selecting columns, dropping empty rows, and applying converters to column values) should be moved there to avoid duplication.The text was updated successfully, but these errors were encountered: