Reorder columns #4646
Reorder columns
#4646
-
Is there a way to reorder the columns in a dataset? I notice
|
Beta Was this translation helpful? Give feedback.
Answered by
mariosasko
Jul 15, 2022
Replies: 1 comment
-
Hi! The columns can be reordered either by performing a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nikita-galileo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! The columns can be reordered either by performing a
Dataset.cast
with the reordered features dictionary or by replacing the initial features with the reordered ones (ds.info.features = reordered_features). I suggest you use the former approach as the latter relies on the internal decoding logic.