I exported a csv file from A code file
A col
-----
0 10
-----
1 10
-----
but when I read it in other B code file, there are some missing values in the dataframe
B col
----
0 10
----
1 5
----
I expected to see:
B col
----
0 10
----
1 10
----
I already cross checked the missing values show in the B code file with in A code file, it does has data in the A code file, but missing in the B code file with no reasons.
May I know why the number of rows differ? Thank you
My code:
dfA.to_csv("df.csv", index=False)
dfB = pd.read_csv("df.csv")