0
0     Month  year                        Source Visits Bookings Roomnights Revenue (USD)
1   october  2022                     AFFILIATE    134       22         32       8763.88
2   october  2022                        DIRECT  10257      801       1299      278374.2
3   october  2022                       DISPLAY     97        2          6        2028.0
4   october  2022  ECONFO AND PRE-ARRIVAL EMAIL    187        8          9       2202.62

i want to make first row as an header.

i am expecting this output

     Month  year                        Source Visits Bookings Roomnights Revenue (USD)
0   october  2022                     AFFILIATE    134       22         32       8763.88
1   october  2022                        DIRECT  10257      801       1299      278374.2
2   october  2022                       DISPLAY     97        2          6        2028.0
3   october  2022  ECONFO AND PRE-ARRIVAL EMAIL    187        8          9       2202.62
mozway
  • 194,879
  • 13
  • 39
  • 75
  • Better load the data correctly in the first place, this will avoid issue with dtypes. How did you load it? – mozway Nov 25 '22 at 10:25

0 Answers0