Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventSet.add_index clears events #437

Open
peetasan opened this issue Feb 16, 2025 · 0 comments
Open

EventSet.add_index clears events #437

peetasan opened this issue Feb 16, 2025 · 0 comments

Comments

@peetasan
Copy link

In the bank fraud detection tutorial the add_index method clears the events as shown by the following code and the plot in the tutorial is also empty

dataset_tp.add_index('CUSTOMER_ID')
features [3]: TERMINAL_ID (str_), TX_AMOUNT (float64), TX_FRAUD (int64)
indexes [1]: CUSTOMER_ID (str_)
events: 0
index values: 4959
memory usage: 2.6 MB

https://github.com/google/temporian/blob/1e33b75b9fadfaf1c30bc20725cba9753105e4f9/docs/src/tutorials/bank_fraud_detection_with_tfdf.ipynb#L704-L709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant