Python Forum
Outputs "NaN" after "DataFrame columns" function?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outputs "NaN" after "DataFrame columns" function?
#1
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy.signal import argrelextrema

data = pd.read_csv("Data/EURUSD60.csv", delimiter="\t")

print(data)

data = pd.DataFrame(data=data, columns=["Date", "Open", "High", "Low", "Close", "Volume"])

print(data)
and output is:
[Image: JpNHRj.png]

I'm trying some strategies and calculations on prices. Previously I was working on windows (I was using excel for the python file) then I installed manjaro and encountered such problem with the csv file.
Reply


Messages In This Thread
Outputs "NaN" after "DataFrame columns" function? - by epsilon - Jan-23-2021, 06:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python outputs to Excel NewBiee 3 854 Nov-26-2023, 07:25 AM
Last Post: DPaul
  How to add columns to polars dataframe sayyedkamran 1 1,767 Nov-03-2023, 03:01 PM
Last Post: gulshan212
  concat 3 columns of dataframe to one column flash77 2 840 Oct-03-2023, 09:29 PM
Last Post: flash77
  Convert several columns to int in dataframe Krayna 2 2,396 May-21-2021, 08:55 AM
Last Post: Krayna
  Adapting a dataframe to the some of columns flyway 2 2,049 Aug-12-2020, 07:21 AM
Last Post: flyway
  A function to return only certain columns with certain string illmattic 2 2,198 Jul-24-2020, 12:57 PM
Last Post: illmattic
  Difference of two columns in Pandas dataframe zinho 2 3,363 Jun-17-2020, 03:36 PM
Last Post: zinho
  DataFrame: To print a column value which is not null out of 5 columns mani 2 2,114 Mar-18-2020, 06:07 AM
Last Post: mani
Question Dividing a single column of dataframe into multiple columns based on char length darpInd 2 2,459 Mar-14-2020, 09:19 AM
Last Post: scidam
  Interate for loop over certain columns in dataframe Finpyth 2 1,953 Mar-06-2020, 08:34 AM
Last Post: Finpyth

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020