Mainly for testing purposes, sometimes we want to create some dummy data frames. Pandas
give us this possibility with the util.testing
package.
By default, it creates **30 **rows with **4 **columns called **A,B,C **and D and the **index **alpha-numeric.
import pandas as pd pd.util.testing.makeDataFrame().head()
It assigns some NaN values randomly.
pd.util.testing.makeMissingDataframe().head()
#scikit-learn #python #random-sampling #random-data-generator #pandas