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):
139139
140140 # Transformation: create signal not available in raw data
141141 for signal in signal_names :
142- if signal . contains ( FULL_TIME_WORK ) :
142+ if FULL_TIME_WORK in signal :
143143 cbg_df [signal ] = (cbg_df ['full_time_work_behavior_devices' ]
144144 / cbg_df ['device_count' ])
145- elif signal . contains ( COMPLETELY_HOME ) :
145+ elif COMPLETELY_HOME in signal :
146146 cbg_df [signal ] = (cbg_df ['completely_home_device_count' ]
147147 / cbg_df ['device_count' ])
148- elif signal . contains ( PART_TIME_WORK ) :
148+ elif PART_TIME_WORK in signal :
149149 cbg_df [signal ] = (cbg_df ['part_time_work_behavior_devices' ]
150150 / cbg_df ['device_count' ])
151- elif signal . contains ( HOME_DWELL ) :
151+ elif HOME_DWELL in signal :
152152 cbg_df [signal ] = (cbg_df ['median_home_dwell_time' ])
153153
154154 # Subsetting
You can’t perform that action at this time.
0 commit comments