0% found this document useful (0 votes)
2 views

code_snippet

The document outlines a study schedule divided into three weeks, detailing daily activities for morning, afternoon, and evening sessions focused on various mathematical topics. It includes specific subjects such as Measure Theory, Differential Calculus, and Metric Topology, with a progression from foundational concepts to in-depth study and exam preparation. The schedule is formatted into tables and is intended to be saved as a PDF file.

Uploaded by

Houssien Alarab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

code_snippet

The document outlines a study schedule divided into three weeks, detailing daily activities for morning, afternoon, and evening sessions focused on various mathematical topics. It includes specific subjects such as Measure Theory, Differential Calculus, and Metric Topology, with a progression from foundational concepts to in-depth study and exam preparation. The schedule is formatted into tables and is intended to be saved as a PDF file.

Uploaded by

Houssien Alarab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

import pandas as pd

from fpdf import FPDF

# Data for the tables (replace with your actual data)


week1_data = {
'Day': [1, 2, 3, 4, 5, 6, 7],
'Morning (2 hours)': ['Review Linear Algebra', 'Metric Topology: Metric spaces, open and closed sets',
'Measure Theory: Measurable functions', 'Metric Topology: Continuity in metric spaces', 'Measure Theory:
Lebesgue integral', 'Metric Topology: Compactness', 'Review of all afternoon sessions from the week'],
'Afternoon (1 hour)': ['Measure Theory: σ-algebras, basic set operations', 'Geometry of Curves and
Surfaces: Parametrization of curves, tangent vectors', 'Differential Calculus: Partial derivatives, chain
rule', 'Geometry of Curves and Surfaces: Arc length, curvature', 'Differential Calculus: Directional
derivatives, gradient', 'Geometry of Curves and Surfaces: Surfaces in R^3, tangent planes', 'Review of all
evening sessions from the week'],
'Evening (1 hour)': ['Differential Calculus: Review of single-variable differentiation, introduction to
multivariable differentiation', 'Bilinear Algebra: Definition of bilinear forms, basic examples', 'Theory of
Bounded Operators: Definition of bounded linear operators, examples', 'Bilinear Algebra: Quadratic
forms', 'Theory of Bounded Operators: Operator norm', 'Review of all morning sessions from the week',
'Relax and recharge!']
}

week3_data = {
'Day': [1, 2, 3, 4, 5, 6, 7],
'Morning (2 hours)': ['Measure Theory: L^p spaces, convergence theorems', 'Metric Topology:
Connectedness', 'Theory of Bounded Operators: Spectrum of an operator', 'Review Measure Theory &
Differential Calculus', 'Review Theory of Bounded Operators & Bilinear Algebra', 'Measure Theory &
Differential Calculus practice problems', 'Theory of Bounded Operators & Bilinear Algebra practice
problems'],
'Afternoon (2 hours)': ['Differential Calculus: Implicit function theorem, inverse function theorem',
'Geometry of Curves and Surfaces: First and second fundamental forms, Gaussian curvature', 'Bilinear
Algebra: Inner product spaces', 'Metric Topology & Geometry of Curves and Surfaces problems', 'Theory
of Bounded Operators & Bilinear Algebra problems', 'Metric Topology & Geometry of Curves and Surfaces
practice problems', 'Review all core concepts and formulas']
}

week5_data = {
'Day': [1, 2, 3, 4, 5, '6-7'],
'Focus': ['Measure Theory', 'Differential Calculus', 'Metric Topology', 'Geometry of Curves and Surfaces',
'Theory of Bounded Operators', 'General review of all courses']
}

# Create DataFrames
df_week1 = pd.DataFrame(week1_data)
df_week3 = pd.DataFrame(week3_data)
df_week5 = pd.DataFrame(week5_data)

# Create PDF
pdf = FPDF()
pdf.add_page()
pdf.set_font("Arial", size=12)

# Function to add table to PDF


def add_table_to_pdf(df, title):
pdf.cell(200, 10, txt=title, ln=1, align="C")
# Add headers
for col in df.columns:
pdf.cell(40, 10, txt=col, border=1, align="C")
pdf.ln()
# Add rows
for _, row in df.iterrows():
for col in df.columns:
pdf.cell(40, 10, txt=str(row[col]), border=1, align="C")
pdf.ln()
pdf.ln()

# Add tables to PDF


add_table_to_pdf(df_week1, "Week 1-2: Foundation Building & Core Concepts")
add_table_to_pdf(df_week3, "Week 3-4: In-Depth Study & Problem Solving")
add_table_to_pdf(df_week5, "Week 5: Exam Preparation")

# Output path
output_path = "study_schedule.pdf"
pdf.output(output_path)

# Display output path


print(f"PDF saved to: {output_path}")

You might also like