]> us-delaporte.pagekite.me Git - dotfiles.git/blob - data/issues.ipynb
3ffa40cc4173e730ff39f7e396c276988f8d78ae
[dotfiles.git] / data / issues.ipynb
1 {
2 "cells": [
3 {
4 "cell_type": "code",
5 "execution_count": 2,
6 "metadata": {},
7 "outputs": [],
8 "source": [
9 "# Get ye data\n",
10 "import glob\n",
11 "import os\n",
12 "\n",
13 "data_files = glob.glob(os.path.expanduser('~\\\\Data\\\\*.json'))\n"
14 ]
15 },
16 {
17 "cell_type": "code",
18 "execution_count": 5,
19 "metadata": {},
20 "outputs": [
21 {
22 "name": "stdout",
23 "output_type": "stream",
24 "text": [
25 "3.12.2\n"
26 ]
27 }
28 ],
29 "source": [
30 "import platform\n",
31 "print(platform.python_version())"
32 ]
33 },
34 {
35 "cell_type": "code",
36 "execution_count": null,
37 "metadata": {},
38 "outputs": [],
39 "source": [
40 "import pandas as pd\n",
41 "\n",
42 "data_sets = []\n",
43 "\n",
44 "file = data_files[0]\n",
45 "print(file)\n",
46 "\n",
47 "f = open(file, encoding='utf-16')\n",
48 "data = pd.read_json(f)\n",
49 "\n",
50 "print(data)\n"
51 ]
52 },
53 {
54 "cell_type": "code",
55 "execution_count": null,
56 "metadata": {},
57 "outputs": [],
58 "source": [
59 "import maptploglib.pyplot as platform\n",
60 "# TODO: Get ye data into scatter plot\n",
61 "plt.scatter(x, y)\n",
62 "plt.show()"
63 ]
64 }
65 ],
66 "metadata": {
67 "kernelspec": {
68 "display_name": "Python 3",
69 "language": "python",
70 "name": "python3"
71 },
72 "language_info": {
73 "codemirror_mode": {
74 "name": "ipython",
75 "version": 3
76 },
77 "file_extension": ".py",
78 "mimetype": "text/x-python",
79 "name": "python",
80 "nbconvert_exporter": "python",
81 "pygments_lexer": "ipython3",
82 "version": "3.12.2"
83 }
84 },
85 "nbformat": 4,
86 "nbformat_minor": 2
87 }