Tagged articles
4 articles
Page 1 of 1
Python Crawling & Data Mining
Python Crawling & Data Mining
Jun 7, 2022 · Fundamentals

Compute Cumulative Sums and Build Stacked Charts with Pandas

This tutorial demonstrates how to generate random product usage data, compute per‑product usage‑duration percentages with pandas, calculate cumulative sums, and create a horizontal stacked bar chart using Matplotlib, offering multiple pandas techniques such as groupby‑value_counts, unstack, and crosstab for clear visual analysis.

Data AnalysisPythoncumulative sum
0 likes · 8 min read
Compute Cumulative Sums and Build Stacked Charts with Pandas
NiuNiu MaTe
NiuNiu MaTe
Jul 27, 2021 · Fundamentals

Three Clever Ways to Solve the Circular Gas Station Problem

This article explains the classic circular gas‑station challenge, presents its key constraints, walks through a concrete example, and compares three solution strategies—brute‑force, reverse (backtrack) greedy, and a cumulative‑sum graphical method—highlighting their trade‑offs and insights.

algorithmbrute forcecoding interview
0 likes · 7 min read
Three Clever Ways to Solve the Circular Gas Station Problem
Programmer DD
Programmer DD
Sep 27, 2019 · Databases

How to Use MySQL User Variables for Cumulative Daily User Counts

This article explains how to calculate cumulative daily user totals in MySQL using user-defined variables, demonstrates the necessary SQL queries, compares them with a Java‑style algorithm, and highlights important considerations such as variable initialization and practical pitfalls.

DatabaseMySQLSQL
0 likes · 6 min read
How to Use MySQL User Variables for Cumulative Daily User Counts