This is my dataset
import pandas as pd
df={'A':['1@1','2,3','3,4',5]}
df=pd.DataFrame(df1)
df
A
0 1@1
1 2,3
2 3,4
3 5
I want to find index of data in column A which have ","
I tried this code but it is not working
Index=[]
for i in df["A"]:
if ("," in i):
Index.append(df["A"][i].index)
else:
continue