I want to give dict_val dataframe a title that is placed in the center title. I am also trying to separate the each 3 digits with a comma on the Numbers column how would I be able to give a dataframe a title and style the a column as such and get the Expected Output below?
import pandas as pd
import numpy as np
title = 'Number and Numbers 2 Comparison'
numbers = np.array([123242737.4923,679754672.3849])
numbers2 = np.array([123523,467895])
dict_val = pd.DataFrame({'Numbers':numbers.round(2),'Numbers 2': numbers2})
display(dict_val)
Output:
Expected output:
Number and Numbers 2 Comparison
Numbers Numbers 2
0 123,242,737.49 123523
1 679,754,672.38 467895

