KnowledgeBoat Logo
|

Informatics Practices

If S1 is a series object then how will len(S1) and S1.count() behave ?

Python Pandas

3 Likes

Answer

len(S1) returns the total number of elements in the Series S1 object, including NaNs, while S1.count() returns the count of non-NaN values in the S1 Series object.

Answered By

1 Like


Related Questions