Is there any function in python similar to dput() function in R?
for a pandas.DataFrame, print(df.to_dict()), as shown here
pandas.DataFrame
print(df.to_dict())