Question: Python Homework question is another option is to use s.split(-). Use that strategy, again together with map, a lambda function, and int. How to I

Python

Homework question is "another option is to use s.split("-"). Use that strategy, again together with map, a lambda function, and int."

How to I add in that x so that it will also be turn into an integer with in the map? I am able to split the "-" from the string of date but don't know how to then in the same line turn it into a Integer.

df["date"].map(lambda x : x.split("-"))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!