Am using Jupyter Notebooks and would like to display a pandas DataFrame applying the same width to all the columns, with all values centered. What's the simplest way to achieve this, without importing libraries?
import pandas as pd
raw_data = {'regiment': ['Nighthawks', 'Dragoons'],
'company': ['1st', '2nd'],
'name': ['Miller', 'Jacob'],
'preTestScore': [4, 24],
'postTestScore': [25, 94]}
df = pd.DataFrame(raw_data, columns = ['regiment', 'company', 'name', 'preTestScore', 'postTestScore'])
df