From: Edward Delaporte Date: Fri, 16 Feb 2024 22:26:47 +0000 (-0600) Subject: Add pie chart for combination of all data files X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/5aa81a0ebcb6ea28bd78d22a23e6522c2dbc5713?hp=72a71a545ddfbb9250308146efdda18f8ebcdfc1 Add pie chart for combination of all data files --- diff --git a/data/issues.ipynb b/data/issues.ipynb index 6c081fe..b65e1d7 100644 --- a/data/issues.ipynb +++ b/data/issues.ipynb @@ -43,14 +43,14 @@ "source": [ "import pandas as pd\n", "\n", - "data_sets = []\n", + "data_frames = []\n", + "for file in data_files:\n", "\n", - "# file = data_files[6] # CLI Tools\n", - "file = data_files[2] # Job Aids\n", - "print(file)\n", + "\tf = open(file, encoding='utf-8')\n", + "\tdf_temp = pd.read_json(f)\n", + "\tdata_frames.append(df_temp)\n", "\n", - "f = open(file, encoding='utf-8')\n", - "df = pd.read_json(f)" + "df = pd.concat(data_frames, ignore_index=True)" ] }, {