dataset.shuffle code example
Example 1: shuffle dataframe python
df = df.sample(frac=1).reset_index(drop=True)
Example 2: tf.data.Dataset select files with labels filter
dataset = train_data.filter(lambda x,y: tf.reduce_all(tf.not_equal(y, [0,1,2]))).batch(200)