Apr-24-2023, 07:48 PM
we have a requirement where we need to extract a value from a column of a dataframe and then we have to match this extracted value to another column of
entire same dataframe.
To visualize this we have a data frame
Col1 Col2 Col3 Col4
1 A 101 arn:aws:savingsplans::104:savingsplan/f001
2 B 102
3 C 103 arn:aws:savingsplans::101:savingsplan/f002
4 D 104
Here we have to pick col4 and extarct value example 104 and match with entire data set of col3.
entire same dataframe.
To visualize this we have a data frame
Col1 Col2 Col3 Col4
1 A 101 arn:aws:savingsplans::104:savingsplan/f001
2 B 102
3 C 103 arn:aws:savingsplans::101:savingsplan/f002
4 D 104
Here we have to pick col4 and extarct value example 104 and match with entire data set of col3.