Quiz: String Manipulation, Date-Time Manipulation, and DT Indexing

Quiz yourself on string manipulation, date-time manipulation, and DT indexing.

1

Suppose we have a Series S of type object. Which method can be used to change the type to string?

A)

(string)S

B)

S.astype('string')

C)

S.type = 'string'

D)

Type conversion is not allowed in pandas.

Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.