Which of the following codes are true for checking a series is empty in Python?

Code 1:

import pandas as pd
s1= pd.Series()
print(s1.empty)

Code 2:

import pandas as pd
s1= pd.Series()
print(s1.isnull)

1
only code 1
2
only code 2
3
Both code 1 and code 2
4
None

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation