I have a dataframe with x-y values representing values and their counts, e.g. (1, 1000), (2, 100), (3, 10), etc. I would like to fit a power law to this distribution using MLE.
I could use the power.law.fit or poweRlaw libraries, but it appears that these libraries take in specific samples for data instead of x-y values representing values and their counts.
Is there any other library that might do the job? Thanks!