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

Function fillna_check

dask/dataframe/methods.py:408–419  ·  view source on GitHub ↗
(df, method, check=True)

Source from the content-addressed store, hash-verified

406
407
408def fillna_check(df, method, check=True):
409 if method:
410 out = getattr(df, method)()
411 else:
412 out = df.fillna()
413 if check and out.isnull().values.all(axis=0).any():
414 raise ValueError(
415 "All NaN partition encountered in `fillna`. Try "
416 "using ``df.repartition`` to increase the partition "
417 "size, or specify `limit` in `fillna`."
418 )
419 return out
420
421
422# ---------------------------------

Callers

nothing calls this directly

Calls 4

fillnaMethod · 0.45
anyMethod · 0.45
allMethod · 0.45
isnullMethod · 0.45

Tested by

no test coverage detected