VS code // It doesn t show me all the rows of data on my terminal

I run this python code on VS code to get historical data of some stocks i choose.

The python code

from pandas_datareader import data
from pandas_datareader._utils import RemoteDataError
import matplotlib.pyplot as plt
import pandas as pd 
import numpy as np 
from datetime import datetime

STAR_DATE = '2005-01-01'
END_DATE = str(datetime.now().strftime('%Y-%m-%d'))

UK_STOCK = 'UU.L'
USA_STOCK = 'AMZN'

def get_data(ticker):
    try:
        stock_data = data.DataReader(ticker,
                                    'yahoo',
                                     STAR_DATE,
                                    END_DATE)
        print(stock_data)    
                            
    except RemoteDataError:
        print('No Data found for {t}'.format(t=ticker))

get_data(USA_STOCK)  

Code

I run the code and everything is going fine. But it doesn t show in the termninal all the rows of data i want. It shows me only a part of that rows.

enter image description here

How do i display in the terminal all the rows?



Read more here: https://stackoverflow.com/questions/66522323/vs-code-it-doesn-t-show-me-all-the-rows-of-data-on-my-terminal

Content Attribution

This content was originally published by Vatn Co at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: