<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abdul Hanan Nawaz on Medium]]></title>
        <description><![CDATA[Stories by Abdul Hanan Nawaz on Medium]]></description>
        <link>https://medium.com/@hanannawazdev?source=rss-576501ca6626------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-4PVRRh9WrjW89-dBikm1A.jpeg</url>
            <title>Stories by Abdul Hanan Nawaz on Medium</title>
            <link>https://medium.com/@hanannawazdev?source=rss-576501ca6626------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:03:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hanannawazdev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Data to Deployment: A Complete Diabetes Risk ML System]]></title>
            <link>https://towardsdev.com/from-data-to-deployment-a-complete-diabetes-risk-ml-system-0f8e71882060?source=rss-576501ca6626------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f8e71882060</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[streamlit]]></category>
            <dc:creator><![CDATA[Abdul Hanan Nawaz]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 11:22:19 GMT</pubDate>
            <atom:updated>2026-07-06T11:08:30.688Z</atom:updated>
            <content:encoded><![CDATA[<p>This project is for <strong>educational and research purposes only</strong>. It does not provide medical advice, diagnosis, or treatment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*hE_s5ge5KTJK6xVMhZBWmA.png" /></figure><h4><strong>Introduction</strong></h4><p>Machine learning is often presented through notebooks and experiments. However, real-world systems require <strong>structure, modular design, and deployment readiness</strong>.</p><p>In this project, I built an <strong>end-to-end machine learning system</strong> that predicts diabetes risk using clinical parameters. The system combines:</p><ul><li>A modular ML pipeline</li><li>A FastAPI backend deployed on Hugging Face Spaces</li><li>A Streamlit frontend for interaction</li><li>Full evaluation and result tracking</li></ul><p>The goal was not just model training, but building a <strong>complete deployable ML system</strong>.</p><h4>Problem Statement</h4><p>The objective is to predict whether a person is at risk of diabetes based on medical features:</p><ul><li>Glucose</li><li>Blood Pressure</li><li>BMI</li><li>Age</li><li>Insulin</li><li>Pregnancy history</li></ul><p>This is a <strong>binary classification problem</strong>:</p><ul><li>0 → No Diabetes</li><li>1 → Diabetes</li></ul><h4>Dataset Overview</h4><p>The dataset used is the <strong>Pima Indians Diabetes Dataset</strong>, a standard benchmark dataset in healthcare machine learning.</p><h3>Features:</h3><ul><li>Pregnancies</li><li>Glucose</li><li>Blood Pressure</li><li>Skin Thickness</li><li>Insulin</li><li>BMI</li><li>Diabetes Pedigree Function</li><li>Age</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*kjzGWqj1xB2S2q1wq4oi8A.png" /><figcaption>Figure 1: Distribution of the target variable showing class imbalance in the dataset.</figcaption></figure><p>The dataset shows a <strong>moderate class imbalance</strong>, with more non-diabetic cases than diabetic cases.</p><p>This imbalance is important because it can bias models toward the majority class if not handled properly.</p><h4>Exploratory Data Analysis (EDA)</h4><p>During EDA, several important patterns were identified:</p><ul><li>Some features contain invalid zero values (e.g., BMI, Glucose)</li><li>Glucose has strong correlation with diabetes outcome</li><li>Age increases diabetes risk probability</li><li>Dataset is moderately imbalanced</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*yrdmSnTleMj1JHmCloWV-g.png" /><figcaption>Figure 2: Correlation heatmap of numerical features highlighting relationships between variables and potential multicollinearity.</figcaption></figure><p>The heatmap highlights relationships between features and the target variable, showing that glucose and BMI are among the most influential predictors.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FQbtFB%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FQbtFB%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FQbtFB%2Fplain-s.png%3Fv%3D1&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="423" frameborder="0" scrolling="no"><a href="https://medium.com/media/d19ced70158f56c17bcd99cbfea52ac3/href">https://medium.com/media/d19ced70158f56c17bcd99cbfea52ac3/href</a></iframe><p>The dataset shows variability across features, especially in Glucose, BMI, and Insulin. Several zero values likely represent missing data rather than real measurements, requiring careful preprocessing.</p><h4>Data Preprocessing</h4><p>The preprocessing pipeline included:</p><ul><li>Handling invalid zero values</li><li>Feature scaling</li><li>Train-test split</li><li>Data validation checks</li></ul><p>A key observation was that <strong>zero values in medical features often indicate missing data rather than true measurements</strong>.</p><h4>Model Training &amp; Evaluation</h4><p>A <strong>Random Forest classifier</strong> was used as the final model. The focus was on building a stable and deployable system rather than experimenting with multiple algorithms.</p><pre>model = RandomForestClassifier(<br>    n_estimators=500,<br>    max_depth=10,<br>    class_weight=&quot;balanced&quot;,<br>    random_state=42<br>)<br><br>model.fit(X_train, y_train)</pre><h4>Model Performance</h4><p>The trained model achieved the following overall performance:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fva5Qd%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fva5Qd%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2Fva5Qd%2Fplain-s.png%3Fv%3D1&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="157" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1bb1e50889f7886006d0013fcfa7e83/href">https://medium.com/media/b1bb1e50889f7886006d0013fcfa7e83/href</a></iframe><p>These results indicate a balanced performance in distinguishing between diabetic and non-diabetic cases.</p><h4>Confusion Matrix Analysis</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FfgoZu%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FfgoZu%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FfgoZu%2Fplain-s.png%3Fv%3D1&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="157" frameborder="0" scrolling="no"><a href="https://medium.com/media/fcfb9b06bf02b83384d4f9c73b007dd3/href">https://medium.com/media/fcfb9b06bf02b83384d4f9c73b007dd3/href</a></iframe><p><strong>Interpretation</strong>:</p><ul><li>75 correct non-diabetic predictions</li><li>41 correct diabetic predictions</li><li>13 missed diabetic cases (false negatives)</li><li>25 false alarms (false positives)</li></ul><p>In healthcare applications, <strong>false negatives are more critical</strong>, as they represent missed diagnoses.</p><h4>Classification Report</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FOYHW8%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FOYHW8%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FOYHW8%2Fplain-s.png%3Fv%3D1&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="157" frameborder="0" scrolling="no"><a href="https://medium.com/media/8394deaed2c4ca0fb9d8163bd211283f/href">https://medium.com/media/8394deaed2c4ca0fb9d8163bd211283f/href</a></iframe><p>This indicates the model is better at capturing actual diabetic cases than avoiding false alarms, which is often preferred in medical scenarios.</p><h4>Feature Importance</h4><p>Understanding which features influence predictions is critical for interpretability.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FXRzze%2F1%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FXRzze%2F1%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FXRzze%2Fplain-s.png%3Fv%3D1&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="385" frameborder="0" scrolling="no"><a href="https://medium.com/media/13efe65fbbcecab576ba64b4b2010862/href">https://medium.com/media/13efe65fbbcecab576ba64b4b2010862/href</a></iframe><p>The most important features were:</p><ol><li>Glucose (most influential)</li><li>BMI</li><li>Age</li><li>Diabetes Pedigree Function</li></ol><p>This aligns well with medical understanding, confirming that the model is learning meaningful patterns.</p><h4>System Architecture</h4><p>The system was designed in modular layers:</p><h4>1. ML Pipeline</h4><ul><li>Data loading</li><li>Cleaning</li><li>Training</li><li>Evaluation</li><li>Model saving</li></ul><h4>2. Backend (FastAPI)</h4><p>The prediction endpoint:</p><pre>@app.post(&quot;/predict&quot;)<br>def predict_diabetes(data: DiabetesModel):</pre><p>Feature preparation:</p><pre>features = pd.DataFrame([{<br>    &quot;Pregnancies&quot;: data.Pregnancies,<br>    &quot;Glucose&quot;: data.Glucose,<br>    &quot;BloodPressure&quot;: data.BloodPressure,<br>    &quot;SkinThickness&quot;: data.SkinThickness,<br>    &quot;Insulin&quot;: data.Insulin,<br>    &quot;BMI&quot;: data.BMI,<br>    &quot;DiabetesPedigreeFunction&quot;: data.DiabetesPedigreeFunction,<br>    &quot;Age&quot;: data.Age<br>}])</pre><p>Model inference:</p><pre>prediction = model.predict(features)[0]<br>probability = model.predict_proba(features)[0][1]</pre><p>Risk classification:</p><pre>if probability &lt; 0.3:<br>    risk = &quot;Low&quot;<br>elif probability &lt; 0.7:<br>    risk = &quot;Medium&quot;<br>else:<br>    risk = &quot;High&quot;</pre><ul><li>Accepts JSON input</li><li>Returns prediction + probability + risk level</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hLkNpUUZKA36yM_GfZhZmg.png" /><figcaption>Figure 5: API Flow Diagram</figcaption></figure><h4>Frontend (Streamlit)</h4><p>The UI interacts with the API using:</p><pre>url = st.secrets[&quot;API_URL&quot;]</pre><p>Link: <a href="https://diabetes-risk-prediction-tool.streamlit.app/">https://diabetes-risk-prediction-tool.streamlit.app/</a></p><p>API request:</p><pre>response = req.post(url, json={<br>    &quot;Pregnancies&quot;: preg,<br>    &quot;Glucose&quot;: glu,<br>    &quot;BloodPressure&quot;: bp,<br>    &quot;SkinThickness&quot;: skin_thick,<br>    &quot;Insulin&quot;: insul,<br>    &quot;BMI&quot;: bmi,<br>    &quot;DiabetesPedigreeFunction&quot;: dia_ped_func,<br>    &quot;Age&quot;: age<br>})</pre><ul><li>Input validation ensures realistic medical values before prediction.</li></ul><h4>Deployment</h4><p>The system was deployed using:</p><ul><li><strong>Backend:</strong> Hugging Face Spaces (FastAPI + Docker)</li><li><strong>Frontend:</strong> Streamlit application</li></ul><p>This allows real-time inference through a web interface.</p><h4>File Structure</h4><p>diabetes-risk-prediction/<br>│<br>├── data/<br>├── ai_model/<br>├── notebooks/<br>├── scripts/<br>├── api/<br>├── frontend/<br>├── results/<br>├── Dockerfile<br>├── main.py<br>├── pyproject.toml<br>├── uv.lock<br>└── README.md</p><p>This separation improves:</p><ul><li>scalability</li><li>maintainability</li><li>reproducibility</li></ul><h4>GDPR &amp; Data Privacy Considerations</h4><p>Even though this is an educational project, GDPR-aligned principles were followed:</p><ul><li>No data storage</li><li>No user tracking</li><li>No personal identification</li><li>Real-time inference only</li><li>Strictly educational usage</li></ul><h4>Key Learnings</h4><p>This project helped me understand:</p><ul><li>End-to-end ML system design</li><li>Model deployment with FastAPI</li><li>Frontend integration using Streamlit</li><li>Modular ML architecture</li><li>Real-world ML workflow structuring</li></ul><h4>Limitations</h4><ul><li>Dataset is small and imbalanced</li><li>No clinical validation</li><li>Not suitable for real medical use</li><li>No external dataset testing</li></ul><h4>Future Improvements</h4><ul><li>SHAP explainability</li><li>Hyperparameter tuning</li><li>Model comparison dashboard</li><li>CI/CD pipeline</li><li>Logging &amp; monitoring system</li></ul><h4>Final Note</h4><p>This project demonstrates how a simple dataset can evolve into a <strong>complete machine learning system with deployment, API, and UI integration</strong>, focusing on engineering practices rather than just model accuracy.</p><h4>Source Code</h4><p>You can explore the full implementation here:</p><p>Link: <a href="https://github.com/Hanan-Nawaz/diabetes-risk-prediction-ai">https://github.com/Hanan-Nawaz/diabetes-risk-prediction-ai</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f8e71882060" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/from-data-to-deployment-a-complete-diabetes-risk-ml-system-0f8e71882060">From Data to Deployment: A Complete Diabetes Risk ML System</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extract, Transform and Load (ETL) with Python]]></title>
            <link>https://towardsdev.com/extract-transform-and-load-etl-with-python-121f07dfe0f5?source=rss-576501ca6626------2</link>
            <guid isPermaLink="false">https://medium.com/p/121f07dfe0f5</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[extract-transform-load]]></category>
            <dc:creator><![CDATA[Abdul Hanan Nawaz]]></dc:creator>
            <pubDate>Tue, 03 Dec 2024 10:04:02 GMT</pubDate>
            <atom:updated>2024-12-05T19:17:59.656Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn to develop ETL pipeline</h4><p>This is a tutorial for beginners to learn how to develop a basic ETL pipeline. ETL is a type of pipeline (others are ELT and data pipelines etc) that contains three major steps.</p><ol><li>Extract (E)</li><li>Transform (T)</li><li>Load (L)</li></ol><h4>Extract</h4><p>In the extract phase, we extract data from one or more sources. Let’s take the example of a firm that wants to analyse sentiments of people about their new product. They create an ETL pipeline where they extract data from social media apps. For the current scenario, let’s say they extract from <strong>Twitter, Instagram,</strong> and <strong>Facebook. </strong>In this example, we are extracting data from multiple sources.</p><h4><strong>Transform</strong></h4><p>In the transform phase, we transform the data extracted in the extraction phase. In general, we remove <strong>null</strong> values (or sometimes fill the null values; it depends on requirements), remove redundant values, and correct date format. We generally use <strong>Pandas </strong>for this phase.</p><h4>Load</h4><p>In this phase of ETL, we load the transformed data in a Data Warehouse, Data Lake, or Data Mart, depends upon data and requirements.</p><p>Today, in our project, we are extracting data from <a href="https://www.numl.edu.pk/">NUML</a> (National University of Modern Languages) webpage. We are extracting data from faculty pages of the Department of Software Engineering and the Department of Computer Science. Then, transforming the data and loading it into a CSV file. (You can store it in a data warehouse, but in my case, I have the free version of Tableau. Free Version doesn’t support data warehouse/base).</p><h4><strong>Requirements</strong></h4><ul><li>Python3</li><li>Requests Module</li><li>Pandas Module</li><li>Beautiful Soup (Bs4) Module</li><li>Tableau (for Dashboarding)</li></ul><h4><strong>Architecture</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VV9fQ6eNwZKud6KSnDvwqw.png" /><figcaption>ETL Architecture</figcaption></figure><h4><strong>Step-By-Step Approach</strong></h4><ol><li>Setup Virtual Environment</li><li>Install Required Modules</li><li>Extract, Transform and Load</li><li>Dashboard in Tableau</li></ol><h4>Step 1: Setup Virtual Environment</h4><p>Python3.3 and later include <strong><em>venv</em> as </strong>built-in module. For older version, Please install using <strong><em>pip</em></strong>.</p><pre>pip3 install virtualenv</pre><p>Create a Virtual Environment.</p><pre>python3 -m venv myenv</pre><p>Activate the Virtual Environment (<em>myenv</em>).</p><pre>source myenv/bin/activate</pre><h4>Step 2: Install Required Modules</h4><p>Install Requets.</p><pre>pip3 install requests</pre><p>Install Pandas.</p><pre>pip3 install pandas</pre><p>Install Bs4.</p><pre>pip3 install beautifulsoup4</pre><h4>Step 3: Extract, Transform and Load (ETL)</h4><p>In the ETL code, we extract (<em>scrape</em>) data from the NUML’s web page and return (raw or uncleaned) data. Then, we create a data frame using <em>pandas</em> and clean the data (mainly email and designation). Then, we load the data into the CSV file for further use in <em>Tableau</em>.</p><pre>import requests<br>from bs4 import BeautifulSoup<br>import pandas as pd<br><br>def extract():<br>    try:<br>        #URL of Webpages from NUML Offical Website<br>        numl_se_url = &quot;https://www.numl.edu.pk/department/273/faculty&quot;<br>        numl_cs_url = &quot;https://www.numl.edu.pk/department/178/faculty&quot;<br><br>        #getting content from URLS<br>        numl_se_req = requests.get(numl_se_url)<br>        numl_cs_req = requests.get(numl_cs_url)<br><br>        #combing both contents<br>        combined_faculty = numl_cs_req.content + numl_se_req.content<br><br>        # parsing content with BS4<br>        bsoup = BeautifulSoup(combined_faculty, &#39;html.parser&#39;)<br><br>        #finding cards with details<br>        div_cards = bsoup.find_all(&#39;div&#39;, {&#39;class&#39;: &#39;courses-wrap&#39;})<br><br>        #list to store data<br>        faculty_data = []<br><br>        #getting needed data from html<br>        for data in div_cards:<br>            main_div = data.find(&#39;div&#39;, {&#39;class&#39;: &#39;course-content&#39;})<br>            f_name = main_div.find(&#39;h3&#39;).find(&#39;a&#39;).get_text(strip=True)<br>            f_details = main_div.find(&#39;p&#39;).get_text(strip=True)<br>            f_dept = data.find(&#39;span&#39;, {&#39;class&#39;: &#39;course-instructor&#39;}).get_text(strip=True)<br>            f_designation = data.find(&#39;p&#39;, {&#39;class&#39;: &#39;years&#39;}).get_text(strip=True)<br>            f_link = main_div.find(&#39;h3&#39;).find(&#39;a&#39;)[&#39;href&#39;]<br>            faculty_data.append({&quot;Name&quot;: f_name, &quot;Details&quot;: f_details, &quot;Dept&quot;: f_dept, &quot;Designation&quot;: f_designation, &quot;Link&quot;: f_link})<br><br>        print(&quot;Extraction Completed Successfully!&quot;)<br><br>        return faculty_data<br>    <br>    except requests.exceptions.ConnectionError:<br>        print(&quot;Error! Extraction Failed&quot;)<br><br>def transform(faculty_data):<br><br>    #dataframe to store data<br>    df_faculty = pd.DataFrame(columns=[&quot;Name&quot;, &quot;Details&quot;, &quot;Dept&quot;, &quot;Designation&quot;, &quot;Link&quot;])<br><br>    #adding data to data frame<br>    for data in faculty_data:<br>            df_faculty = df_faculty._append(data, ignore_index=True)<br>    <br>    #start index from 0<br>    df_faculty.index = range(1, len(df_faculty) + 1) <br><br>    #extracting email from details, Phone number of all are same with almost 6 different Extensions for All Teachers<br>    df_faculty.insert(2, &quot;Email&quot;, df_faculty[&quot;Details&quot;].str.extract(r&quot;([a-zA-Z_.+]+@[a-zA-Z-]+\.[a-zA-Z-.]+)&quot;))<br>    <br>    #removing extra details from name<br>    df_faculty[&quot;Name&quot;] = df_faculty[&quot;Name&quot;].str.split(&#39;(&#39;).str[0]<br><br>    #adding column for Phd on the base of Dr. in name<br>    df_faculty.insert(6, &quot;Phd&quot;, df_faculty[&quot;Name&quot;].str.contains(&quot;Dr.&quot;))<br><br>    #removing different designations<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].str.split(&#39;(&#39;).str[0].str.split(&#39;/&#39;).str[0].str.split(&#39;&amp;&#39;).str[0]<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].replace(&quot;Acting Director IT, &quot;, &quot;Assistant Professor&quot;)<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].replace(&quot;Coordinator &quot;, &quot;Lecturer&quot;)<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].replace(&quot;Head of Department&quot;, &quot;Associate Professor&quot;)<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].replace(&quot;Associate Lecturer&quot;, &quot;Lecturer&quot;)<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].str.strip()<br>    df_faculty[&quot;Designation&quot;] = df_faculty[&quot;Designation&quot;].replace(&quot;Associate  Professor&quot;, &quot;Associate Professor&quot;)<br>    <br>    #deleting details column <br>    df_faculty = df_faculty.drop(columns=[&quot;Details&quot;])<br><br>    # print(df_faculty[&quot;Designation&quot;].unique()) checking unique designations (TESTING ONLY)<br>    print(&quot;Transformation Completed Successfully!&quot;)<br><br>    return df_faculty<br>    <br>def load(df_transformed):<br>    df_transformed.to_csv(&#39;DataSets/faculty.csv&#39;)<br>    print(&quot;Loading Completed Successfully!&quot;)<br><br>def main():  <br>    data = extract()<br>    df_transformed = transform(data)<br>    load(df_transformed)<br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><h4>Step 4: Dashboard in Tableau</h4><p>We create a Dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4h8lU4rEvamV2v7I9zLjXw.png" /><figcaption>Tableau Dashboard</figcaption></figure><h4><strong>Conclusion</strong></h4><p>In this post, we learn the fundamentals of the Extract, Transform, and Load (ETL) pipeline. We learnt to develop an ETL pipeline with an example in which we extract data from a webpage and then further transform the data and load it into a CSV file. And at the end, we develop a dashboard.</p><p><a href="https://github.com/Hanan-Nawaz/NUML_Faculty_Analysis">GitHub - Hanan-Nawaz/NUML_Faculty_Analysis: This project analyzes faculty data from NUML&#39;s CS and SE departments, comparing the number of faculty, designations (e.g., Lecturers, Assistant and Associate Professors), and PhD qualifications. It also includes a detailed list of all faculty members with their designations, departments, and contact information.</a></p><h4>References</h4><ol><li><a href="http://numl.edu.pk/">NUML</a></li><li><a href="https://help.tableau.com/current/pro/desktop/en-us/gettingstarted_overview.htm">Tableau Documentation</a></li><li><a href="http://hanannawaz.me/">hanannawaz.me</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=121f07dfe0f5" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/extract-transform-and-load-etl-with-python-121f07dfe0f5">Extract, Transform and Load (ETL) with Python</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>