Questions tagged [refinitiv-eikon-api]

18 questions
0
votes
0 answers

Why is my DataFrame duplicating additions to a specific column?

I am trying to sequentially add new data to a DataFrame within a for loop. It successfully writes to the DataFrame column I (I think) selected, but it also writes the data to another column I am not trying to edit. Why is it doing this? How can I…
Brad Johansen
  • 333
  • 1
  • 11
0
votes
1 answer

How to add a new column to multiple pandas dataframes based on a condition?

I have 17 data frames to which I wish to add a new column using for loop based on certain conditions. Any suggestions on how this can be done? I have a list called custom_region = [] and 17 dataframes again stored in a list called CGdfs. CGdfs =…
0
votes
2 answers

I am trying to convert an object type column to float. Not working

TSRdfr["Return"] = pd.to_numeric(TSRdfr.Return, errors='coerce') This is not converting the data type of Return from Object to float64. I tried removing errors ='coerce' to see what's happening. I am getting an error saying: Unable to parse NaN…
1
2