Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate.
2.08k
stars
162
forks
source link
The `missingval` argument doesn't recognise `np.nan` values, it only recognises `None` #316
Open
paulrougieux opened 5 months ago
Related to
Current behaviour
The
missingval
argument doesn't recognisenp.nan
values, it only recognisesNone
Note: In practice I use the data frame
.to_markdown()
methods which calls tabulate in the background, as explained in the pandas documentation of DataFrame.to_markdownProposed behaviour
The
missingval
argument should recognisenp.nan
as a missing value. This would help avoid having to replace them withdf.replace(np.nan, None)
.