Skip to content

MissingChart(measure=Measure.COUNT) Source

Bases: Chart

Chart drawing one bar per column of a Table, as high as its missing values, used by Plot.missing_by_column.

Every column has its bar, even without missing value.

Added in version 0.1.0

Parameters:

Raises:

Examples:

import numdaplot as ndp

cities = ndp.Array.from_list(["Paris", "Lyon", "Nice", "Pau"])
prices = ndp.Array.from_list([12.0, None, None, 15.5])
rooms = ndp.Array.from_list([2, 3, 1, 4])
flats = ndp.Table.from_arrays({"city": cities, "price": prices, "rooms": rooms})
chart = ndp.MissingChart(measure=ndp.Measure.RATIO)
plot = ndp.Plot.missing_by_column(flats, chart)
plot.show()

Plot drawn by the example