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

Function fillna_check

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

Source from the content-addressed store, hash-verified

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

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