79624335

Date: 2025-05-16 00:53:00
Score: 0.5
Natty:
Report link

Export the columns to frame, convert Price values to titlecase and recreate the multi index columns back.

cols = df.columns.to_frame().assign(Price=lambda x: x['Price'].str.title())
df.columns = pd.MultiIndex.from_frame(cols)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Triky