I am a real noob in Python so at first I wanna excuse me for this question. I'm writing this down:
Code:
import pandas as pd
import numpy as np
from scipy.signal import argrelextrema
import matplotlib.pyplot as plt
data = pd.read_csv('USDJPY.csv')
data.columns = [['Date', 'open', 'high', 'low', 'close', 'vol']]
data = data.drop_duplicates(keep=False)
data.Date = pd.to_datetime(data.Date,format='%d.%m.%Y %H:%M:%S.%f')
data = data.set_index(data.Date)
data = data[['open', 'high', 'low', 'close', 'vol']]`
But I always get this: Type Error: only integer scalar arrays can be converted to a scalar index
Can you please help me?
The .csv file contains USDJPY historical data