From ae56eb169660b14629a1a2995b79c406282daf5c Mon Sep 17 00:00:00 2001 From: Aditya Nagdiya Date: Fri, 21 May 2021 13:53:33 +0530 Subject: [PATCH] Line 80: changed to percentChange1h percent_change_1h --> percentChange1h percent_change_24h -->percentChange24h percent_change_7d -->percentChange7d market_cap -->marketCap volume_24h -->voulme24h --- app_6_eda_cryptocurrency/crypto-price-app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app_6_eda_cryptocurrency/crypto-price-app.py b/app_6_eda_cryptocurrency/crypto-price-app.py index 3b2f474e..aa69944e 100644 --- a/app_6_eda_cryptocurrency/crypto-price-app.py +++ b/app_6_eda_cryptocurrency/crypto-price-app.py @@ -77,11 +77,11 @@ def load_data(): coin_name.append(i['slug']) coin_symbol.append(i['symbol']) price.append(i['quote'][currency_price_unit]['price']) - percent_change_1h.append(i['quote'][currency_price_unit]['percent_change_1h']) - percent_change_24h.append(i['quote'][currency_price_unit]['percent_change_24h']) - percent_change_7d.append(i['quote'][currency_price_unit]['percent_change_7d']) - market_cap.append(i['quote'][currency_price_unit]['market_cap']) - volume_24h.append(i['quote'][currency_price_unit]['volume_24h']) + percent_change_1h.append(i['quote'][currency_price_unit]['percentChange1h']) + percent_change_24h.append(i['quote'][currency_price_unit]['percentChange24h']) + percent_change_7d.append(i['quote'][currency_price_unit]['percentChange7d']) + market_cap.append(i['quote'][currency_price_unit]['marketCap']) + volume_24h.append(i['quote'][currency_price_unit]['volume24h']) df = pd.DataFrame(columns=['coin_name', 'coin_symbol', 'market_cap', 'percent_change_1h', 'percent_change_24h', 'percent_change_7d', 'price', 'volume_24h']) df['coin_name'] = coin_name