I want to extract a data column where each cell is a string type consisting a hotel's room number and occupied packages on a given time. Each cell looks like the following
624: COUPLE , 507: DELUXE+ ,301: HONEYMOON
Here's the code snippet I have written to collect all the room numbers occupied and the packages purchased.
import numpy as np
import pandas as pd
d = np.array(['624: COUPLE , 507: DELUXE+ ,301: HONEYMOON','614:FAMILY , 507: FAMILY+'])
df = pd.Series(d)
df= df.str.extractall(r'(?P<room>[0-9]+)(?P<package>[\S][^,]+)')
df
However the output keeps the colon in front of package name. Output of given python code
How do I remove the colon in front of package name in the output ????