I have tried using display method from IPython I want to print with no indexes and center align the values in all columns. I am not using Jupyter notebook; I'm using pyCharm IDE.
import pandas as pd
from IPython.core.display import display
data = {'Name':['Tom', 'nick', 'krish', 'jack'],
'Age':[20, 21, 19, 18]}
df = pd.DataFrame(data)
df = df.style.set_properties(**{'text-align': 'center'}).hide_index()
display(df)
The output I got is this (screenshot):
**<pandas.io.formats.style.Styler object at 0x0000029ED0913550>**
I want to do it in .py file. Also is there any way I can print dataframes of pandas in Sciview or Database tool windows that are available in pyCharm? SciView