Created
March 2, 2023 09:58
-
-
Save tomas-quix/dc463c5d1a5461d4477ef91d9b7e18fb to your computer and use it in GitHub Desktop.
OSS Announcement
This file contains 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
def on_read_dataframe(stream: StreamConsumer, df: pd.DataFrame): | |
df["total"] = df["price"] * df["items_count"] | |
topic_producer.get_or_create_stream(stream.stream_id).timeseries_data.write(df) | |
buffer.on_received_dataframe = on_read_dataframe_handler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment