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)
POV
  • 11,293
  • 34
  • 107
  • 201

0 Answers0