2

I have columns:

df.columns = ['Nume', 'Tip de', 'Unit', 'Speciale Price', 'Suma de', 'Suma']

How to set width for each column?

I tried this way:

def width_cells():
    return ['width: 400px']     

df.style.apply(width_cells)
OPV
  • 1
  • 26
  • 81
  • 156

0 Answers0