|
10 | 10 | },
|
11 | 11 | {
|
12 | 12 | "cell_type": "code",
|
13 |
| - "execution_count": 1, |
| 13 | + "execution_count": 13, |
14 | 14 | "id": "d3aa7606-0f50-4f05-b104-ad4521c80406",
|
15 | 15 | "metadata": {
|
16 | 16 | "editable": true,
|
|
25 | 25 | {
|
26 | 26 | "data": {
|
27 | 27 | "text/markdown": [
|
28 |
| - "- Python for Data Analysis: 29th November/6th December 10am-1pm (In-person only) - [MS Form Signup](https://forms.office.com/e/ChUMbgntbr)\n", |
29 |
| - "- Regression Analysis with R: 25th October 10am-1pm (online only) - [MS Form Signup](https://forms.office.com/Pages/ResponsePage.aspx?id=d10qkZj77k6vMhM02PBKU-3R4SvRoClNrKjEX5qG1X1UMU1KRUpEOFRJQjFEOVVUVzFDMTRQMFZLRi4u)\n", |
30 |
| - "- Working with Data in R: 18th/25th November 1-4pm (online only) - [MS Form Signup](https://forms.office.com/e/zi5g1uP5sB)" |
| 28 | + "- Introduction to Python: 17th/24th January 2025 10am-1pm (In-person only) - [MS Form Signup](https://forms.office.com/e/YAxvuE5dG5)\n", |
| 29 | + "- Python for Data Analysis: 6th/13th February 2025 1-4pm (Online only) - [MS Form Signup](https://forms.office.com/e/rJRBxYnxKA)" |
31 | 30 | ],
|
32 | 31 | "text/plain": [
|
33 | 32 | "<IPython.core.display.Markdown object>"
|
|
51 | 50 | "\n",
|
52 | 51 | "# Convert the 'End Date' column to datetime (assuming the date format is day-first)\n",
|
53 | 52 | "courses_df['End Date'] = pd.to_datetime(courses_df['End Date'], dayfirst=True, errors='coerce')\n",
|
| 53 | + "courses_df['Start Date'] = pd.to_datetime(courses_df['Start Date'], dayfirst=True, errors='coerce')\n", |
54 | 54 | "\n",
|
55 | 55 | "# Get today's date\n",
|
56 | 56 | "today = datetime.now()\n",
|
57 | 57 | "\n",
|
58 | 58 | "# Filter for rows that contain valid MS Form Signup links, Course Date information, and check if the 'End Date' is still valid\n",
|
59 | 59 | "filtered_courses_df = courses_df.dropna(subset=['Course Date', 'MS Form Signup'])\n",
|
60 | 60 | "filtered_courses_df = filtered_courses_df[filtered_courses_df['End Date'] > today]\n",
|
| 61 | + "filtered_courses_df = filtered_courses_df[filtered_courses_df['Start Date'] <= today]\n", |
| 62 | + "\n", |
61 | 63 | "\n",
|
62 | 64 | "# Function to generate markdown text based on course details\n",
|
63 | 65 | "def generate_markdown(row):\n",
|
|
0 commit comments