From 6fdbe7247f12fe27f7746ae63f08b7d2413fbeec Mon Sep 17 00:00:00 2001 From: Tomek Date: Fri, 14 Jun 2024 15:32:38 -0400 Subject: [PATCH] picklist experiments --- google_books/picklist-draft.ipynb | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 google_books/picklist-draft.ipynb diff --git a/google_books/picklist-draft.ipynb b/google_books/picklist-draft.ipynb new file mode 100644 index 0000000..321394c --- /dev/null +++ b/google_books/picklist-draft.ipynb @@ -0,0 +1,71 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "\n", + "fh = \"../files/picklist/google-candidates-clean.txt\"" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "2.2.1\n" + ] + } + ], + "source": [ + "print(pd.__version__)" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [], + "source": [ + "df = pd.read_csv(\n", + " fh,\n", + " delimiter=\"/t\",\n", + " encoding=\"utf-8\",\n", + " encoding_errors=\"replace\",\n", + " engine=\"python\",\n", + " names=[\n", + " \"iNumber\", \"iCode2\", \"iType\", \"iLocation\", \"iStatus\", \"iMessage\", \"iOpacMessage\",\n", + " \"iAgency\", \"iBarcode\", \"iUnit\", \"iCallNum\", \"iVolume\", \"iIntNote\", \"Message\",\n", + " \"DateType\", \"Date1\", \"Date2\", \"title\", \"pubInfo\", \"bCallNum\", \"bStaffCallNum\"])" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "google-books-WBHIl_Ro-py3.12", + "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.1" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +}