From 512a7bcb9972e25c9ca47a3995440a2ade35c494 Mon Sep 17 00:00:00 2001 From: Yuvanesh K M <135065912+yuvaneshkm@users.noreply.github.com> Date: Fri, 27 Sep 2024 18:40:53 +0530 Subject: [PATCH] Delete experiments directory --- experiments/experiments.ipynb | 376 ---------------------------------- experiments/sample.csv | 5 - experiments/sample.xlsx | Bin 8491 -> 0 bytes 3 files changed, 381 deletions(-) delete mode 100644 experiments/experiments.ipynb delete mode 100644 experiments/sample.csv delete mode 100644 experiments/sample.xlsx diff --git a/experiments/experiments.ipynb b/experiments/experiments.ipynb deleted file mode 100644 index 66d706e..0000000 --- a/experiments/experiments.ipynb +++ /dev/null @@ -1,376 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## Source code experiment" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "import warnings\n", - "warnings.filterwarnings('ignore')" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
AnimalsType
0TigerWild
1LionWild
2CowDomestic
3DogDomestic
\n", - "
" - ], - "text/plain": [ - " Animals Type\n", - "0 Tiger Wild\n", - "1 Lion Wild\n", - "2 Cow Domestic\n", - "3 Dog Domestic" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# csv file testing:\n", - "import pandas as pd\n", - "from pathlib import Path\n", - "def load_csv(filepath:str, delimiter:str):\n", - " filepath = Path(filepath)\n", - " return pd.read_csv(filepath, delimiter=delimiter)\n", - "\n", - "df1 = load_csv('sample.csv', ',')\n", - "df1" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
AnimalsType
0TigerWild
1LionWild
2CowDomestic
3DogDomestic
\n", - "
" - ], - "text/plain": [ - " Animals Type\n", - "0 Tiger Wild\n", - "1 Lion Wild\n", - "2 Cow Domestic\n", - "3 Dog Domestic" - ] - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# excel sheet testing:\n", - "import pandas as pd\n", - "from pathlib import Path\n", - "def load_excelsheet(filepath:str, sheet_name:str):\n", - " filepath = Path(filepath)\n", - " return pd.read_excel(filepath, sheet_name=sheet_name)\n", - "\n", - "df2 = load_excelsheet('sample.xlsx', 'sample_sheet')\n", - "df2" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
AnimalsType
0TigerWild
1LionWild
2CowDomestic
3DogDomestic
\n", - "
" - ], - "text/plain": [ - " Animals Type\n", - "0 Tiger Wild\n", - "1 Lion Wild\n", - "2 Cow Domestic\n", - "3 Dog Domestic" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# google sheet testing:\n", - "import pandas as pd\n", - "def load_gsheet(gsheet_id:str, sheet_name:str):\n", - " base_url = 'https://docs.google.com/spreadsheets/d'\n", - " sheet_csv = 'gviz/tq?tqx=out:csv&sheet='\n", - " url = f'{base_url}/{gsheet_id}/{sheet_csv}{sheet_name}'\n", - " return pd.read_csv(url)\n", - "\n", - "df3 = load_gsheet('17r9f4BL7sjmdLBnt92OdQP3CHK5bdT3hozg6DUJXGqU', 'sample_sheet')\n", - "df3" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
AnimalsType
0TigerWild
1LionWild
2CowDomestic
3DogDomestic
\n", - "
" - ], - "text/plain": [ - " Animals Type\n", - "0 Tiger Wild\n", - "1 Lion Wild\n", - "2 Cow Domestic\n", - "3 Dog Domestic" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# load mongodb data:\n", - "import pandas as pd\n", - "from pymongo.mongo_client import MongoClient\n", - "def load_mongodbdata(host:str, database:str, collection:str):\n", - " client = MongoClient(host)\n", - " db = client[database]\n", - " col = db[collection]\n", - " records = col.find()\n", - " data = list(records)\n", - " df = pd.DataFrame(data)\n", - " df.drop('_id', axis=1, inplace=True)\n", - " return df\n", - "\n", - "df5 = load_mongodbdata('localhost', 'sample_database', 'sample_collection')\n", - "df5" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "dbsc", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.12.4" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/experiments/sample.csv b/experiments/sample.csv deleted file mode 100644 index 249e9b2..0000000 --- a/experiments/sample.csv +++ /dev/null @@ -1,5 +0,0 @@ -Animals,Type -Tiger,Wild -Lion,Wild -Cow,Domestic -Dog,Domestic diff --git a/experiments/sample.xlsx b/experiments/sample.xlsx deleted file mode 100644 index c2774e4f68c08cddb12a2b91b8844633343322de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8491 zcmeHMgT98$VLngJxF89R6Eh z-L0C2l#e++cWpDakdntc=|0=bCZZJQBsVgOe*PNp%CW9pok#ksghDBWB{7Mp|4PP8 zmlpnFXFXQ2ZlOT;Y}=BG)&f3%Z_y~;$}r)WwH46I@Nk7q9x0N}YmUU#Fb_`CmEy z4{PvGuU;CjtlAF33fYsp3hh1}pO3|pRCJS&YovYZ>n}ftTN9nbKsn#?hzjp1MG)c> zzh>X7-r0HK=*@20lVzULNCF}u`dYWLkdzBY7gXklPRX*4rC&SnUB{2dPg0*Kcrdv( z$1sYo_U_)eq{dEJNO|4k?9GJ1 z*M5`9`5V|`VFF6qBdNsQFo?zUJMV5=+T(KyO$|!{t8z%DlOUakk(q7lq4et(!fS6f zmGo|PIv#>EuE8f=jM>M2y45@feHk7dkI~ypy7zkmBOeqlz$4V(MH1Mb@^J$$kS}lv z;lgLe-Il`*>SP0fLT!G=tx`<`=xY#>PgeD<|CLH>a4b=hma=@c+&qzs!KHeUQFyWAajZvtu>8^=*ll5Y7^8Hv841? zB7_lhe5i*?#A%GUJF?``l_1R7?{`}f&EX4Ag+5$&Ll|AqVk}UwuIEGaKM@@9x-ngB zKhs1@yC!SG1s)MKuJDBlX)#~Wlvsumiv*e6j#`rCj$1Q^EcxKsRj-g_=d|;3OqoA2 z2z@$^t3IPd+zkxltBRsbX0*i8s5c+PTuLe~vFgVxM_FNdMYCu5Xe}=gef1_6q=XKc zDk4J3J(0eysG9c}WD_SaPdCDv8jup#+DU3}0mROUn`U{6A zrxi4SNKttW&y_zD)vbvewcycDY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