May-19-2022, 06:52 PM
(Oct-19-2021, 09:09 PM)naggafin Wrote:(Oct-19-2021, 01:19 PM)22_alias Wrote: It follows from the formula that the value you get is between 0 and 1. Then they probably just multiply it by 100. I don't know if your code is correct but values between 0 and 1 are what you should expect, so that's one test passed.
I see. It does sound as if it is behaving as expected then. Thanks for taking the time to review my problem. I really appreciate it!
I made a copy of my dataframe and build the pcy according to this code example. But when using the above code and call the function, it gives me an "KeyError: 1". What can be the reason? Maybe it is trivial.. but I dont get it