Merge tag 'v1.95' into develop
zero dt catch in dataprep
This commit is contained in:
@@ -326,7 +326,7 @@ def nicepaceformat(values):
|
|||||||
|
|
||||||
# Convert seconds to a Time Delta value, replacing NaN with a 5:50 pace
|
# Convert seconds to a Time Delta value, replacing NaN with a 5:50 pace
|
||||||
def timedeltaconv(x):
|
def timedeltaconv(x):
|
||||||
if not np.isnan(x):
|
if not np.isnan(x) and x != 0:
|
||||||
dt = datetime.timedelta(seconds=x)
|
dt = datetime.timedelta(seconds=x)
|
||||||
else:
|
else:
|
||||||
dt = datetime.timedelta(seconds=350.)
|
dt = datetime.timedelta(seconds=350.)
|
||||||
|
|||||||
Reference in New Issue
Block a user