{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": { "tags": [] }, "source": [ "# Programmieraufgabe Playground" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": { "tags": [] }, "source": [ "Hier können Sie Ihre Lösungen zu der Programmieraufgabe lokal testen.\n", "Die [CSV-Datei](../resources/09_data_streams/autobahn.csv) mit alle Daten des Datenstroms ist schon für Sie im `resources` Ordner hinterlegt." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [] }, "outputs": [], "source": [ "from typing import Any\n", "from isda_streaming.data_stream import (\n", " DataStream,\n", " TimedStream,\n", " WindowedStream,\n", " KeyedStream,\n", ")\n", "from isda_streaming.synopsis import CountMinSketch, BloomFilter, ReservoirSample\n", "\n", "import numpy as np\n", "np.set_printoptions(legacy='1.25')" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": { "tags": [] }, "source": [ "Hier ist ein Beispiel, wie man einem `TimedStream` mit Elementen aus dem Index-Bereich von 0 bis 9 initialisiert:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [] }, "outputs": [], "source": [ "start = 0\n", "end = 9\n", "input_stream = TimedStream()\n", "input_stream.from_csv(\"../resources/09_data_streams/stock_prices.csv\", start, end)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [] }, "outputs": [], "source": [ "# Hier können Sie Ihre Lösungen lokal testen..." ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 2 }