Repository navigation
Random improvements. - #150
Merged
Merged
Conversation
When error returned from query was a dict, it was not getting handled.
drewaogle
reviewed
Oct 13, 2022
| self.src_key = self.header[1].split("@")[1] | ||
| self.dst_class = self.header[2].split("@")[0] | ||
| self.dst_key = self.header[2].split("@")[1] | ||
| # Pandas appends a .n to the column name if there is a duplicate |
Contributor
There was a problem hiding this comment.
Can you explain what is happening here?
To me it sounds like doing this could possible obscure a mistake on a user's part in creating a csv
Contributor
Author
There was a problem hiding this comment.
Ah i see. So, let's say you are trying to connect "Persons", who are friends, based on their uids, the csv would have 2 headers which read the same, i.e Person@uid and Person@uid.
when pandas reads this csv, to avoid this conflict, it implicitly renames conflicting columns as col.0, col.1,col.2 ....
That breaks the queries we make.
It will not be a mistake, but something a user might want to do, genuinely.
Contributor
There was a problem hiding this comment.
ah nice, hadn't thought of that
drewaogle
approved these changes
Oct 14, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When error returned from query was a dict, it was not getting handled.