0

I need help in the Python in Finance course

I am stuck in the Code repo: Bitcoin Project I did not come up with the expected code. Please help: import numpy as np import numpy_financial as npf # why do we need both np and npf? #price for 2018-2021 bitcoin=[3869.47, 7188.46, 22203.31, 29391.78] np.std(bitcoin) print(bitcoin) # what am I missing? #this is the first instance of the code rep

9th Jan 2022, 12:31 PM
Stacey Prahl
Stacey Prahl - avatar
2 ответов
0
1. financial functions are depricated in numpy. Therefore you need numpy_financial package to use them. Although it's not needed in this task, but further code will be added step by step in future lessons. 2. print(np.std(bitcoin))
9th Jan 2022, 1:26 PM
Alexey Kopyshev
Alexey Kopyshev - avatar
0
Thanks so much! what do you mean by "Financial functions are depricated in numpy" please expain in simple terms
16th Jan 2022, 4:28 AM
Stacey Prahl
Stacey Prahl - avatar