SciSharp / TensorFlow.NET

.NET Standard bindings for Google's TensorFlow for developing, training and deploying Machine Learning models in C# and F#.
https://scisharp.github.io/tensorflow-net-docs
Apache License 2.0
3.23k stars 517 forks source link

[BUG Report]: Set `header: 0` or `header: 1` in `pd.read_csv()` cause value in some columns becomes zero #1135

Open Tvvgge opened 1 year ago

Tvvgge commented 1 year ago

Description

Hello, I'm trying to load some .csv datasets by using the pd.read_csv() for making predictions, as the attachments. For the data1, when I use pd.read_csv("data1.csv", sep: ',', header: 1); or without setting the header, everything is fine, but when the header is set to zero, some values in the first column becomes zero

header: 1                  header: 0
0 0 0 0 0                  0 3 180 1597 1
1 50.09995 90 1597 1       1 0 90 1597 1
2 2.9475 90 1597 1         2 0 90 1597 1
3 8.108818 0 1597 2        3 0 0 1597 2
4 5.55526 0 1597 1         4 0 0 1597 1

Data2 is the opposite, there's no problem when the header is set to zero, but when it's set to 1 or not set, then some values in the first column become zero

data1.csv data2.csv

Reproduction Steps

No response

Known Workarounds

No response

Configuration and Other Information

No response