I get this data from a crawler and want to transfer it into a beautiful dataframe.
Now what I have is like:
+-----------+------------------------------------------+------------+---------------------+
| HotelName | RoomType | RoomFloor | RoomPrice |
+-----------+------------------------------------------+------------+---------------------+
| Hotel1 | Standard,Standard,Standard,Deluxe,Deluxe | 10F,20F | 100,105,108,200,205 |
| Hotel2 | Standard,Standard,Deluxe,Deluxe,Grande | 30F,40F,50F| 90,95,250,240,300 |
+-----------+------------------------------------------+------------+---------------------+
What I want finally is like:
+-----------+----------+-----------+-----------+
| HotelName | RoomType | RoomFloor | RoomPrice |
+-----------+----------+-----------+-----------+
| Hotel1 | Standard | 10F | 100 |
| Hotel1 | Standard | 10F | 105 |
| Hotel1 | Standard | 10F | 108 |
| Hotel1 | Deluxe | 20F | 200 |
| Hotel1 | Deluxe | 20F | 205 |
| Hotel2 | Standard | 30F | 90 |
| Hotel2 | Standard | 30F | 95 |
| Hotel2 | Deluxe | 40F | 250 |
| Hotel2 | Deluxe | 40F | 240 |
| Hotel2 | Grande | 50F | 300 |
+-----------+----------+-----------+-----------+
I am new to Python and I could not handle this. Can anyone help? Thanks a lot!