Skip to content

Reorder columns #4646

Closed Answered by mariosasko
nikita-galileo asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants