diff --git a/exploration/expl_proximity.py b/exploration/expl_proximity.py index b015f49..f3be825 100644 --- a/exploration/expl_proximity.py +++ b/exploration/expl_proximity.py @@ -66,4 +66,47 @@ sns.displot( # %% df_proximity_inactive.double_proximity.value_counts() +# %% [markdown] +# We have already seen 5.0 and 5.000305 from the same device. What about other values? + +# %% [markdown] +# # Participant proximity values + # %% +df_proximity_combinations = pd.crosstab( + df_proximity_inactive.username, df_proximity_inactive.double_proximity +) +display(df_proximity_combinations) + +# %% [markdown] +# Proximity labelled as 0 and 1. + +# %% +df_proximity_combinations[df_proximity_combinations[1] != 0] + +# %% [markdown] +# Proximity labelled as 0 and 8. + +# %% +df_proximity_combinations[df_proximity_combinations[8] != 0] + +# %% [markdown] +# The rest of the devices have proximity labelled as 0 and 5.00030517578125 or both of these values for "far". + +# %% +df_proximity_combinations[ + (df_proximity_combinations[5.0] != 0) + & (df_proximity_combinations[5.00030517578125] == 0) +] + +# %% +df_proximity_combinations[ + (df_proximity_combinations[5.0] == 0) + & (df_proximity_combinations[5.00030517578125] != 0) +] + +# %% +df_proximity_combinations[ + (df_proximity_combinations[5.0] != 0) + & (df_proximity_combinations[5.00030517578125] != 0) +]