KwickClips Python · 43 sec · free
Why does an unmatched label give NaN?
Short answer. Pandas matches by label, so that value has nothing to pair with.
How do you avoid NaN when adding?
Use the add method with fill_value=0.
Remember
| Maths works label by label |
| Unmatched labels give NaN |
You added two Series and got N a N. Why? Pandas adds by label, not position. Label Om and label Anu never match. So both answers are N a N, meaning missing. Two rules. Maths works label by label. Unmatched labels give N a N.
This clip is from the full lesson: Pandas Series — 8 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: CBSE Class 12 Informatics Practices (065), CBSE Class 12 Informatics Practices (065), CBSE Class 12 Informatics Practices (065)
More KwickClips from this lesson
What does one-dimensional mean here?41 sec
What becomes the index when you use a dictionary?45 sec
Does marks["Riya":"Aman"] include Aman?42 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

