danfojs icon indicating copy to clipboard operation
danfojs copied to clipboard

Wrong column dtypes int32

Open fcorallini opened this issue 3 years ago • 1 comments

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

fcorallini avatar Jan 05 '23 12:01 fcorallini

I'm also having this issue with my AVG and SUM in https://github.com/javascriptdata/danfojs/discussions/666

ZandercraftGames avatar Apr 28 '25 19:04 ZandercraftGames