Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding decimal point #18

Open
th92 opened this issue Aug 6, 2020 · 3 comments
Open

Adding decimal point #18

th92 opened this issue Aug 6, 2020 · 3 comments

Comments

@th92
Copy link

th92 commented Aug 6, 2020

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
Copy link
Collaborator

jsr-p commented Aug 6, 2020

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

@th92
Copy link
Author

th92 commented Aug 6, 2020

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

@jsr-p
Copy link
Collaborator

jsr-p commented Aug 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants