English

Create the following series and do the specified operation: MTseries, an empty series. Check if it is an empty series.

Advertisements
Advertisements

Question

Create the following series and do the specified operation:

MTseries, an empty series. Check if it is an empty series.

Code Writing
Advertisements

Solution

import pandas as pd

MTseries = pd.Series()

print(MTseries.empty)

Output:

True

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Data Handling using Pandas - I - Exercise [Page 60]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 2 Data Handling using Pandas - I
Exercise | Q 5. d) | Page 60
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×