With jupyter notebook, this code
import pandas as pd
df = pd.DataFrame([[71,62,13], [75,76,77]], columns=list("ABC"))
df
gives output in this style
if I put it in a function,
def prepare():
import pandas as pd
df = pd.DataFrame([[71,62,13], [75,76,77]], columns=list("ABC"))
print(df)
prepare()
I get the dataframe in this style
How do I render the dataframe in the style at the beginning in a function?