pydit.wrangling.various.dataframe_to_code

pydit.wrangling.various.dataframe_to_code(df)[source]

Convert a dataframe to source code that one can include in a test script or tutorial.

May need extra tweaks or imports, e.g. from pandas import Timestamp to deal with dates, etc.