text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

TITLE_SIZE = 20
TITLE_PAD = 15
LABELE_SIZE = 15
LABELE_PAD = 10

df = pd.read_csv('../input/top-100-cryptocurrency-2022/Top 100 Cryptocurrency 2022.csv')

df.columns = ['ranking', 'name', 'price', 'changes_24h', 'changes_7d', 'changes_30d', 'changes_1y', 'market_cap', 'volume', 'supply']

df.shape

df.isnull().sum()

top_price_alts = df[['name', 'price']][3:23]

sns.set_theme()

fig, ax = plt.subplots(figsize=(11, 9))
sns.barplot(ax=ax, x='price', y='name', data=top_price_alts)
ax.set_title('Top 20 Altcoins by Price', fontsize=TITLE_SIZE, pad=TITLE_PAD)
ax.set_ylabel('Crypto Name', fontdict={'fontsize': LABELE_SIZE}, labelpad=LABELE_PAD)
ax.set_xlabel('Price', fontdict={'fontsize': LABELE_SIZE}, labelpad=LABELE_PAD)
plt.show()