isds2020 icon indicating copy to clipboard operation
isds2020 copied to clipboard

Adding decimal point

Open th92 opened this issue 3 years ago • 3 comments

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.

th92 avatar Aug 06 '20 13:08 th92

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

jsr-p avatar Aug 06 '20 13:08 jsr-p

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

th92 avatar Aug 06 '20 13:08 th92

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 :)

jsr-p avatar Aug 06 '20 13:08 jsr-p