Skip to content

Comments

The first column must be moved into the index#5

Open
medaks wants to merge 1 commit intomims-harvard:mainfrom
medaks:main
Open

The first column must be moved into the index#5
medaks wants to merge 1 commit intomims-harvard:mainfrom
medaks:main

Conversation

@medaks
Copy link

@medaks medaks commented May 11, 2025

Why:

In the section Reading in ClinVec embeddings into Python you do df['node_index'] = df.index but df.index by default takes the values between 0 and length of the array.

The first column of the CSV stores the actual node indices, so that must be moved into the df index instead.

@medaks medaks changed the title The first column must be moved into the index/ The first column must be moved into the index May 11, 2025
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.

1 participant