Traktuj NAN jako kategorię

g_without_nan = g.cat.add_categories("D").fillna("D")
Dark Duck