Created
October 31, 2025 16:45
-
-
Save ntkathole/e652aa178256940d3cf96ba91aefd75c to your computer and use it in GitHub Desktop.
Fetch historical features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| entity_df = pd.DataFrame({ | |
| "customer_id": [ | |
| "CUST_000001", | |
| "CUST_000002", | |
| "CUST_000003", | |
| "CUST_000005", | |
| ], | |
| "event_timestamp": [ | |
| pd.Timestamp("2025-08-24 10:17:08.512932839"), | |
| pd.Timestamp("2025-06-18 20:26:06.075684093"), | |
| pd.Timestamp("2025-07-07 18:18:11.874200063"), | |
| pd.Timestamp("2025-07-17 02:28:21.294388467"), | |
| ] | |
| }) | |
| features = fs_banking.get_historical_features( | |
| entity_df=entity_df, | |
| features=["customer_high_value_txns:high_value_txn_24h"] | |
| ).to_df() | |
| print(features) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment