vaexio / vaex

Out-of-Core hybrid Apache Arrow/NumPy DataFrame for Python, ML, visualization and exploration of big tabular data at a billion rows per second 🚀
https://vaex.io
MIT License
8.31k stars 591 forks source link

[BUG-REPORT] `BinnerTime` object has not attribute `combine_expressions` #2071

Open thisismeleaving opened 2 years ago

thisismeleaving commented 2 years ago

Description After upgrading from vaex v4.7.0 This call:

import vaex
from numpy import datetime64

vx = vaex.from_dict({
    'dt' : [
        datetime64('2016-12-01T10:00:00'),
        datetime64('2016-12-01T11:00:00')
    ],
    'tmp_idx': [
        '111_223.5',
        '111_223.5'
    ]
})
grouped = vx.groupby(by=[vaex.BinnerTime.per_day(vx.dt), vx.tmp_idx])

Now throws the following error:

AttributeError: 'BinnerTime' object has not attribute 'combine_expressions'

Software information

thisismeleaving commented 2 years ago

This is still an issue in v4.9.2

thisismeleaving commented 2 years ago

still an issue as of v4.11.1

fllara commented 2 years ago

I'm experiencing this issue with 4.12

nelmondo commented 2 years ago

I'm experiencing this issue with 4.14

JovanVeljanoski commented 2 years ago

We've look at this in some detail.. unfortunately it clashes with other features and it might not be fixable (at least not in the short term). @maartenbreddels can explain this better.

As a work-around, i would suggest casting the datatime column to string in the required format, and then do the groupby. Does this make sense? I know it is annoying..

nelmondo commented 1 year ago

We've look at this in some detail.. unfortunately it clashes with other features and it might not be fixable (at least not in the short term). @maartenbreddels can explain this better.

As a work-around, i would suggest casting the datatime column to string in the required format, and then do the groupby. Does this make sense? I know it is annoying..

I change the format from datetime to string, but I can't solve this issue??? please check this... (I'm using with 4.16.0)

nelmondo commented 1 year ago

When does it fix???