I have a dataframe that contains all sort of data -- string,int and date object too.
I already have apiece of code (deal_value(val))
that identifies the type of val and makes it a string. I need to be able to apply that to all the cells in the dataframe I have right now.
After that, I need to concatenate the row value with the row name in the dataframe.
I looked at apply function for both of these but was unable to figure out how to use it in either case
Dataframe Examples:
name age dob
0 A 10 20-Jun-1969
And I want the dataframe to be:
name age dob
0 A name 10 age 20-Jun-1969 dob
My function deal_value would take each cell element and make them good to concatenate into a string, so ultimately I want it to be something like:
"A name, 10 age,20-Jun-1969 AND (row-2) AND (row-3)......."