Pretty basic style value error, indicating that either the rows or the column titles are not unique, yielding:
ValueError: style is not supported for non-unique indices
#pandas #style #ValueError
Code I used below:
import pandas as pd
import numpy as np
np2=[]
for cd in range(0,21):
np1 = []
np2.append(np1)
for as2 in range(0,10):
x = np.random.randint(9000,10000)
y = chr(x)
z = np1.extend([x,y])
df1 = pd.DataFrame(np.array(np2),columns=["Code1", "Symbol1","Code2", "Symbol2","Code3", "Symbol3","Code4", "Symbol4","Code5", "Symbol5","Code6", "Symbol6","Code7",
"Symbol7","Code8", "Symbol8","Code9", "Symbol9","Code10", "Symbol10"])
df2 =df1.style.set_properties(**{'font-size': '25pt',})
df2