chore: Remove unreachable hash check#2750
Conversation
Follow-up to #2749 (comment) If CI can catch this, then I'll add a comment explaining where this is needed
|
ah we ended up removing it in https://github.com/narwhals-dev/narwhals/pull/2011/files |
|
Doesn't hurt to keep it, as per the linked test case? Like this it gives a clearer error message for malformed pandas dfs? |
Sorry I'm not sure I understand. You linked a test that was removed 4 months ago that has the comment:
If that test is important - we should add it back? Personally, I can't see why we should add error handling for a test fails in As-is, we just have a check that's added overhead on every |
|
I doubt the overhead is noticeable, a comment with a link to the pandas issue should be fine |
|
@MarcoGorelli I am also having a hard time to figure out how this can be used in practice. I am able to create a dataframe, but any operation I am running is leading to an error, with the exception of accessing the columns attribute itself: if that's the case, |
It isn't necessarily the overhead per-call that I'm worried about, the issue is that this check is on most/all method calls - potentially multiple times. |
hmmm ok thanks, that is a sign that such a state is so broken that we shouldn't deal with it |
Thanks @MarcoGorelli! 😍 |


What type of PR is this? (check all applicable)
Related issues
check_column_names_are_uniqueutil #2749 (comment)PandasLikeDataFrame|DaskLazyFrame.joinmethod #2511 (comment)Checklist
If you have comments or can explain your changes, please do so below
Follow-up to #2749 (comment)