I have to iterate through column=0 and if I find any integer like 2010,2018,2017 etc in my column =0, I have to assign that to all the values in column=0 as year.
PS:-column=0 is an object datatype.
My DF:
0 1
Nan Banks
National Banks Axis Bank
Nan ICICI
Nan PNB
2010 KYB
Nan Indus Ind
Nan Karur
My desired output:
0 1
2010 Banks
2010 Axis Bank
2010 ICICI
2010 PNB
2010 KYB
2010 Indus Ind
2010 Karur