From e7e7bdc0ac21d61ac505c7bcca6c5dbc7c691bbf Mon Sep 17 00:00:00 2001 From: zmuhls Date: Mon, 23 Sep 2024 20:01:53 -0400 Subject: [PATCH] Arrange files and scrub scripts folder --- .../{notebooks => datasets/txt}/tos_nest.txt | 0 .../notebooks/stringMethods.ipynb | 0 assets/scripts/redditPlot.py | 23 ------------------- 3 files changed, 23 deletions(-) rename assets/{notebooks => datasets/txt}/tos_nest.txt (100%) rename stringMethods.ipynb => assets/notebooks/stringMethods.ipynb (100%) delete mode 100644 assets/scripts/redditPlot.py diff --git a/assets/notebooks/tos_nest.txt b/assets/datasets/txt/tos_nest.txt similarity index 100% rename from assets/notebooks/tos_nest.txt rename to assets/datasets/txt/tos_nest.txt diff --git a/stringMethods.ipynb b/assets/notebooks/stringMethods.ipynb similarity index 100% rename from stringMethods.ipynb rename to assets/notebooks/stringMethods.ipynb diff --git a/assets/scripts/redditPlot.py b/assets/scripts/redditPlot.py deleted file mode 100644 index 58ea1a9..0000000 --- a/assets/scripts/redditPlot.py +++ /dev/null @@ -1,23 +0,0 @@ -import matplotlib.pyplot as plt -import pandas as pd - -# Data -data = { - 'Date': ['2011-12-04', '2013-07-23', '2015-06-30', '2018-08-28', '2021-09-07', '2021-04-24', '2022-10-01', '2023-06-26', '2024-03-17'], - 'Subscribers': [46, 132, 225, 833, 5800, 5100, 7500, 8600, 10000] -} - -# Convert to DataFrame -df = pd.DataFrame(data) -df['Date'] = pd.to_datetime(df['Date']) - -# Plot -plt.figure(figsize=(10, 6)) -plt.plot(df['Date'], df['Subscribers'], marker='o', linestyle='-', color='b') -plt.title('Subscribers Growth for r/Baruch') -plt.xlabel('Date') -plt.ylabel('Subscribers') -plt.grid(True) -plt.xticks(rotation=45) -plt.tight_layout() -plt.show()