79350219

Date: 2025-01-12 16:07:31
Score: 0.5
Natty:
Report link

You need to specify the level of the column index that you want to drop.

Since the date column you want to drop is in level 1 you need to mention it explicitly.

df2.drop(columns=["July 1, 2024 (est.)"],level=1,axis=1)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: confused banana