Код: Выделить всё
path[path['IsPaused']==0].head(1)['Segment_code'] = 0Код: Выделить всё
>>> path[path['IsPaused']==0].head(1)['Segment_code']
37 NaN
Name: Segment_code, dtype: float64
Подробнее здесь: https://stackoverflow.com/questions/597 ... -condition