I have the dataframe below and I want to extract some information from column A and then create other columns to add them based on their types. Below is an example to illustrate this.
In [0]: df
Out[0]:
A
0 1258GA 25/01/20 TABLE 090626 038272
1 GOODIES 762088 A714816
2 TABLE AA88547 734963 GOODIES
3 WATER 02/450 FROM TOMORROW 48246
4 02H12 ALSCA 00548246B GOODIES
And I want to have the result below.
In [1]: df
Out[1]:
A Category Date Hour
0 1258GA 25/01/20 TABLE 090626 038272 TABLE 25/01/20
1 GOODIES 762088 A714816 GOODIES
2 TABLE AA88547 734963 GOODIES TABLE GOODIES
3 WATER 02/450 FROM TOMORROW 48246 WATER
4 02H12 ALSCA 00548246B GOODIES GOODIES 02H12
I've tried many things but haven't got that result
FROM TOMORROWis missing from your expected output.