What does the na_rep parameter mean?

+3


source to share


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







All Articles