Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃幒馃幏 Fix wk3l loading #907

Merged
merged 7 commits into from
May 7, 2022
Merged

馃幒馃幏 Fix wk3l loading #907

merged 7 commits into from
May 7, 2022

Conversation

mberr
Copy link
Member

@mberr mberr commented May 4, 2022

Fix #906

Also fixed an unrelated error in mapping the alignment to IDs.

@mberr mberr changed the title Fix wk3l loading 馃幒馃幏 Fix wk3l loading May 4, 2022
@mberr mberr requested a review from cthoyt May 4, 2022 10:43
trigger ci
@mberr mberr marked this pull request as draft May 4, 2022 12:56
@@ -102,6 +102,7 @@ def _load_df(self, key: Union[None, EASide, Tuple[EASide, EASide]], **kwargs) ->
engine="python",
encoding="utf8",
dtype=str,
keep_default_na=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this was sufficient? because this won't solve the issue if there are empty entries

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty entries are read as nan.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so even if there's an empty string it gets the string "nan"?

maybe you should still do dropna() in addition to keep_default_na=False,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it gets the float nan 馃槃

@mberr mberr marked this pull request as ready for review May 6, 2022 15:57
@mberr
Copy link
Member Author

mberr commented May 7, 2022

@PyKEEN-bot test

@cthoyt
Copy link
Member

cthoyt commented May 7, 2022

Merge if it works

@mberr mberr merged commit 8fdceb7 into master May 7, 2022
@mberr mberr deleted the fix-wk3l-loading branch May 7, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError when loading WK3l15k, en-de
3 participants