danfojs
danfojs copied to clipboard
Wrong column dtypes int32
I'm using [email protected] in the browser, loaded from the official CDN link taken from the documentation. Tested in Chrome and Firefox
df = new dfd.DataFrame([ { "A" : "10"}, { "A" : "100"}]) df.dtypes >>> [ "int32" ] df["A"].sum() >>> "010100"
if i do:
df2 = df.asType("A", "int32") df2.dtypes >>> [ "int32" ] df2["A"].sum() >>> 110
I'm also having this issue with my AVG and SUM in https://github.com/javascriptdata/danfojs/discussions/666