

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to Pandas
incomplete
2: Data Types
incomplete
3: Extracting Data
incomplete
4: Dates and Times
incomplete
5: Datetime Math
incomplete
6: Comparing Dates
incomplete
7: List Comprehensions
incomplete
8: Dictionary Comprehensions
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Raw data is often given to you from the marketing team with the wrong types! For example, numbers as strings can't directly be used in calculations:
grade_strings = pd.Series(["99.8", "95.0", "81.5"])
The handy Pandas .astype() method converts every value in a Series, so we can use it to quickly get actual floats:
grade_floats = grade_strings.astype(float)
Complete the convert_temperatures function. Create a Pandas Series from the temperatures list, convert its values to floats, and return it.