Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by radiant-brushlands-42789.herokuapp.com #
 
PREVIOUS NEXT
Tagged: #samples #dataframe
ADD COMMENT
Topic
Name
7+4 =