We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Data Types

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)

Assignment

Complete the convert_temperatures function. Create a Pandas Series from the temperatures list, convert its values to floats, and return it.