MCPcopy Create free account
hub / github.com/dask/dask / _convert_to_numeric

Function _convert_to_numeric

dask/dataframe/core.py:436–441  ·  view source on GitHub ↗
(series, skipna)

Source from the content-addressed store, hash-verified

434
435
436def _convert_to_numeric(series, skipna):
437 if skipna:
438 return series.dropna().astype("i8")
439
440 # series.view("i8") with pd.NaT produces -9223372036854775808 is why we need to do this
441 return series.astype("i8").mask(series.isnull(), np.nan)
442
443
444def _sqrt_and_convert_to_timedelta(partition, axis, dtype=None, *args, **kwargs):

Callers 2

_cov_chunkFunction · 0.90
stdMethod · 0.90

Calls 4

astypeMethod · 0.45
dropnaMethod · 0.45
maskMethod · 0.45
isnullMethod · 0.45

Tested by

no test coverage detected