|
10 | 10 | },
|
11 | 11 | {
|
12 | 12 | "cell_type": "code",
|
13 |
| - "execution_count": 14, |
| 13 | + "execution_count": 1, |
14 | 14 | "id": "d3aa7606-0f50-4f05-b104-ad4521c80406",
|
15 | 15 | "metadata": {
|
16 | 16 | "editable": true,
|
|
26 | 26 | "data": {
|
27 | 27 | "text/markdown": [
|
28 | 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)" |
| 29 | + "- Python for Data Analysis: 6th/13th February 2025 1-4pm (Online only) - [MS Form Signup](https://forms.office.com/e/rJRBxYnxKA)\n", |
| 30 | + "- Introduction to R: 25th February/4th March/11th March 2025 10am-1pm (In-person only) - [MS Form Signup](https://forms.office.com/e/3BUKkXNELt)\n", |
| 31 | + "- Introduction to Regression with R: 28th March 2025 10am-1pm (In-person only) - Sign Up Will Be Available Soon\n", |
| 32 | + "- Regression Analysis in R: Adapting to Varied Data Types: 13th January 2025 1-4pm (Online only) - [MS Form Signup](https://forms.office.com/e/QK4qbskQKe)\n", |
| 33 | + "- Introduction to HPC: 21st/28th March 2025 1.15-4.15pm (In-person only) - Sign Up Will Be Available Soon\n", |
| 34 | + "- Introduction to Version Control: 28th February/7th March 2025 10am-1pm (Online only) - [MS Form Signup](https://forms.office.com/e/YCB5kkGrws)\n", |
| 35 | + "- Intermediate Version Control: 17th/24th March 2025 1-4pm (Online only) - Sign Up Will Be Available Soon\n", |
| 36 | + "- Introduction to Unix: 5th/12th February 2025 1-4pm (Penryn Campus only) - [MS Form Signup](https://forms.office.com/e/6nrfXabJSH)\n", |
| 37 | + "- Computational Thinking: 28th January/4th February 2025 10am-1pm (In-person only) - [MS Form Signup](https://forms.office.com/e/HBxtMLxRZr)\n", |
| 38 | + "- Introduction to Machine Learning: 14th/21st March 2025 10am-1pm (In-person only) - Sign Up Will Be Available Soon" |
30 | 39 | ],
|
31 | 40 | "text/plain": [
|
32 | 41 | "<IPython.core.display.Markdown object>"
|
|
63 | 72 | "\n",
|
64 | 73 | "# Function to generate markdown text based on course details\n",
|
65 | 74 | "def generate_markdown(row):\n",
|
66 |
| - " return f\"- {row['Course Name']}: {row['Course Date']} - [MS Form Signup]({row['MS Form Signup']})\"\n", |
| 75 | + " if pd.isna(row['MS Form Signup']) or not row['MS Form Signup'].strip():\n", |
| 76 | + " return f\"- {row['Course Name']}: {row['Course Date']} - Sign Up Will Be Available Soon\"\n", |
| 77 | + " else:\n", |
| 78 | + " return f\"- {row['Course Name']}: {row['Course Date']} - [MS Form Signup]({row['MS Form Signup']})\"\n", |
| 79 | + "\n", |
67 | 80 | "\n",
|
68 | 81 | "# Apply the function and create the markdown output\n",
|
69 | 82 | "markdown_output = filtered_courses_df.apply(generate_markdown, axis=1).tolist()\n",
|
|
0 commit comments