Skip to content

[FEAT]: Create option(s) for display of NaN values. #1280

Description

@genedan

In the case of a Jupyter notebook, NaN values are overridden with hardcoded blanks:

elif self._dimensionality == "single":
data = self._repr_format()
fmt_str = self._get_format_str(data=data)
default = (
data
.to_html(
max_rows=pd.options.display.max_rows,
max_cols=pd.options.display.max_columns,
float_format=fmt_str.format,
)
.replace("nan", "")
.replace("NaN", "")

We can have this be configurable, rather than being hardcoded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

Priority

Medium

Effort

Low

Scope

Both

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions