financial-data icon indicating copy to clipboard operation
financial-data copied to clipboard

DataFrame has no append (deprecated) for oanda currencies

Open mathisloevenich opened this issue 1 year ago • 0 comments

In the get.py there are DataFrames concatenated via append which is deprecated I guess:

here is my solution (workaround):

 if provider == 'oanda':
        csv_files = glob.glob('{0}/currencies/oanda/{1}/{2}/*.csv'.format(data_dir, instrument, year))
        data_frames = [pd.read_csv(csv_file, index_col=0) for csv_file in csv_files]
        price_data = pd.concat(data_frames)

mathisloevenich avatar Nov 22 '24 15:11 mathisloevenich