Horje
Get the positions of items of ser2 in ser1 as a list python Code Example
Get the positions of items of ser2 in ser1 as a list python
ser1 = pd.Series([10, 9, 6, 5, 3, 1, 12, 8, 13])
ser2 = pd.Series([1, 3, 10, 13])

pos = []
for i in range(len(ser2)):
    for j in range(len(ser1)):
        if ser2[i] == ser1[j]:
            pos.append(j)




Python

Related
how to use rbind() to combine dataframes Code Example how to use rbind() to combine dataframes Code Example
how to remove repeated files from google drive in python Code Example how to remove repeated files from google drive in python Code Example
Group the values for each key in the RDD into a single sequence. Code Example Group the values for each key in the RDD into a single sequence. Code Example
command errored out with exit status 1: Code Example command errored out with exit status 1: Code Example
command in python to make negative number positive Code Example command in python to make negative number positive Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7