Produces a factorial DataFrame from a dict or list of tuples.
For example, suppose you want to generate a DataFrame like this:
a b
0 one 0
1 one 1
2 two 0
3 two 1
This function generates such output simply by providing the following: df_fromdict([(‘a’, [‘one’, ‘two’]), (‘b’, [0, 1])])
Args: |
|
---|---|
Kwargs: |
|
Returns: | pandas.DataFrame with data.items() column names |