vaex icon indicating copy to clipboard operation
vaex copied to clipboard

When using groupby, change the type to distort the value.

Open JovanVeljanoski opened this issue 1 year ago • 0 comments

Discussed in https://github.com/vaexio/vaex/discussions/2131

Originally posted by tommyhj217 July 26, 2022 Hi DataFrame delay_time has values from -276 to 111 and dtype=int64. image The number of values is 206. image

df_delaytime_data = vdf_2.groupby(['delay_time'], agg={'cnt':'count'}) image

However, if you do groupby, the dtype of the column is changed to int8, and the value of -128 or higher is changed to positive.

Is this a problem with groupby? How can we solve it?

Thanks Hyunjun

JovanVeljanoski avatar Jul 26 '22 21:07 JovanVeljanoski