0

I have a dataframe df_new which looks like:

enter image description here

And when I use the command:

df_new.to_csv(csv+'_filtered.csv', index=False)

I generate a csv file that suddenly breaks the row 24 before the 2 last columns, generating a new undesirable row which is completely empty, except the data of the last 2 columns that should be in the previous row:

enter image description here

Am I doing something wrong to save this file?

brenodacosta
  • 389
  • 2
  • 13

1 Answers1

1

There is a \r at the end of the URL on row 21. I don't know if that is the proper situation, but this method may load correctly.

ken
  • 1,543
  • 1
  • 2
  • 14