Until recently, it was possible to generate sample dataframes in Pandas using functionality of pd.util.testing
module:
In [22]: import pandas as pd
In [23]: pd.util.testing.makeMixedDataFrame()
Out[23]:
A B C D
0 0.0 0.0 foo1 2009-01-01
1 1.0 1.0 foo2 2009-01-02
2 2.0 0.0 foo3 2009-01-05
3 3.0 1.0 foo4 2009-01-06
4 4.0 0.0 foo5 2009-01-07
(see https://stackoverflow.com/a/65592210/22084711 for more examples)
However, pd.util.testing
is being deprecated. As far as I can tell, this deprecation is in favor of pd.testing
. It does not include any of the functionality used for generating sample dfs (makeMixedDataFrame
, makeMissingDataframe
, etc.).
Is this functionality being transferred to some other module? I looked but couldn't find anywhere else. I'd like to have an alternative that comes with Pandas and does not require additional dependencies like Seaborn, or downloading the dataframe from somewhere else.
(I was going to ask on pandas' Github, but they require that all questions are being asked on SO first.)