hassonlab / 247-encoding

Contains python scripts for performing encoding on 247 data.
0 stars 9 forks source link

Minor refactor #56

Closed hvgazula closed 1 year ago

hvgazula commented 1 year ago

Can we write this https://github.com/hassonlab/247-encoding/blob/03e73d281600e34e8a584025f0895b0e2aa93d69/scripts/tfsenc_read_datum.py#L232-L234

as simply

freq_mask = df.word_freq_overall >= args.min_word_freq
common &= freq_mask