Python Seaborn MCQ
Create a pair plot with all these columns and choose the correct statements from the given ones: i-there is a good trend between litecoin and
The following datasets contain the prices of some popular cryptocurrencies such as bitcoin, litecoin, ethereum, monero, neo, quantum and ripple. Now, you would like to know how the prices of these currencies vary with each other. The cryptocurrencies and the corresponding columns in the dataset are as follows:
- bitcoin (Close_btc)
- litecoin(Close_ltc)
- ethereum(Close_et)
- monero(Close_mon)
- neo(Close_neo)
Sample Data
Close_btc | Close_et | Close_ltc | Close_mon | Close_neo | Close_qt | |
0 | 7144.38 | 294.66 | 61.3 | 99.76 | 26.23 | 11.21 |
1 | 7022.76 | 298.89 | 55.17 | 102.92 | 26.32 | 10.44 |
2 | 7407.41 | 296.26 | 54.75 | 86.35 | 26.38 | 10.13 |
3 | 7379.95 | 300.47 | 55.04 | 87.3 | 26.49 | 10.05 |
4 | 7207.76 | 305.71 | 56.18 | 87.99 | 26.82 | 10.38 |
Q1) Create a pair plot with all these columns and choose the correct statements from the given ones:
I)There is a good trend between litecoin and monero, one increases as the other
II)There is a weak trend between bitcoin and neo.
a) I
b) II
c) Both I and II
d) None of the above.
df1=pd.read_csv("crypto.csv")
df1.head()
sns.pairplot(df1)
Q2) Create a correlation matrix for all the prices and then plot a heatmap to analyse the trends. Which of the following options is/are correct?
a) Ethereum and Quantum have high correlation
b) Neo and Bitcoin have pretty low correlation
c) Ethereum has similar correlation with litecoin and neo
df2=df.corr()
sns.heatmap(df2,cmap="Greens", annot=True)