Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding correlation between cryptocurrency data

I am having one dataset about cryptocurrency. the columns of dataset are as follows : 1. name of currency 2. date 3. high 4. low 5. close 6. open 7. volume 8. marketcap

I want to find the correlation between high of two currencies. For example Correlation between High of Bitcoin and Ethereum. How it can be done in pandas ?

like image 725
Urvish Avatar asked Jun 22 '26 23:06

Urvish


1 Answers

I would try using .corr() to calculate the correlation. Maybe try filtering your table into two subset tables (one for Bitcoin and one for Ethereum).

df1 = Core_Table[Core_Table['name of currency'] == 'Bitcoin']
df2 = Core_Table[Core_Table['name of currency'] == 'Ethereum']

Now calculate the correlation of the highs.

df1['high'].corr(df2['high'])
like image 140
Brian Avatar answered Jun 25 '26 13:06

Brian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!