I have this table in my Pandas Dataframe (Store_id and Sub_store)
Store_id Sub_store
1 26821
2 26821B
3 26823 26823AV
4 26823B
5 26824DCF
I would like to return the All_ID column by 1. Return the values of the stored_id column, IF empty return Sub_store column and strip de Strings Characters.
How I Can return the result "ALL ID" in my python Pandas Dataframe?
Expected Output:
ALL ID Store_id Sub_store
26821 26821
26821 26821B
26823 26823 26823AV
26823 26823B
26824 26824DCF