'pandas series get value by index's value

I have a question about Pandas series. I have a series as following:

enter image description here

The data type is:

enter image description here

And would like to get the instance that HSHLD_ID = 2000000040054, but not sure how to do that.

Thanks in advance for your help.



Solution 1:[1]

if i got it right, then i think: hh_data.loc[[2000000040054]] should be your sulotion

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Asaf