Skip to content

BUG: dask.dataframe fill_value doesn't seem to do anything... #1063

@thequackdaddy

Description

@thequackdaddy

Try the following code... it should result in a dask dataframe with no NaN values, but alas, it still shows up. I guess fill_value isn't working.

import dask.dataframe as ddf
import pandas as pd
import numpy as np

x = np.arange(1, 10, dtype=float)
x[5] = np.nan

x = pd.DataFrame(x, columns=['foo'])
x = ddf.from_pandas(x, chunksize=3)
x.pow(2, fill_value=1).compute()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions