Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to plot the number of blocks created by the largest miners #250

Closed
tehdima opened this issue Mar 2, 2019 · 2 comments
Closed

how to plot the number of blocks created by the largest miners #250

tehdima opened this issue Mar 2, 2019 · 2 comments
Labels
question Question related to using BlockSci

Comments

@tehdima
Copy link

tehdima commented Mar 2, 2019

BlockSci version: 0.5.0
Hello!
I am working on one article, and I need a plot that lets me know how many blocks the largest miners have created depending on the time.
I have read the documentation for your impressive solution, but I am stuck with this issue and have not found suitable examples.
Maybe someone has already done something like this or something to advise?

@maltemoeser
Copy link
Member

maltemoeser commented Mar 4, 2019

import pandas as pd
ds = pd.Series([block.miner() for block in chain.range("September 2017")])
ds.groupby(ds).count()

Will give you a list of miners and the respective number of blocks they found in September 2017.

AntPool            767
BATPOOL             41
BTC.TOP            651
BTC.com            562
...

Is this what you're looking for?

@maltemoeser maltemoeser added the question Question related to using BlockSci label Mar 4, 2019
@tehdima
Copy link
Author

tehdima commented Mar 29, 2019

Hello!
Yes, this what i need, thank you
But now i have trouble when running your solution, like

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 3291: ordinal not in range(128)

does it my fault?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question related to using BlockSci
Projects
None yet
Development

No branches or pull requests

2 participants