ValueError: cannot reindex from a duplicate axis when assigning new column to pandas DataFrame
Im trying to figure out what hours in my datetime index are between 2 different hours. This is my code: rbe60['result'] = rbe60.index.hour.to_series().between(3,23) The only problem is I keep g...
stackoverflow.com
ValueError: cannot reindex from a duplicate axis
여러가지 원인이 있는데
위에서도 발견하지 못했다..
나 같은 경우는 분석할 데이터 기간보다 읽어들인 데이터 기간이 짧아서 에러가 발생.
이거 가지고 또 몇 시간....
허무..
결국 기본이 없다는 이야기 ㅠㅠ