File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
safegraph/delphi_safegraph Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,16 +139,16 @@ def construct_signals(cbg_df, signal_names):
139
139
140
140
# Transformation: create signal not available in raw data
141
141
for signal in signal_names :
142
- if signal . contains ( FULL_TIME_WORK ) :
142
+ if FULL_TIME_WORK in signal :
143
143
cbg_df [signal ] = (cbg_df ['full_time_work_behavior_devices' ]
144
144
/ cbg_df ['device_count' ])
145
- elif signal . contains ( COMPLETELY_HOME ) :
145
+ elif COMPLETELY_HOME in signal :
146
146
cbg_df [signal ] = (cbg_df ['completely_home_device_count' ]
147
147
/ cbg_df ['device_count' ])
148
- elif signal . contains ( PART_TIME_WORK ) :
148
+ elif PART_TIME_WORK in signal :
149
149
cbg_df [signal ] = (cbg_df ['part_time_work_behavior_devices' ]
150
150
/ cbg_df ['device_count' ])
151
- elif signal . contains ( HOME_DWELL ) :
151
+ elif HOME_DWELL in signal :
152
152
cbg_df [signal ] = (cbg_df ['median_home_dwell_time' ])
153
153
154
154
# Subsetting
You can’t perform that action at this time.
0 commit comments