From 54a23b21123787072bc925ccadc18d8db8df9584 Mon Sep 17 00:00:00 2001 From: longxiaofei Date: Mon, 13 May 2024 22:19:45 +0800 Subject: [PATCH] chore: merge test case --- tests/offline.ipynb | 51 ---------------------------------- tests/stress-test-polars.ipynb | 38 +++++++++++++++++-------- 2 files changed, 26 insertions(+), 63 deletions(-) delete mode 100644 tests/offline.ipynb diff --git a/tests/offline.ipynb b/tests/offline.ipynb deleted file mode 100644 index 66634d49..00000000 --- a/tests/offline.ipynb +++ /dev/null @@ -1,51 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import pandas as pd\n", - "import pygwalker as pyg\n", - "df = pd.read_csv('./bike_sharing_dc.csv', parse_dates=['date'])" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import pygwalker.services.config as pyg_conf\n", - "pyg_conf.set_config({'privacy': 'offline'})" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "!pygwalker config --list" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "pyg.walk(df)" - ] - } - ], - "metadata": { - "language_info": { - "name": "python" - }, - "orig_nbformat": 4 - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/tests/stress-test-polars.ipynb b/tests/stress-test-polars.ipynb index dd9b4a85..b3b59a26 100644 --- a/tests/stress-test-polars.ipynb +++ b/tests/stress-test-polars.ipynb @@ -19,6 +19,30 @@ "tags": [] }, "outputs": [], + "source": [ + "import pygwalker.services.config as pyg_conf\n", + "\n", + "pyg_conf.set_config({'privacy': 'offline'})" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e1a103bc", + "metadata": {}, + "outputs": [], + "source": [ + "!pygwalker config --list" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b944c557-ec0d-4afb-afcb-c5fb2376b25e", + "metadata": { + "tags": [] + }, + "outputs": [], "source": [ "import polars as pl\n", "df = pl.scan_csv('./bike_sharing_dc.csv', try_parse_dates = True)\n", @@ -37,23 +61,13 @@ { "cell_type": "code", "execution_count": null, - "id": "b944c557-ec0d-4afb-afcb-c5fb2376b25e", - "metadata": { - "tags": [] - }, + "id": "527bfe29-c8fd-4051-863f-d1f63e0de4c3", + "metadata": {}, "outputs": [], "source": [ "import pygwalker as pyg\n", "pyg.walk(df)" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "527bfe29-c8fd-4051-863f-d1f63e0de4c3", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {