I have two data frames as follows:
df1:
id, f1, f2,..., f800
0, 5, 5.6,.., 3,7
1, 2.4, 1.6,.., 1,7
2, 3, 2.3,.., 4,4
....
n, 4.7, 9,3,..., 8,2
df2:
id, v1, v2,..., v200
0, 5, 5.6,.., 5,7
1, 2.4, 1.6,.., 6,7
2, 3, 2.3,.., 4,2
....
n, 4.7, 9,3,..., 3,1
The df1 consists of 800 features and df2 includes only 200 features. The second data frame (df2) is a part of the first data frame (df1). Now, I want to find the position of the columns (in df1) which includes df2 columns/variables. Here the values of the columns should be similar, not the name of the columns. Taking into account above example, my desired output should be either "f1 and f2" or columns [0, 1] from df1.
Any idea to handle the problem?
df1[:,:200]- Ruli