neural_prophet icon indicating copy to clipboard operation
neural_prophet copied to clipboard

Change str.format() to f-string throughout the neuralprophet source code

Open Kevin-Chen0 opened this issue 3 years ago • 2 comments

For example:

log.info("{} NaN values in column {} were auto-imputed.".format(sum_na - remaining_na, column)) --> log.info(f"{sum_na - remaining_na} NaN values in column {column} were auto-imputed.")

This makes the code more readable as well as saves some space.

Kevin-Chen0 avatar Sep 04 '22 21:09 Kevin-Chen0

Hey Kevin, I would love to help with this issue! Which .py files in neuralprophet should be edited?

Ben-Ostrovsky avatar Sep 04 '22 23:09 Ben-Ostrovsky

Yea that will be great Ben! Ideally, all of the files in the neuralprophet/ folder. Please look at the Contribute page here if it is your first time. Thx!

Kevin-Chen0 avatar Sep 05 '22 05:09 Kevin-Chen0

Close after successful merge of PR #773.

Kevin-Chen0 avatar Oct 10 '22 14:10 Kevin-Chen0