I have below data in a column of Dataframe(Contains approx 100 Rows).
Need to Extract CK string (CK-36799-1523333) from DF for each row.
- Note: receipt_id is not fixed.Ck data may contains in some different variable.
Data:
{"currency":"US","Cost":129,"receipt_id":"CK-36799-1523333","af_customer_user_id":"33738413"}
{"currency":"INR","Cost":429,"receipt_id":"CK-33711-15293046","af_customer_user_id":"33738414"}
{"currency":"US","Cost":229,"receipt_id":"CK-36798-1523333","af_customer_user_id":"33738423"}
{"currency":"INR","Cost":829,"receipt_id":"CK-33716-152930456","af_customer_user_id":"33738214"}
{"currency":"INR","Cost":829,"order_id":"CK-33716-152930456","af_customer_user_id":"33738214"}
{"currency":"INR","Cost":829,"suborder_id":"CK-33716-152930456","af_customer_user_id":"33738214"}
Result
CK-36799-1523333
CK-33711-15293046
CK-36798-1523333
CK-33716-152930456
I tried str.find('CK-') function but Not getting Expected result.Need Suggestions