isds2020
isds2020 copied to clipboard
Adding decimal point
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.
Hi @th92 , can you send a screenshot of your code such that we can see where you go wrong? :)
df_select['TMAX_F'] = df_select.apply(lambda row: (row.obs_value*1.8) + 32, axis = 1) df_select thx:)
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 :)