Jan Mühlnikel
commited on
Commit
·
127b334
1
Parent(s):
9c5b0ef
experiment
Browse files
functions/calc_matches.py
CHANGED
@@ -51,8 +51,8 @@ def calc_matches(filtered_df, project_df, similarity_matrix, top_x):
|
|
51 |
project_df_indices = project_df.index.to_list()
|
52 |
|
53 |
# Create mapping dictionaries
|
54 |
-
filtered_df_index_map = {
|
55 |
-
project_df_index_map = {
|
56 |
|
57 |
st.write(filtered_df_index_map)
|
58 |
|
|
|
51 |
project_df_indices = project_df.index.to_list()
|
52 |
|
53 |
# Create mapping dictionaries
|
54 |
+
filtered_df_index_map = {i: index for i, index in enumerate(filtered_df_indices)}
|
55 |
+
project_df_index_map = {i: index for i, index in enumerate(project_df_indices)}
|
56 |
|
57 |
st.write(filtered_df_index_map)
|
58 |
|