InMemoryDataset.copy() keep original indicies #5884
-
Is there a way to keep the original index when using copy?
|
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Nov 3, 2022
Replies: 1 comment 1 reply
-
I guess the easiest way is to add a |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
anthonysirico
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess the easiest way is to add a
graph_id
to eachdata
object. This way, the initial indices are maintained. Would that work for you?