Answers for "get samples from dataframe"

0

get samples from dataframe

df_sample = df.sample(n=1000)
df_sample.shape(1000,10)

df_sample2 = df.sample(frac=0.1)
df_sample2.shape(1000,10)
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language