Closed RickyKongCoder closed 2 months ago
It might be a bug that was introduced recently.
Can you copy/past a few lines of data where there is a nan? Is it like ,nan,
, or like ,,
, or something else?
Also, when you read the data into DataFrame, what do you see in the place of nan? Is it the next value?
so basically
here is a data of 9 rows with 5 empty values at column close2.
This is the code I write, very simple, just reading the csv at write in console.
This is the output of console.
You can see that when reading "close2" column, the read function skipped the first 5 empty values.
This is the csv of data:
INDEX:9:
I have also tried this:
INDEX:9:
it also give the same result.
Hmm, that's even worst than what you said. The rows in the console output doesn't match the rows in the file. I have to look at it
@RickyKongCoder ,
This has been fixed in master. Thanks for spoting it
I'm a user of the C++ dataframe library. I wanted to start by expressing my appreciation for your impressive library. I do have a question regarding the csv reading function, and I was hoping you could provide some clarification. I noticed that when using the "read" function to read a csv file, it skips over NaN values. I was curious about the reasoning behind this design choice, as opposed to following the traditional approach of considering NaN as representing empty values, as done in pandas. Could you please shed some light on this matter? Thank you in advance for your assistance.