What does the na_rep parameter mean?
1 answer
The docs Series.str.cat
says:
When na_rep is None (default behavior), NaN values ββin the run are ignored.
Series(['a','b',np.nan,'c']).str.cat(sep=' ')
'a b c'
Series(['a','b',np.nan,'c']).str.cat(sep=' ', na_rep='?')
'a b ? c'
+3
source to share