abjer / isds2020

Introduction to Social Data Science 2020 - a summer school course abjer.github.io/isds2020
58 stars 92 forks source link

Adding decimal point #18

Open th92 opened 3 years ago

th92 commented 3 years ago

Hi, I can't seem to figure out how to add decimal point (0.4.4). Any help to a novice? I have made the fahrenheit conversion.

jsr-p commented 3 years ago

Hi @th92 , can you send a screenshot of your code such that we can see where you go wrong? :)

th92 commented 3 years ago

df_select['TMAX_F'] = df_select.apply(lambda row: (row.obs_value*1.8) + 32, axis = 1) df_select thx:)

jsr-p commented 3 years ago

You will have to go to ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/readme.txt and search for "TMAX" in the txt file to see how it is presented in the dataset. After that you can divide the obs_value column by the given number to get the correct converted value :)