Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

randomly shuffle pandas dataframe

  shuffled_train_df = train_df.reindex(np.random.permutation(train_df.index))
Source by colab.research.google.com #
 
PREVIOUS NEXT
Tagged: #randomly #shuffle #pandas #dataframe
ADD COMMENT
Topic
Name
3+8 =