"cells": [
{
"cell_type": "code",
- "execution_count": 21,
+ "execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import glob\n",
"import os\n",
"\n",
- "data_files = glob.glob(os.path.expanduser('~\\\\Data\\\\*.json'))"
+ "data_files = glob.glob(os.path.expanduser('~\\\\Data\\\\*.json'))\n"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "3.12.2\n"
+ ]
+ }
+ ],
+ "source": [
+ "import platform\n",
+ "print(platform.python_version())"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import pandas as pd\n",
+ "\n",
+ "data_sets = []\n",
+ "\n",
+ "file = data_files[0]\n",
+ "print(file)\n",
+ "\n",
+ "f = open(file, encoding='utf-16')\n",
+ "data = pd.read_json(f)\n",
+ "\n",
+ "print(data)\n"
]
}
],
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.12.1"
+ "version": "3.12.2"
}
},
"nbformat": 4,