<?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 Nnamdi Nnanna on Medium]]></title>
        <description><![CDATA[Stories by Nnamdi Nnanna on Medium]]></description>
        <link>https://medium.com/@nnamdinnanna?source=rss-7a88dfbccc92------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yfkUeWe4qHOOnEF_RogT6A.jpeg</url>
            <title>Stories by Nnamdi Nnanna on Medium</title>
            <link>https://medium.com/@nnamdinnanna?source=rss-7a88dfbccc92------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:33:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nnamdinnanna/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[The Split-Apply-Combine Strategy: Simplifying Complex Datasets in Week 8]]></title>
            <link>https://medium.com/@nnamdinnanna/the-split-apply-combine-strategy-simplifying-complex-datasets-in-week-8-1e89e145d389?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e89e145d389</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 17:29:02 GMT</pubDate>
            <atom:updated>2026-10-31T17:29:02.735Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind the Code Series | My Data Science &amp; Machine Learning Journey at DataraFlow Week 8</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*Gbw_Ca1SfpO6sz1431kXwA.png" /><figcaption><em>A Seaborn heatmap matrix visualizing the distribution of UK milk trade values across the top twenty trading partners over a five-month temporal window.</em></figcaption></figure><p>Welcome to week 8 of the DataraFlow Data Science and Machine Learning internship. This week, my core focus was analyzing the UK milk trade dataset by leveraging Python, Pandas, SQL, Matplotlib, and Seaborn. The practical workload centered on a critical data engineering milestone: understanding how to split, aggregate, pivot, and visualize data features, while simultaneously reproducing those identical analytical transformations directly inside a relational database engine.</p><p>Wrestling with an authentic, messy trade dataset provided an excellent opportunity to solve real business questions. It forced me to look at how different programming tools can be applied to resolve the exact same logical problem.</p><h4>Table of Contents</h4><ul><li><a href="#92f9">Deconstructing the Split-Apply-Combine Framework</a></li><li><a href="#8c9b">Pipeline Configuration and Data Cleansing</a></li><li><a href="#654b">Translating Python Transformations to Relational Database Queries</a></li><li><a href="#7333">Resolving Environment and Syntactic Friction</a></li><li><a href="#dd13">Core Architectural Takeaways</a></li></ul><h3>Deconstructing the Split-Apply-Combine Framework</h3><p>One of the most important concepts I internalized this week was the split-apply-combine framework of data analysis. This methodology requires isolating a dataset into smaller, logical groups, executing a specific statistical calculation on each subset, and then merging the individual outputs back into a unified table.</p><p>I explored this framework extensively using Pandas’ .groupby() function. By applying this to the UK trade metrics, I grouped the data by transaction flow and product classifications, which allowed me to run an objective comparison between imports and exports across processed and unprocessed milk products.</p><p>I also worked with the .pivot_table() function to completely reshape the structure of my data. Instead of leaving import and export records stacked as separate rows, I reorganized the metrics into independent columns mapped against each month. This structural change made it significantly easier to track monthly shifts, balance variations, and trade deficits.</p><p>To complement the tabular summaries, I used Matplotlib and Seaborn to study how different visualization styles communicate underlying data distributions:</p><ul><li><strong>Histograms and KDE Plots:</strong> To evaluate the concentration, skewness, and overall shape of trade value distributions.</li><li><strong>Boxplots:</strong> To isolate statistical spread and instantly flag extreme transactional outliers.</li><li><strong>Regression and Heatmaps:</strong> To track linear trends over time and compare trade volumes across multiple global partners simultaneously.</li></ul><h3>Pipeline Configuration and Data Cleansing</h3><p>The core assignment required evaluating UK milk shipments. I began by loading the raw data records directly from our cohort database instance into a local Pandas environment. The source files contained commodity codes, reporting periods, global partner names, and absolute transaction values.</p><p>Before running any analytical logic, I had to ensure the integrity of the pipeline. This required removing records where the trading partner was explicitly flagged as “World.” Because these specific rows represented pre-calculated monthly totals, leaving them in the DataFrame would have caused the transaction values to be double-counted during aggregation, completely invalidating the analysis.</p><p>I also used the industrial commodity codes to classify the shipments into two strict operational categories: code 0401 for unprocessed milk and cream, and code 0402 for processed variants.</p><p>Once the data was clean, I used grouping filters to isolate regular customers who consistently purchased both processed and unprocessed milk during each of the five months logged in the 2015 dataset. Reshaping the data this way allowed me to pinpoint exactly which nations appeared simultaneously on both the import and export ledgers of the UK.</p><h3>Translating Python Transformations to Relational Database Queries</h3><p>The most interesting part of the week was taking the logic I had just written in Python and translating it into raw SQL queries inside the cohort database. I worked through five distinct practice pipelines:</p><ol><li><strong>Multi-Column Grouping:</strong> Aggregating trade files by transaction flow and milk classification to compute total volumes alongside unique partner counts.</li><li><strong>Conditional Aggregation:</strong> Utilizing CASE logic to build a monthly report that displays imports, exports, and net trade balances side by side in a clean layout.</li><li><strong>Grouping Sets:</strong> Constructing a quarterly matrix for the 2014 fiscal year that automatically embeds annual subtotals for each transaction stream.</li><li><strong>Window Calculations:</strong> Deploying dense ranking functions to identify the top three trading partners per flow and calculate their percentage contribution to the macro economy.</li><li><strong>Categorical Binning:</strong> Preparing data for a stacked bar chart by isolating the top five export nations and automatically grouping all remaining global partners under a single “Other” bucket.</li></ol><pre>SQL_03 = &quot;&quot;&quot;<br>SELECT<br>    [Trade Flow] AS trade_flow,<br>    CASE<br>        WHEN GROUPING(<br>            (Period % 100 + 2) / 3<br>        ) = 1 THEN &#39;Year&#39;<br>        ELSE &#39;Q&#39; + CAST((Period % 100 + 2) / 3 AS VARCHAR(1))<br>    END AS quarter,<br>    ROUND(<br>        SUM([Trade Value (US$)]) / 1000000.0, 2<br>    ) AS total_musd<br>FROM week09.countrymilk<br>GROUP BY GROUPING SETS (<br>    ([Trade Flow], (Period % 100 + 2) / 3),<br>    ([Trade Flow])<br>)<br>ORDER BY<br>    trade_flow,<br>    CASE<br>        WHEN GROUPING((Period % 100 + 2) / 3) = 1 THEN 5<br>        ELSE (Period % 100 + 2) / 3<br>    END;<br>&quot;&quot;&quot;</pre><p>Executing these pipelines successfully showed me that many of the data transformation tasks we routinely perform in Python can actually be handled much more efficiently right at the storage layer using a database engine.</p><h3>Resolving Environment and Syntactic Friction</h3><p>The assignments did not run smoothly without infrastructure bottlenecks. While setting up the visualization workspace, my Python environment threw a critical ModuleNotFoundError because the Seaborn library had not been provisioned in the specific kernel my Jupyter Notebook was targeting.</p><p>I resolved the issue directly inside the workspace by running a localized package installation:</p><p>%pip install seaborn</p><p>After the installation completed, I restarted the notebook kernel to reinitialize the environment, which cleared the import block.</p><p>The SQL portion introduced a different kind of friction. Translating multi-step analytical instructions into single query blocks required shifting how I structured my logic. Designing complex GROUPING SETS and partition windows forced me to slow down and map out my execution sequence before typing.</p><p>I had to pay close attention to minute operational details: ensuring the “World” totals were completely filtered out, converting raw currencies into millions of US dollars, enforcing correct rounding limits, and sorting the final matrices in the exact required sequence.</p><p>These details proved that a query can run perfectly without throwing syntax errors, yet still produce completely incorrect data if your underlying logic is flawed. Breaking the prompts down into Common Table Expressions (CTEs) allowed me to organize the steps logically and verify my output at every stage.</p><h3>Core Architectural Takeaways</h3><p>This week cemented my understanding of how data preparation, relational querying, and visual analysis interact within a real-world pipeline. Pandas and SQL can solve the exact same analytical puzzles, but they approach the data from completely different architectural angles. Pandas operates in-memory after you load a DataFrame, while SQL allows you to execute heavy aggregations directly inside the database database system.</p><p>I am also learning that meticulous data conditioning: handling duplicate categories, managing boundary limits, and verifying calculations: is what actually determines the quality of your insights.</p><p>Completing all five database assignments proved that translating Python logic into raw SQL queries is entirely manageable once you look past the syntax differences. I am still developing my fluency with intricate window calculations and visualization interpretations, but the workflow is becoming much more familiar. Real data analysis isn’t about memorizing individual functions; it’s about understanding the core problem, picking the correct methodology, and constantly verifying whether the machine’s output aligns with reality. Determination remains my watchword.</p><p><a href="#a8b4">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e89e145d389" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Raw Records to Empirical Insights: A Comparative Analysis of Temporal and Correlative Datasets]]></title>
            <link>https://medium.com/@nnamdinnanna/from-raw-records-to-empirical-insights-a-comparative-analysis-of-temporal-and-correlative-datasets-c29ab67ad997?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/c29ab67ad997</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 20:00:06 GMT</pubDate>
            <atom:updated>2026-10-24T20:00:06.315Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind the Code Series | My Data Science &amp; Machine Learning Journey at DataraFlow Week 7</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ik38A0uH_zKLxwRKp21xog.png" /><figcaption>Urban Population Scatter Plot</figcaption></figure><p>This week at DataraFlow, I focused on two core disciplines within the data pipeline: data cleansing combined with visualization, and structural dataset transformation paired with relational joins.</p><p>Initially, these operations appeared to be separate tasks. However, as I navigated the practical assignments, I realized how dependent they are on one another. Before an analyst can execute advanced modeling or extract defensible conclusions, the underlying records must be standardized, audited for anomalies, and structured logically. The integrity of your analytical output is strictly bounded by the integrity of your ingestion pipeline.</p><h4>Table of Contents</h4><ul><li><a href="#2055">Standardizing Volatile Climate Series</a></li><li><a href="#b3bc">Resampling and Downsampling Temporal Data</a></li><li><a href="#2bf4">API Ingestion and Correlative Mapping of World Bank Statistics</a></li><li><a href="#7fce">Database-Level Data Conditioning in SQL</a></li><li><a href="#61f2">Managing Infrastructure and Schema Friction</a></li><li><a href="#f015">Architectural Lessons from the Build</a></li></ul><h3>Standardizing Volatile Climate Series</h3><p>My first major project involved analyzing historical weather data for London Heathrow Airport to isolate specific optimal time windows for a seasonal travel case study. The raw input was an Excel workbook containing fragmented monthly climate sheets for the year 2023.</p><p>Before running any analytical queries, I had to compile these separate worksheets into a single, unified Pandas DataFrame.</p><p>The cleansing phase required meticulous data conditioning. I standardized mismatched column headers, validated chronological formats, removed corrupted date rows, and filtered the master dataset to isolate the summer timeline of June, July, and August.</p><p>I also encountered several unallocated and poorly labeled text column fields. Renaming these attributes systematically was the only way to ensure the metrics for temperature, humidity, wind velocity, barometric pressure, dew point, and absolute precipitation remained reliable during downstream computation.</p><h3>Resampling and Downsampling Temporal Data</h3><p>Analyzing daily logs made it difficult to run immediate comparative evaluations across extended multi-day windows. To resolve this, I deployed Pandas’ .resample() and .agg() methods to downsample the daily records into structured weekly summaries.</p><p>I calculated weekly means for temperature, maximum heat boundaries, cumulative precipitation volumes, relative humidity, and wind vectors. To ensure mathematical fairness when comparing these windows, I engineered a validation check to confirm that every resampled week contained exactly seven complete days of recorded inputs.</p><p>To make the trends interpretable, I built a comparative bar chart tracking average weekly temperatures. The output showed that late June contained a promising window, with the week ending June 25 hitting a peak mean temperature of roughly 21.1°C, while the week ending June 18 demonstrated a lower mean wind velocity of 10.5 km/h and a balanced humidity metric of 58.9%.</p><p>However, during this evaluation, I noticed that the weekly rainfall totals consistently registered as absolute zero. This anomaly immediately signaled that I needed to audit the collection source before treating the precipitation metric as a verified truth. It was a stark reminder that a clean chart or a well-formatted table can still mask underlying data gaps.</p><h3>API Ingestion and Correlative Mapping of World Bank Statistics</h3><p>The second phase of the week involved programmatic data ingestion and multi-source data integration. For this project, I chose to evaluate two specific development indicators from the 2013 World Bank census:</p><ul><li>Urban population expressed as a percentage of the global total.</li><li>Absolute electricity grid access expressed as a percentage of the population.</li></ul><p>I built a data ingestion pipeline to query this information directly via the World Bank API using Python’s requests library, then structured the resulting JSON payloads into individual DataFrames before executing an inner join on matching country codes.</p><p>API JSON Payload ──&gt; Separate DataFrames ──&gt; Filter Regional Aggregates ──&gt; Spearman Rank Matrix</p><p>A major challenge during this integration was isolating genuine sovereign countries from regional and economic aggregate fields embedded inside the World Bank data schema. Leaving those aggregate records in the dataset would completely distort any country-level comparisons.</p><p>After removing these records, I calculated a Spearman’s rank correlation coefficient across 215 validated nations and visualized the interaction using a scatterplot.</p><p>The evaluation yielded a Spearman correlation score of approximately 0.6553, indicating a definitive positive relationship between urban density and infrastructure grid access.</p><p>While the data proved that highly urbanized regions generally correlate with superior electricity networks, the trend wasn’t uniform. This serves as an excellent reminder that correlation simply measures statistical association; it never establishes a direct cause-and-effect link. Other latent variables are always at play.</p><h3>Database-Level Data Conditioning in SQL</h3><p>Beyond Python-based pipelines, the take-home workload required running direct data manipulation tasks inside the relational cohort database engine.</p><p>The practical tasks covered five explicit conditioning scenarios: parsing malformed string text, executing data type casting to convert raw text into true date objects, running relational table joins, identifying rows at risk of being dropped due to unmatched keys, and deploying an analytics window function to isolate the driest consecutive seven-day window across the summer timeline.</p><p>These exercises connected my work in Pandas with identical structural logic executed at the storage layer. Deploying SQL’s REPLACE() and data conversion functions allows you to clean records directly inside the database engine, while window functions allow you to calculate running statistics across sequential records without collapsing your entire dataset into a single row. I verified that all five query pipelines successfully passed the automated practice checker.</p><h3>Managing Infrastructure and Schema Friction</h3><p>The execution process did not run in a straight line without issues. Managing inconsistent data fields in the weather workbook required manually inspecting the raw sheet files to account for extra metadata headers and ambiguous naming conventions before writing any ingestion logic.</p><p>Furthermore, during the SQL database interaction, my notebook environment threw a critical PendingRollbackError that locked the database connection and halted the automated practice checker. Resolving this required killing the active notebook kernel, re-establishing a clean connection to the database instance, and resetting the state management parameters.</p><p>These infrastructural bottlenecks prove that data work is rarely just about writing clean logic loops. Often, your first real task is diagnosing exactly why your environment is failing to execute your commands.</p><h3>Architectural Lessons from the Build</h3><p>This week reinforced an essential principle of data engineering: professional analytics requires a deep understanding of what your data transformations are actually doing to the underlying records. You must constantly verify intermediate outputs instead of assuming your code worked flawlessly just because it finished executing without throwing an error message. Inspecting raw DataFrame states, auditing missing data percentages, checking boundary constraints, and reading query execution logs are the only ways to capture fatal pipeline errors before they corrupt your final analysis.</p><p>Every tool has a specific architectural purpose. NumPy handles low-level vector computation, Pandas excels at tabular transformations and visualization, the World Bank API provides programmatic access to external data, and SQL optimizes query computation directly at the database layer.</p><p>But the logic driving these tools remains far more critical than the syntax itself. Shifting from raw records to clear, defensible insights requires checking your assumptions at every stage, investigating unexpected results, and communicating your findings without overstating the evidence.</p><p>I am still sorting out complex data systems, and there are many data points I intend to validate further before relying on them for final conclusions. But wrestling with these errors and debugging these environments is exactly how you build a resilient technical foundation. One query, one error, and one lesson at a time, I am developing the independence needed to manage real data systems.</p><p><a href="#6030">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c29ab67ad997" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hybrid Data Engineering: Transitioning From In-Memory Array Vectorization to Relational Query…]]></title>
            <link>https://medium.com/@nnamdinnanna/hybrid-data-engineering-transitioning-from-in-memory-array-vectorization-to-relational-query-c35aeb822d31?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/c35aeb822d31</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 20:22:24 GMT</pubDate>
            <atom:updated>2026-10-18T20:22:24.272Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hybrid Data Engineering: Transitioning From In-Memory Array Vectorization to Relational Query Analytics</h3><h4>Behind the Code Series | My Data Science &amp; Machine Learning Journey at DataraFlow Week 6</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*ICiHbIANQGVSCNqS2OqK3w.png" /><figcaption>A look into the project</figcaption></figure><p>This week at DataraFlow, I worked with NumPy, Pandas, and SQL. The experience moved from practising individual Python operations to exploring datasets and writing SQL queries against a cohort database.</p><p>What made the week useful was getting to work through the exercises myself, encounter errors, figure out what went wrong, and keep going. It reminded me that learning data science is not just about knowing which function or query to write. It is also about understanding what it does and knowing how to troubleshoot when things don’t work as expected.</p><h4>Table of Contents</h4><ul><li><a href="#b672">Revisiting the Fundamentals with NumPy</a></li><li><a href="#f177">Working with Pandas</a></li><li><a href="#d4d5">Taking the Next Step with SQL</a></li><li><a href="#94d1">Learning Through SQL Errors</a></li><li><a href="#6869">Applying SQL to Real Questions</a></li><li><a href="#aba2">What I Am Taking Away</a></li></ul><h3>Revisiting the Fundamentals with NumPy</h3><p>I practiced working with NumPy arrays, including element-wise comparisons, checking for NaN values, identifying real and complex numbers, and comparing floating-point values.</p><p>Functions such as np.isnan() and np.isclose() helped me understand how NumPy handles numerical checks. I also worked with comparison functions like np.greater(), np.less(), and np.equal(), alongside checking array memory usage through the nbytes attribute.</p><p>These exercises helped reinforce the idea that NumPy is more than a way to store numbers. It provides operations for working with numerical data efficiently and consistently.</p><h3>Working with Pandas</h3><p>The Pandas exercises focused on Series and DataFrames: creating them from different data structures, converting between formats, performing arithmetic, sorting values, selecting rows and columns, and filtering records using conditions.</p><p>I also practiced handling values that could not be converted to numbers using pd.to_numeric() with errors=’coerce’. Instead of allowing unexpected text to stop the conversion, Pandas can replace unconvertible values with NaN, making them easier to identify and handle.</p><p>One practical reminder came from selecting a particular row with .iloc. The operation itself was straightforward, but it depended on having the correct DataFrame variable available in the notebook. That reinforced the importance of understanding the state of a notebook and checking that the data has been loaded before trying to work with it.</p><h3>Taking the Next Step with SQL</h3><p>The SQL work brought a different challenge: instead of manipulating data already loaded into Python, I had to query tables stored in the cohort database.</p><p>I explored the week06 schema, which contained six airport weather datasets for Beijing, Brasilia, Cape Town, Delhi, London, and Moscow. Each weather table had 365 records and 23 columns.</p><p>Using Python to run SQL queries, I examined the table structures and explored the weather data. I compared average temperatures, recorded temperature extremes, annual precipitation totals, and monthly patterns. For example, Brasilia had the highest average temperature among the six cities, while Moscow had the lowest. London had precipitation recorded on more days than the other cities.</p><p>The analysis also raised questions about data quality. Moscow had zero recorded precipitation for the entire year, while Delhi and Brasilia had unusually high maximum wind-speed values. Rather than automatically treating these results as reliable, I recognized that they needed further investigation.</p><p>That was a useful reminder: getting a result from a query does not automatically mean the result tells the complete story.</p><h3>Learning Through SQL Errors</h3><p>Working with the database also meant troubleshooting queries that failed.</p><p>Some errors came from using column names that did not match the actual database schema. For example, the trade dataset used Trade Value (US$) rather than Trade Value, and its trade-flow values included Exports rather than Export.</p><p>Inspecting the table and its column names helped me identify the differences and correct the query. I also encountered a database transaction error that required restarting the notebook kernel and reconnecting before continuing.</p><p>These moments were not the most convenient part of the exercise, especially with time running short, but they showed me why reading error messages and checking the underlying data are important parts of working with databases.</p><h3>Applying SQL to Real Questions</h3><p>Beyond exploring weather data, I worked on queries involving UK milk trade records and loan approval data.</p><p>For the trade dataset, I wrote a query to calculate total exports by partner country, excluding the aggregate World record and retaining partners with records across all twelve months of 2014. The resulting table ranked the partners by their total recorded export value, with Ireland at the top.</p><p>For the loan approval dataset, I examined how approval rates could be calculated across combinations of property area and credit history. This involved using conditional aggregation with CASE, counting applications, and calculating percentages.</p><p>These tasks gave me practical exposure to concepts such as GROUP BY, HAVING, common table expressions, and window functions. They also reinforced the need to inspect the actual column names and values before assuming that a query written from memory will work.</p><h3>What I Am Taking Away</h3><p>My biggest takeaway from Week 6 is that data work involves more than writing code that runs. It requires understanding the operations, checking assumptions, investigating unexpected results, and interpreting outputs within the limits of the data.</p><p>NumPy and Pandas gave me more practice working with data in Python, while SQL helped me explore and aggregate information directly in a database. Moving between these tools also helped me see how they can complement one another in a data workflow.</p><p>I am still learning, and there is more to practise. But each exercise, correction, and debugging session is helping me build a stronger foundation for the data science and machine learning work I want to do. Determination remains my watchword.</p><p><a href="#f5d1">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c35aeb822d31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Operationalizing Logistic Regression for Churn Prediction]]></title>
            <link>https://medium.com/@nnamdinnanna/operationalizing-logistic-regression-for-churn-prediction-5713af12413d?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/5713af12413d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 12:15:12 GMT</pubDate>
            <atom:updated>2026-10-12T12:15:12.732Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Behind the Code Series | My Machine Learning Journey at ML Zoomcamp 2026</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*RuOQZ80V9C_cGKxxW_qVPQ.png" /><figcaption>A look inside the project</figcaption></figure><p>When you are first learning machine learning, it is incredibly easy to focus entirely on the code syntax. You import a high-level library, train an estimator, check the basic accuracy score, and immediately move on to the next assignment.</p><p>But working through Module 3 of ML Zoomcamp 2026 forced me to slow down and look closer at the underlying mechanics. There is an immense amount of architecture layout happening behind those few lines of code.</p><p>This week, I tackled a customer churn prediction pipeline, exploring how a telecommunications company can systematically identify subscribers who are at risk of terminating their services. The project provided a practical framework to connect several theoretical concepts and see exactly how they fit together within a real-world machine learning workflow.</p><h3>Table of Contents</h3><ul><li><a href="#d9b8">Engineering the Baseline Data Integrity</a></li><li><a href="#31c5">Quantifying Feature Importance and Statistical Relationships</a></li><li><a href="#e59e">Mapping Structural State Changes through Vectorization</a></li><li><a href="#9077">Interrogating the Internal Weights of Logistic Regression</a></li></ul><h3>Engineering the Baseline Data Integrity</h3><p>The pipeline relies on a dataset containing architectural metrics for approximately 7,000 telecom customers, capturing their contract structures, service allocations, and billing histories. Within this sample, the baseline churn rate sat at roughly 27%.</p><p>Before diving into training scripts, I had to thoroughly understand the data layout. That required executing exploratory data analysis (EDA): cleaning missing data paths, analyzing the variance of feature distributions, and cross-checking the balance of our binary target variable.</p><p>I also spent time configuring the split ratios to isolate the data into distinct training, validation, and test sets to ensure the final model evaluation remained completely unbiased.</p><p>It is always tempting to rush straight toward the model training phase because that is the part that feels like true machine learning. But establishing clean data integrity is what actually gives the rest of your engineering stack a stable foundation.</p><h3>Quantifying Feature Importance and Statistical Relationships</h3><p>One of the most valuable exercises in this module was studying how to systematically measure feature importance before letting an algorithm make blind predictions. I approached this from three distinct analytical angles:</p><ul><li><strong>Risk Ratio and Risk Difference:</strong> To determine how specific categorical features shift the baseline probability of customer churn.</li><li><strong>Mutual Information Metrics:</strong> To quantify exactly how much information an individual categorical attribute shares with our binary target variable.</li><li><strong>Correlation Coefficients:</strong> To evaluate the linear dependencies existing between our numerical features.</li></ul><p>During the mutual information analysis, contract type emerged as the most informative categorical feature, yielding a definitive score of 0.098.</p><p>What I appreciated most about this stage was that feature analysis gives you an objective way to investigate your data parameters from different perspectives before you ever rely on a model’s output. It proves that feature importance isn’t a generic metric; it depends entirely on the layout of your data and the specific question you are trying to resolve.</p><h3>Mapping Structural State Changes through Vectorization</h3><p>Another critical bottleneck I managed this week was data serialization and representation. Real-world datasets are messy, filled with strings representing contract configurations, payment channels, and internet service categories.</p><p>Because a mathematical framework like logistic regression strictly requires numerical matrices as inputs, these categorical values must be transformed into a format the machine can actually compute.</p><p>Using Scikit-Learn’s DictVectorizer, I mapped the underlying categorical dictionaries into a flat, numerical sparse matrix containing 45 distinct columns.</p><pre># Mapping categorical attributes into numerical feature space<br>from sklearn.feature_extraction import DictVectorizer<br>dv = DictVectorizer(sparse=False)<br>X_train = dv.fit_transform(train_dicts)</pre><p>This step served as an essential reminder that machine learning engineering involves far more than just choosing a trendy algorithm. The way you choose to represent your data features matters just as much as the model itself.</p><h3>Interrogating the Internal Weights of Logistic Regression</h3><p>Once the feature space was properly configured, I trained a baseline logistic regression model. The algorithm achieved an accuracy score of approximately 80% on our validation set and sustained 81.5% accuracy when exposed to the completely unseen test data.</p><p>But instead of just accepting those summary metrics, I wanted to understand <em>why</em> the model made its decisions. I mapped the internal coefficient weights back to their corresponding feature names and even calculated predictions manually using a scaled-down mathematical model built on selected features.</p><p>Manually calculating the probability math bridged the gap between calling a black-box method and understanding the underlying algorithm. It is one thing to blindly call a model’s .predict() method; it is a completely different discipline to understand exactly which coefficient attributes drove that specific probability estimation.</p><p>Ultimately, logistic regression simply outputs a probability score for a binary event. A business can leverage that probability estimation to prioritize which customers require immediate retention strategies. But a prediction is only structurally useful when you understand its limitations and evaluate the architecture thoroughly.</p><h3>The Real Value of the Workflow</h3><p>The true takeaway from this module is seeing how seamlessly the separate stages of a machine learning lifecycle depend on one another. Data preparation makes the tracking files usable, feature analysis uncovers hidden relationships, encoding maps the text into a suitable numerical matrix, and the algorithm learns from those optimized configurations.</p><p>I am starting to appreciate the explicit reasoning behind every single architectural step, rather than simply viewing the workflow as a random sequence of python commands to execute.</p><p>There is still plenty of ground to cover, but wrestling with a real dataset makes these abstract principles significantly easier to internalize. Up next is Module 4, where I will be exploring advanced evaluation metrics for classification models to figure out what those performance accuracy numbers are actually trying to tell us.</p><p><a href="#feb6">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5713af12413d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predictive Latency in B2B SaaS: Defining Behavioral Observation Windows for Early Churn Mitigation]]></title>
            <link>https://medium.com/@nnamdinnanna/predictive-latency-in-b2b-saas-defining-behavioral-observation-windows-for-early-churn-mitigation-756649fc8f11?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/756649fc8f11</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Fri, 09 Oct 2026 21:07:58 GMT</pubDate>
            <atom:updated>2026-10-09T21:07:58.258Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind the Code Series | My Data Science &amp; Machine Learning Journey at DataraFlow Week 5</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7LmG9LPkE5Cxq1Hz" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I used to operate under the assumption that once you identified an interesting problem and mapped out a potential solution, you were already halfway through the research process. This week, however, a technical assignment forced me to slow down and re-evaluate that entire belief.</p><p>As part of my data science and machine learning training, I was tasked with developing a formal research proposal. Initially, I approached the framework like an engineer who simply wanted to turn a neat concept into a standard software project.</p><p>But the deeper I got into the methodology, the clearer it became that having a promising idea is merely the starting line.</p><h4>Table of Contents</h4><ul><li><a href="#c3d0">Narrowing the Coordinates of the Problem</a></li><li><a href="#e4fb">Dismantling the Myth of Absolute Novelty</a></li><li><a href="#b492">Navigating the Real Intent of Literature</a></li><li><a href="#2ca1">Designing an Experiment with Clear Boundaries</a></li></ul><h3>Narrowing the Coordinates of the Problem</h3><p>My first major challenge wasn’t a lack of ideas; it was figuring out exactly which bottleneck was worth investigating. I evaluated problems across various sectors, including healthcare diagnostics and business analytics. I needed a topic that carried genuine real-world value, but it also had to be a system that could be realistically implemented and evaluated using machine learning algorithms.</p><p>I eventually chose to focus on early user churn prediction within B2B SaaS platforms.</p><p>The baseline concept was straightforward: analyzing a user’s initial interactions with a software product to predict whether they are likely to stop using it.</p><p>But as soon as I committed to the topic, a critical question disrupted my plan: What exactly would my research contribute to the industry when hundreds of developers have already deployed machine learning models to predict customer churn?</p><p>Answering that single question forced me to shift how I approached the entire assignment.</p><h3>Dismantling the Myth of Absolute Novelty</h3><p>One of the most important lessons I had to work through was understanding what a research gap actually means. I started out believing that a successful proposal required finding an entirely untouched subject that no human had ever looked at.</p><p>Gradually, I realized that research doesn’t require absolute novelty. Previous engineers may have heavily investigated the exact same general problem, but they often leave specific questions unanswered, utilize different data conditions, or limit their algorithms to specific environments.</p><p>The real task is to thoroughly analyze what is already established so you can identify exactly where further investigation becomes useful.</p><p>For my project, I shifted my focus to the strict dimension of time.</p><p>Instead of asking the generic question of whether machine learning can predict churn, I wanted to investigate the absolute minimum volume of early behavioral data required before an algorithm can yield a dependable prediction. Does a system need hours of tracked user activity, or can reliable data signals emerge within the first few minutes of a session?</p><p>That became a much more precise, testable question.</p><h3>Navigating the Real Intent of Literature</h3><p>Reviewing academic and industry papers turned out to be completely different from a standard information search. I couldn’t just summarize articles; I had to pay close attention to the specific metrics each study tracked, the exact methodologies they deployed, their core limitations, and how their gaps connected to my proposed path.</p><p>This process forced me to become much more disciplined with my claims.</p><p>It is incredibly easy to skim a couple of papers and loudly declare that nobody has ever explored your specific idea. But making a claim like that requires concrete proof. If relevant studies already exist within the ecosystem, ignoring them doesn’t magically make your work original.</p><p>Instead, the historical literature serves to establish the exact boundaries of what the industry knows, what remains highly uncertain, and why your specific experiment is worth running. I stopped viewing the literature review as a collection of random summaries and started treating it as a logical argument for why the project deserves to exist.</p><h3>Designing an Experiment with Clear Boundaries</h3><p>A proposal is fundamentally a blueprint, not a final report. It outlines exactly how you intend to run an investigation, why the architecture matters, and what data you expect to uncover. It doesn’t give you permission to fabricate placeholder results just because you have a strong intuition about what the model will output.</p><p>For my study, I can plan to compare multiple behavioral observation windows and evaluate various machine learning architectures. But I cannot claim a specific time window is sufficient before the scripts actually run. A strong proposal must make the experimental process transparent without pretending the work is already completed.</p><p>The methodology phase was where the true complexity surfaced. Simply stating that I would build a machine learning model wasn’t enough. I had to map out the exact data pipeline: where the data would be sourced, how churn would be mathematically defined, how text attributes would be encoded, and how model performance would be cross-validated.</p><p>This planning forced me to account for a critical vulnerability that routinely ruins machine learning experiments: data leakage. If my objective is to predict churn using only the first hour of a user’s activity, I cannot allow data points from subsequent hours or days to influence the training features. If the model accidentally glimpses the future during training, its evaluation metrics will look flawless, but its real-world predictive power will completely collapse at inference time.</p><p>This assignment proved that machine learning engineering is rarely just about picking an algorithm. The way you design the structural parameters of the experiment determines whether your final results can actually be trusted.</p><p>Ultimately, I am still figuring out how to approach complex research framework designs. Building this proposal showed me how much deliberate system architecture must happen before you ever write your first line of code. It taught me to challenge my own baseline assumptions, test my claims against existing data, and connect my execution methodology directly to the problem.</p><p>A great project idea and a defensible engineering contribution are two completely different things. The idea gives you a place to start, but the research requires you to prove why the question matters. There are still datasets to clean, algorithms to train, and errors to debug, but this week completely changed how I value the work that happens before the build.</p><p><a href="#967f">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=756649fc8f11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Volume Illusion: Why a Large Dataset Doesn’t Guarantee a Great Machine Learning Model]]></title>
            <link>https://medium.com/@nnamdinnanna/the-volume-illusion-why-a-large-dataset-doesnt-guarantee-a-great-machine-learning-model-1b08e9ee7ac1?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b08e9ee7ac1</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 17:10:01 GMT</pubDate>
            <atom:updated>2026-10-08T07:56:06.617Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Behind the Code Series | My Machine Learning Journey</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*tAQAliLaSt0HQnEs4Qw_eg.png" /><figcaption>A look inside the project</figcaption></figure><p>There is a common assumption that if you gather a massive dataset, your machine learning model will automatically become highly accurate. I recently found out that reality is a lot more complicated. As part of my machine learning engineering journey, I started building a salary prediction model using a Kaggle dataset containing 22,770 records.</p><p>On paper, over twenty-two thousand rows feels like plenty of data to build a reliable predictive system. But as I dove into the Exploratory Data Analysis (EDA), I hit a major roadblock that forced me to slow down: high cardinality.</p><p>Two critical columns in the dataset were incredibly dense:</p><ul><li><strong>company_name</strong> contained 11,229 unique values.</li><li><strong>job_title</strong> contained 1,080 unique values.</li></ul><pre>Unique Values:<br>rating                  41<br>company_name         11229<br>job_title             1080<br>salary                 316<br>salaries_reported       82<br>location                10<br>employment_status        4<br>job_roles               11</pre><p>Instead of blindly feeding this raw text data into an algorithm and hoping for the best, I decided to treat the obstacle as a controlled experiment.</p><h3>Table of Contents</h3><ul><li><a href="#c397">Establishing the Baseline Model</a></li><li><a href="#b0be">Navigating the Bias-Variance Dilemma</a></li><li><a href="#f92d">Shifting the Operational Strategy</a></li><li><a href="#e20f">The Core Takeaways</a></li></ul><h3>Establishing the Baseline Model</h3><p>To understand the true impact of these high-cardinality features, I built my first iteration by completely excluding them. I left out both the company names and the job titles to bypass the encoding complexity entirely.</p><p>I applied One-Hot Encoding to the remaining categorical variables and ran the data through a standard Linear Regression model. The baseline evaluation metrics returned the following results:</p><ul><li><strong>Mean Absolute Error (MAE):</strong> ₹397,870</li><li><strong>Root Mean Squared Error (RMSE):</strong> ₹651,529</li><li><strong>R² Score:</strong> 0.119</li></ul><pre>mae:  397870.0532210079<br>RMSE: 651529.4785129912<br>R²: 0.11915253411545046</pre><p>An R² score of 11.9% means the baseline model could barely explain the variation in salaries. While the script ran successfully without throwing errors, the actual predictive capability was incredibly weak. This outcome triggered a classic machine learning dilemma: was the poor performance caused by an oversimplified algorithm, insufficient features, or a mix of both?</p><h3>Navigating the Bias-Variance Dilemma</h3><p>Linear regression relies on straight-line mathematical assumptions, which makes it highly susceptible to underfitting: also known as high bias: when dealing with complex, real-world salary structures. But instead of guessing what went wrong, I had to look closer at the underlying data.</p><p>High cardinality makes text features incredibly difficult to format because standard encoding strategies can quickly create a massive, sparse matrix that slows down computation. However, difficulty doesn’t mean the data is useless. In the real world, where a person works and what their exact title is hold the most significant clues about their compensation. Leaving them out eliminated the exact signal the model needed.</p><h3>Shifting the Operational Strategy</h3><p>My next immediate step is to build a second model that brings those excluded text features back into the ecosystem. I will need to explore more advanced encoding methods, such as target encoding or frequency encoding, to handle the unique values without breaking the architecture.</p><p>By comparing the performance of the baseline model against this new iteration using the exact same metrics, I can let the empirical data prove whether incorporating high-cardinality features actually improves the system’s predictive power.</p><h3>The Core Takeaways</h3><p>Wrestling with this dataset taught me three essential principles about system design that go far beyond writing code syntax:</p><ol><li><strong>Machine learning is inherently iterative:</strong> The engineering path is never a straight line from raw data to a perfect prediction. It functions as a constant loop of training, evaluating, questioning your assumptions, and running new experiments.</li><li><strong>Data volume is not data quality:</strong> Having over 22,000 rows of information will still yield weak predictions if the features you select fail to logically explain the target variable you are trying to find.</li><li><strong>Embrace the machine learning mindset:</strong> When an evaluation metric performs poorly, your immediate instinct shouldn’t be to discard the project or start over blindly. First, you have to slow down and ask what that poor result is trying to tell you about your architecture.</li></ol><p>Building in public requires being transparent about the trials, the errors, and the bottlenecks. Tackling this dataset proved that the real skill in data science isn’t just getting a model to run: it is learning how to listen to the data when your system fails to deliver.</p><p><a href="#abbd">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b08e9ee7ac1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying the Blueprint: Rethinking the Logic of a Research Proposal]]></title>
            <link>https://medium.com/@nnamdinnanna/demystifying-the-blueprint-rethinking-the-logic-of-a-research-proposal-b9614ab6682d?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9614ab6682d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 22:30:37 GMT</pubDate>
            <atom:updated>2026-10-04T22:30:37.349Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind the Code Series | My Data Science &amp; Machine Learning Journey at DataraFlow Week 4</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*z0kgLnyzlolDiZg4gqlKaA.jpeg" /><figcaption>Research-paper Roadmap</figcaption></figure><p>When I first began exploring the structure of research proposals, I operated under a major misconception. I assumed that the most difficult hurdle would be uncovering a completely untouched topic that absolutely no one had ever investigated before.</p><p>However, as I spent more time analyzing the actual framework of technical methodology this week at DataraFlow, I realized I was approaching the entire ecosystem from the wrong angle. A research proposal is not an official declaration that you have miraculously stumbled upon a completely brand-new discovery. It is simply a structured plan for investigating a specific problem or question that genuinely deserves closer examination.</p><p>Shifting that single perspective completely changed how I think about data analysis and academic inquiry.</p><p><strong>Table of Contents</strong></p><p><a href="#b5f2"><strong>Decoding the Core Function of a Proposal</strong></a></p><p><a href="#bd24"><strong>Dismantling the Core Misconceptions</strong></a></p><p><a href="#1d7c"><strong>Identifying the Research Gap</strong></a></p><p><a href="#cb1f"><strong>Joining the Broader Conversation</strong></a></p><h3>Decoding the Core Function of a Proposal</h3><p>At its foundation, a research proposal is designed to answer a series of fundamental questions before you ever type a line of code or aggregate a dataset. It explicitly forces you to define the problem under review, clarify why that problem matters, and outline what the existing industry literature already establishes. From there, you must pin down what remains ambiguous or inadequately understood, dictate your exact execution methodology, and estimate what your findings will actually contribute to the field.</p><p>Therefore, the proposal is not the actual execution phase. It serves as the architectural blueprint for the research.</p><p>Before spending months collecting data parameters, running infrastructure trials, or tuning machine learning models, this framework provides the opportunity to validate your path. It functions much like building physical infrastructure: you wouldn’t begin laying concrete blocks before deciding on the structural integrity, the overall design, and whether the floor plan makes logical sense. The proposal is that essential blueprint.</p><h3>Dismantling the Core Misconceptions</h3><p>Correcting my approach required breaking down three specific myths about what a proposal is not:</p><p><strong>1. It is not an obsession with absolute novelty</strong></p><p>Believing you must find an untouched subject is a major trap. In reality, almost all technical research builds directly upon a foundation that someone else already established. Investigators analyze previous studies, identify hidden limitations, and then isolate a specific angle to expand that collective knowledge base. Instead of asking if anyone has ever looked at a topic, the more valuable question is simply determining what part of that topic is still worth exploring.</p><p><strong>2. It is not a guaranteed outcome</strong></p><p>A proposal outlines an intention to investigate a variable; it does not present a polished conclusion. This boundary is incredibly critical when dealing with data science and predictive analytics. You might hold a strong hypothesis about what a dataset will reveal, but your experimental trials might prove your assumption entirely wrong. That variance is the exact point of the exercise. A resilient analyst must let the empirical evidence dictate the final output rather than forcing an experiment to validate a personal bias.</p><p><strong>3. It is not a glorified description of an engineering project</strong></p><p>In technical disciplines, declaring that you intend to build a specific machine learning model is not a research proposal. That is a standard software project. Research requires a deeper layer of inquiry: it asks what we are actually trying to learn by building and evaluating that specific system. While a traditional project focuses on the software as the final destination, genuine research treats the software merely as the tool to run a deeper investigation.</p><h3>Identifying the Research Gap</h3><p>One of the most vital concepts I encountered this week was the mechanism of the research gap. A gap does not automatically imply that a problem has been entirely ignored by the tech community. More frequently, a gap exists because previous studies yielded completely conflicting results, or a specific operational context was overlooked.</p><p>It can also happen when an established method reveals clear scaling limitations, or a newer infrastructure model introduces variables that older research simply couldn’t account for.</p><p>Problem ──&gt; Historical Context ──&gt; The Hidden Gap ──&gt; Targeted Methodology</p><p>Discovering an abundance of prior research on your topic isn’t a sign of failure. In fact, the more relevant historical data you uncover, the easier it becomes to isolate the exact coordinates where your own investigation belongs.</p><h3>Joining the Broader Conversation</h3><p>Technical research is rarely built from a vacuum. It functions much more like an ongoing conversation. One engineer poses a question, another runs an architecture trial to test it, a third developer identifies a structural limitation, and a fourth analyst evaluates that limitation within a brand-new environment. Your work simply becomes the next line in that dialogue.</p><p>That is why a comprehensive literature review isn’t just a random list of papers you compiled to fill space. It is the process of thoroughly understanding the conversation that happened before you arrived, ensuring you can make a deliberate choice about what you want to contribute.</p><p>To hold up under scrutiny, every component of a proposal must connect seamlessly:</p><ul><li><strong>The Problem</strong> must dictate the historical context.</li><li><strong>The Context</strong> must expose the explicit research gap.</li><li><strong>The Gap</strong> must justify the exact research question.</li><li><strong>The Question</strong> must align perfectly with the execution methodology.</li></ul><p>If these components do not link logically, the entire framework falls apart. You cannot target a specific research gap that your methodology is completely unequipped to measure, just as you cannot deploy a complex architecture without knowing the precise question you are trying to resolve. Everything must flow naturally from the previous step.</p><p>Ultimately, originality in data science doesn’t require you to discover a completely new planet. It comes from asking a more precise question, testing an unverified assumption, or evaluating how an established approach behaves under unique conditions.</p><p>The biggest lesson for me this week was realizing that a proposal isn’t about proving you have a flawless idea that no human has ever conceived. It is about proving you have identified a problem worth solving, and that you have mapped out a defensible, evidence-driven path to investigate it.</p><p><a href="#0e60">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9614ab6682d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Point]]></title>
            <link>https://medium.com/@nnamdinnanna/breaking-point-2050d7c8d903?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/2050d7c8d903</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 23:48:43 GMT</pubDate>
            <atom:updated>2026-09-26T23:48:43.947Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind the Code Series | My Data Science &amp; Machine Learning Journey at DataraFlow Week 3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*dp8pJ9jVs7tyIEnkEvyzQQ.jpeg" /><figcaption>Testing the math quiz logic through a mobile interface while working around my hardware limits.</figcaption></figure><p>This week was supposed to follow a predictable routine: review the engineering modules, process the materials, and submit my take-home tasks. Instead, it became a test of something completely outside the scope of software development.</p><p>At the start of the week, I came down with an illness. It wasn’t severe enough to completely force me away from my desk, but it injected enough friction into my routine to make every single concept feel twice as taxing. I kept forcing myself to stay on track because I refused to let physical fatigue disrupt my trajectory in the program.</p><p>Then, right as I felt I was managing the strain, my laptop suffered a critical hard drive failure.</p><p>That was the moment the dynamics of the week completely shifted. I found myself facing a stark reality: without functional hardware, continuing the program felt mathematically impossible. I was stuck between deep frustration and the genuine temptation to just give up entirely.</p><p>The bottleneck had nothing to do with the curriculum itself, yet it threatened to derail all the equity I had built over the previous weeks. I had already invested significant effort into this internship, and I hated the idea of a mechanical failure erasing that progress.</p><p>Table of Contents</p><ul><li><a href="#a761">Changing the Operational Strategy</a></li><li><a href="#9d3c">Translating Theory into Execution</a></li><li><a href="#46fe">The Real Takeaway from Week 3</a></li></ul><h3>Changing the Operational Strategy</h3><p>During this bottleneck, my group mentor, Ayomide Zaccheaus, intervened. Instead of offering generic encouragement to simply work harder, he shared a personal account from his own time as a DataraFlow intern.</p><p>He had encountered a nearly identical infrastructure breakdown but engineered a way to keep showing up regardless. He explained how he resorted to reviewing materials and writing out logic components directly on his mobile phone, and even utilized a local business center just to maintain his delivery timeline.</p><p>That conversation fundamentally reframed my perspective. I realized that if he could navigate those exact logistical constraints to reach his objectives, I had no excuse to let my circumstances dictate my output. I stopped fixating on the hardware I lacked and started evaluating the tools I still had access to.</p><p>I adapted my approach immediately.</p><p>I transitioned to utilizing my mobile device to parse through the Week 3 syllabus. I spent hours reviewing Python modular structures, the datetime library, JSON serialization mechanics, advanced error handling loops, user input validation, package management via pip, and virtual environment configuration.</p><h3>Translating Theory into Execution</h3><p>The actual take-home assignments pushed my capacity even further under these constraints. I focused on building scripts that manipulated JSON files, engineering a functional math quiz application, capturing isolated exceptions, calculating absolute date variances, and writing out detailed technical documentation for environment setup paths.</p><p>Many of these concepts look deceptively simple when you encounter them in an article or a tutorial video. But the value comes exclusively when you try to execute them yourself.</p><pre>import json<br><br>students = [<br>    {&quot;name&quot;: &quot;Nnamdi&quot;, &quot;age&quot;: 18, &quot;grade&quot;: &quot;A&quot;},<br>    {&quot;name&quot;: &quot;John&quot;, &quot;age&quot;: 20, &quot;grade&quot;: &quot;B&quot;},<br>    {&quot;name&quot;: &quot;Mary&quot;, &quot;age&quot;: 21, &quot;grade&quot;: &quot;A&quot;}<br>]<br><br>with open(&quot;students.json&quot;, &quot;w&quot;) as file:<br>    json.dump(students, file, indent=4)<br><br>with open(&quot;students.json&quot;, &quot;r&quot;) as file:<br>    loaded_students = json.load(file)<br><br>print(loaded_students)</pre><p>I went from reviewing documentation for try/except statements or the behavioral differences between json.loads() and json.dumps() to actively deploying them, making compilation mistakes, tracing why those exceptions triggered, and correcting the logic line by line. Through sheer repetition, the week that almost forced me out became another successfully completed milestone.</p><h3>The Real Takeaway from Week 3</h3><p>Looking back, this phase of the internship delivered a lesson that syntax alone could never teach me. Sometimes, the most daunting obstacle in engineering isn’t the intellectual complexity of the technical problem you are trying to solve. Often, it is the volatile situation surrounding the task itself.</p><p>An unexpected health challenge, a sudden loss of infrastructure, or the mental weight of feeling completely stuck can easily paralyze your progress. But hitting a barrier does not mean your journey has concluded. It usually just means your current operational strategy needs an immediate adjustment.</p><p>I am incredibly grateful to have a mentor who didn’t just hand me technical syntax solutions, but used his own story to prove that broken conditions do not have to equal a broken trajectory.</p><p>Week 3 is officially in the books. Once again, I am realizing that the act of simply showing up: especially when the environment is completely volatile: is what actually moves the needle. Determination remains my exact watchword as I step into the next phase.</p><p><a href="#db55">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2050d7c8d903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When Your Data Outgrows Your Hardware?]]></title>
            <link>https://medium.com/@nnamdinnanna/what-happens-when-your-data-outgrows-your-hardware-9b05843a91d5?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b05843a91d5</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 19:06:15 GMT</pubDate>
            <atom:updated>2026-09-20T19:09:14.134Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind the Code Series | My Data Science and Machine Learning Journey</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*qotgKPLB1OieCev0TesrFg.png" /><figcaption>Code snippet</figcaption></figure><p>While practicing my skills as a Data Science and ML intern at <strong>DataraFlow</strong>, I decided to run a classic performance benchmark: comparing the computation runtime of a standard Python list against a NumPy array.</p><p>I started safe, initializing the data structures with a modest size:</p><p>10 ** 6 (<strong>1,000,000 elements</strong>)</p><p>The RAM footprint was negligible, and the code executed instantly. As expected, NumPy easily outpaced the native Python list due to its vectorized operations.</p><p>But curiosity took over. I wanted to see how the execution time would scale under a heavier load. I changed the base of the input size to:</p><p>30 ** 6</p><p>In my head, I casually thought, <em>“Let’s see what happens if I increase it a bit.”</em> What I completely forgot was the brutal, unforgiving math of exponential growth. 30 ** 6 isn’t a minor bump.</p><p>It is exactly <strong>729,000,000 elements</strong>.</p><p>Because my script was attempting to initialize both data structures simultaneously in memory, I was asking my local hardware to handle over <strong>1.45 billion elements</strong> in a single execution block.</p><p>My laptop did not appreciate the experiment. The screen went completely blank, the system locked up, and the keyboard lights flickered in silence. For a few terrifying minutes, I wasn’t sure if I was running a data science test or if I had just initiated a laptop hardware repair project.</p><h3>· <a href="#a91e">The Under-the-Hood Mathematics of a Crash</a><br>· <a href="#7249">1. The NumPy Array Memory Footprint</a><br>· <a href="#b8df">2. The Native Python List Memory Footprint</a><br>· <a href="#35fe">3. The Combined Load</a><br>· <a href="#352f">The Core Takeaway</a></h3><h3>The Under-the-Hood Mathematics of a Crash</h3><p>To understand why my system collapsed, we have to look at how data structures manage memory allocations at the hardware level.</p><h3>1. The NumPy Array Memory Footprint</h3><p>NumPy stores data in a contiguous block of memory using fixed-size C-arrays. Because every element in the array shares the exact same data type, the memory math is straightforward and highly efficient.</p><p>For a 64-bit integer array of this size, the raw RAM required is:</p><p><strong>729,000,000 elements × 8 bytes = 5.83 GB of RAM</strong></p><h3>2. The Native Python List Memory Footprint</h3><p>This is where my system broke. Unlike NumPy, a native Python list does not store actual values contiguously. Instead, it stores an array of <em>pointers</em> that reference distinct integer objects wrapper-boxed elsewhere in memory.</p><p>The overhead breakdown for a single integer in a standard Python list looks like this:</p><ul><li><strong>Pointer allocation:</strong> 8 bytes</li><li><strong>Standard Python integer object overhead:</strong> 28 bytes</li><li><strong>Total per element:</strong> ~36 bytes</li></ul><p>When you scale that across our dataset, the memory requirement skyrockets:</p><p><strong>729,000,000 elements × 36 bytes = ~26.24 GB of RAM</strong></p><h3>3. The Combined Load</h3><p>Combined, the script demanded roughly <strong>32 GB of total memory allocation instantaneously</strong>. On a standard development laptop, this triggered an immediate Out-Of-Memory (OOM) event. The operating system’s page file flooded, the storage drive thrashed trying to cache the overflow, and the entire system froze.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MCz9wHRMMzM1yCA0o4HDYA.jpeg" /><figcaption>Image of my screen</figcaption></figure><h3>The Core Takeaway</h3><p>Thankfully, a hard force-restart cleared the volatile memory, and my machine survived the incident intact. But this student error taught me a profound engineering lesson that no textbook could fully replicate:</p><p>Writing code that runs is one thing; architecting it for the hardware it runs on is another.</p><p>As emerging ML Engineers and Data Scientists, it is easy to adopt the mindset that <em>“more data always equals better models, so I’ll just throw a bigger dataset at the script.”</em> But production environments and local environments alike have hard physical limits.</p><p>Scaling data pipelines blindly forces us to confront three major pillars of engineering:</p><ul><li><strong>Memory Overheads:</strong> Recognizing the massive structural difference between contiguous memory blocks (NumPy) and pointer arrays (Vanilla Python).</li><li><strong>Hardware Constraints:</strong> Building a habit of calculating expected space and time complexity <em>before</em> hitting the execution button.</li><li><strong>Algorithmic Guardrails:</strong> Utilizing batching, chunking, or memory-efficient data generators when handling large-scale data workloads.</li></ul><p>The goal of a great developer or data professional isn’t to build a script that breaks a computer. It is to deeply understand the hardware trade-offs of the data structures we choose to write.</p><p>Sometimes, the most critical metric you discover in your data science journey isn’t the processing speed you were trying to optimize — it’s the physical boundary of the system you accidentally collided with.</p><p><strong>What about you?</strong> What was the first loop, recursive function, or data structure that successfully crashed your machine? Let’s normalize sharing our hardware horror stories in the responses below!</p><p><a href="#321c">Back to top</a></p><p><em>If you enjoyed this write-up, feel free to follow my journey as a Data Science and ML intern at DataraFlow as I navigate the intersection of clean code and big data.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b05843a91d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Task That Shook My Confidence]]></title>
            <link>https://medium.com/@nnamdinnanna/the-task-that-shook-my-confidence-bea9a045ae6b?source=rss-7a88dfbccc92------2</link>
            <guid isPermaLink="false">https://medium.com/p/bea9a045ae6b</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Nnamdi Nnanna]]></dc:creator>
            <pubDate>Sat, 19 Sep 2026 21:18:16 GMT</pubDate>
            <atom:updated>2026-09-19T21:18:16.447Z</atom:updated>
            <content:encoded><![CDATA[<h4>Behind The Code Series | My Data Science &amp; Machine Learning Journey at <a href="https://www.dataraflow.org/">DataraFlow</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*LYZH_XMKqPaa5-O61hENEQ.png" /><figcaption>Code snippet</figcaption></figure><p>There was a moment during this week’s <a href="https://www.dataraflow.org/">DataraFlow</a> assignments when I seriously began to doubt my path. The issue wasn’t a lack of motivation, nor was the workload inherently impossible to manage. It came down to a single programming paradigm that completely disrupted my progress: Object-Oriented Programming.</p><p>Welcome to week 2 of DataraFlow internship.</p><p>Up until this point, I felt relatively secure in my foundational Python skills. I could structure functions comfortably, navigate loops, and implement conditional logic to route data effectively. I was finally beginning to understand how separate blocks of code interact within a larger application.</p><p>Then classes entered the equation, and the entire language felt foreign.</p><p>Concepts like __init__, self, inheritance, and super() suddenly flooded my workspace. I found myself trying to parse polymorphism, iterators, and Method Resolution Order all at once. I spent hours staring at broken scripts, wondering if I had hit a wall I simply couldn’t get past.</p><p>Table of Contents</p><ul><li><a href="#f28a">Navigating the Friction of Execution</a></li><li><a href="#d40e">Demystifying the Inheritance Chain</a></li><li><a href="#572c">Testing Theory with a Library Management Pipeline</a></li><li><a href="#3111">The Real Definition of Engineering Progress</a></li><li><a href="#80ea">Staying with the Problem</a></li></ul><h3><strong>Navigating the Friction of Execution</strong></h3><p>The core frustration didn’t stem from reading the theory behind these concepts; it came from the practical reality of writing the code. Moving past definitions meant making errors constantly.</p><p>I repeatedly ran into syntax failures, placed methods inside the wrong structural scopes, or watched a script execute successfully without actually understanding the underlying reason why it worked. There were multiple evenings where my immediate instinct was to discard the assignment entirely and stick to what I already knew.</p><p>Honestly, I came incredibly close to giving up on the topic.</p><p>But as I thought about it, I realized that avoiding complex concepts would simply trap me in a loop of permanent comfort, limiting my growth to skills I had already mastered. I decided to stick with it. This wasn’t driven by a sudden surge of confidence; I still felt entirely out of my depth. I simply decided that feeling uncomfortable was a poor justification for walking away from a challenge.</p><h3>Demystifying the Inheritance Chain</h3><p>I forced myself to slow down and isolate the principles one step at a time. I started by building basic, empty classes before gradually layer-building into inheritance, method overriding, and encapsulation. Each new layer brought its own wave of confusion, but slowly, the structural relationships began to make sense.</p><p>For a long time, seeing a declaration like super().__init__() felt entirely abstract.</p><p>A simple example of the syntax that initially caused confusion</p><pre>class ChildClass(ParentClass):<br><br>    def __init__(self):<br>        <br>        super().__init__()</pre><p>Eventually, I realized it wasn’t a magical workaround; it was just a clean mechanism that allows a child class to pull functional logic from its parent without duplicating code. Shifting my perspective from seeing an obstacle to seeing an unlearned concept changed how I approached the frustration. Often, the barrier isn’t an inability to comprehend a topic — it is simply that you haven’t logged enough hours wrestling with it yet.</p><h3>Testing Theory with a Library Management Pipeline</h3><p>The real test of this mindset came when I had to integrate these separate ideas into a functional project. As part of my DataraFlow workload, I built a miniature Library Management System.</p><p>The application required tracking physical books, digital media, member classifications, borrowing thresholds, and real-time availability logs. Suddenly, these abstract principles weren’t just isolated code syntax anymore; they served a concrete purpose.</p><p>I established a core base class for books and extended it to handle specific requirements for electronic and printed variants. I did the exact same for member profiles, utilizing polymorphism so different classes could share an identical interface while executing unique internal behavior.</p><pre>class Book:<br>    def __init__(self, title, author, year):<br>        self.title = title<br>        self.author = author<br>        self.year = year<br>        self.is_available = True<br><br>    def get_description(self):<br>        return self.title, self.author, self.year</pre><p>I encountered plenty of logic bottlenecks during the build. At one stage, my class-level transaction counter refused to increment correctly, consistently returning a value of one instead of two. Fixing it required tracing the execution sequence step by step to identify where the state tracking was losing integrity.</p><p>When the terminal finally displayed the correct output, it looked like a completely ordinary string of text to an outside observer. But to me, that output represented hours of trial, error, and eventual clarity.</p><h3>The Real Definition of Engineering Progress</h3><p>To be perfectly clear, completing this project does not mean I have mastered Python’s object-oriented architecture. I am still a student, and I am still figuring things out. I still run into structural concepts that trip me up, and I still have moments where I question why I got into development in the first place.</p><p>But my relationship with the code shifted this week.</p><p>Previously, the sight of a complex class structure was intimidating. Today, it remains a tough challenge, but it no longer paralyzes my workflow. That is what real progress looks like. Learning isn’t about reaching a magical destination where engineering suddenly becomes effortless. It is about building the resilience to face problems that used to make you want to quit.</p><h3>Staying with the Problem</h3><p>Ultimately, this internship is teaching me a lesson that goes far beyond technical exercises: it is showing me what it actually means to sit with a problem until it is resolved. There is a massive disconnect between watching an instructor explain a concept smoothly and sitting alone at your editor trying to make that exact system work.</p><p>The latter process is frustrating, and it will make you question your aptitude. But that specific friction is exactly where professional growth occurs.</p><p>This week proved that you don’t need total clarity before you start a project. You just need a willingness to make mistakes and the discipline to stand your ground until you understand the architecture in front of you. Object-oriented syntax might still be my least favorite part of the language right now, but I built the system anyway. True progress isn’t about becoming entirely fearless; it is about refusing to run away when the logic gets complicated.</p><p><a href="#6082">Back to top</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bea9a045ae6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>