I am trying to fit power law with powerlaw.py:
data = [1.7, 3.2, 4.3, 2.1, 0.9, 3.3, 1.2, 4.3]
fit = powerlaw.Fit(data)
I'm getting the warning:
IndexError: 0-d arrays can only use a single () or a list of newaxes
(and a single ...) as an index
I've tested also data which were used in these code examples and I have always the same problem.
Why this happens?