JCS Analytics
JCS Analytics
  • Home
  • About
  • Privacy

JCS Analytics - We are analysts. We Ask. We Automate. We Discover.

Details
By J. Smith
J. Smith
Articles
November 24,2024
Hits: 323
  • Continuous Glucose Monitoring
  • CGM Data Visualization
  • Data Analysis with Tableau
  • Time in Range Metrics
  • Glycemic Variability

Working with CGM Data: Part 4 – Visualizing the Data in Tableau

Profile

Abstract

This post concludes the "Working with CGM Data" series by demonstrating how to create insightful visualizations in Tableau using continuous glucose monitor (CGM) data. It covers two visualization categories—CGM-style and data analysis-style—and highlights their unique features and applications. Advanced Tableau techniques, including calculated fields and dynamic parameters, ensure precise and actionable insights. This guide demonstrates how to translate raw CGM data into actionable visual reports, creating a framework for analyzing glucose management trends.

Key Points

  • Focus on Visualizing CGM Data: Demonstrates advanced Tableau techniques to create CGM-style and data analysis-style visualizations.
  • Categories of Visualizations:
    • CGM-Style Reports: Overview, Daily View, Comparison, Overlay, and Profile reports mimic traditional CGM reporting formats.
    • Data Analysis-Style Reports: Range and Variation, Variation by Time of Day, and experimental Time in Tight Range metrics for deeper insights.
  • Advanced Tableau Features: Includes 55 calculated fields, 7 parameters, and precision techniques such as dynamic GMI calculations for increased usability.
  • Insights Gained: Explores metrics like Time in Range, Coefficient of Variation, and glucose patterns to provide comprehensive data-driven insights.
  • Interactive Online Dashboards: Visualizations are accessible on Tableau Public for exploration and reference.
  • Not for Medical Use: Visualizations focus on data analysis and are not intended for guiding treatment decisions.

Read more: Working with CGM Data: Part 4 – Visualizing the Data in Tableau

Details
By J. Smith
J. Smith
Articles
November 24,2024
Hits: 301
  • CGM Data Processing
  • SQLite Database Management
  • Continuous Glucose Monitoring
  • Data Cleaning Techniques
  • Tableau Visualization Prep

Working with CGM Data: Part 3 - Cleaning and Processing New Data with Python and SQLite

# Import packages

# For data manipulation
import numpy as np
import pandas as pd

# For working with datetime objects
from datetime import datetime

# For working with SQLite databases
import sqlite3

Abstract

Establishing a reliable and efficient process for managing continuous glucose monitor (CGM) data ensures the dataset remains accurate, consistent, and manageable. Using Python and SQLite, new data is cleaned, validated , and added to the database, and prepped for visualizations in Tableau.

Key Points

  • Data Storage: Only the most recent 90 days of CGM data are stored in the SQLite database, optimizing storage and focusing on relevant data.
  • Data Validation: Duplicate entries are removed, missing dates are identified, and the dataset remains complete.
  • Efficient Integration: New data is appended to the existing database without overwriting or redundancy.
  • Prepared for Visualization: Cleaned and validated data is ready for use in visualization tools like Tableau.

Read more: Working with CGM Data: Part 3 - Cleaning and Processing New Data with Python and SQLite

Details
By J. Smith
J. Smith
Articles
November 23,2024
Hits: 278
  • Python
  • SQLite
  • SQL Magic
  • CGM Data Handling
  • Data Validation

Working with CGM Data: Part 2 – Creating a Database with SQLite to Manage a Growing Dataset

# Import packages

# For data manipulation
import pandas as pd

# For working with SQLite databases
import sqlite3

Abstract

Explore the use of Python, SQLite, and SQL Magic to manage growing datasets efficiently.

Key Points

  • Problem Addressed: Managing a growing CGM dataset efficiently, moving beyond CSV files to a scalable database solution.
  • SQLite for Scalability: SQLite's serverless nature and Python integration make it an ideal choice for local data management and rapid deployment.
  • Using SQL Magic: SQL Magic in Jupyter Notebook allows for interactive SQL queries, combining Python’s flexibility with SQL’s powerful capabilities.

Read more: Working with CGM Data: Part 2 – Creating a Database with SQLite to Manage a Growing Dataset

Details
By J. Smith
J. Smith
Articles
November 23,2024
Hits: 460
  • Python
  • CGM Data Management
  • Glucose Data Analysis
  • Continuous Glucose Monitor
  • Data Preparation

Working with CGM Data: Part 1 – Building the Base Dataset with Python

# Import packages

# For data manipulation
import numpy as np
import pandas as pd

# for displaying and modifying the working directory
import os as os

# For working with datetime objects
from datetime import datetime

Abstract

Managing continuous glucose monitor (CGM) data efficiently becomes increasingly challenging as datasets grow larger. This post details a streamlined approach for preparing a base dataset to facilitate CGM data analysis. Key steps include optimizing the data download process, filtering relevant information, formatting and enriching the dataset, and preparing it for visualization. By implementing these methods, you can reduce redundancy, ensure data integrity, and create a foundation for meaningful analysis and visualization.

Key Points

  • Challenge: Daily downloads of the full dataset became impractical as the dataset grew larger.
  • Solution: Store historical data in a CSV file and append only new data, reducing download time and storage needs.
  • Filtering: Retain only relevant columns and rows (e.g., glucose readings) while discarding unnecessary metadata and non-glucose entries.
  • Formatting: Standardize columns, extract additional fields, and add a Treatment column to enrich the dataset.
  • Validation: Check for missing dates, remove duplicates, and ensure data consistency.
  • Output: Save processed data in two formats—complete history for records and a 90-day subset for visualization in Tableau.

Read more: Working with CGM Data: Part 1 – Building the Base Dataset with Python

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

Page 4 of 8

Recent Activity

November 2025

  • Eli Lilly’s AI Strategy: Opening High-Value Drug Discovery Models to the Biotech Ecosystem

September 2025

  • Bridging Data and Healthcare in the Nordics

August 2025

  • Aligning CGM and BGM Readings Using Python and Tableau
  • Streamlined Drug Shortage Tracking with Python and SQLite

Articles

  • 5K@EASD Race Results: Trends from 2023 and 2024
  • Adapting the 5K@ADA Race Results Project for 2025
  • Advanced Data Retrieval with Python
  • Aligning CGM and BGM Readings Using Python and Tableau
  • Analysis and Visualization of Public Health Agency of Canada COVID Cases
  • Bridging Data and Healthcare in the Nordics
  • Complex Web Scraping with Python
  • Creating a Calculated Field in Tableau to Get Get Data Aggregated by Month in the Correct Order
  • Data Analyst vs. Business Analyst: Similarities and Differences
  • Data Analytics for Type 2 Diabetes
  • Data Science and Responsible AI in the Pharmaceutical Industry: A Case Study of Novo Nordisk
  • Denmark's Leap into AI Innovation: A Model for Future Research and Development
  • Denmark’s Gefion AI Supercomputer Revolutionizes AI-driven Research
  • Eli Lilly’s AI Strategy: Opening High-Value Drug Discovery Models to the Biotech Ecosystem
  • Embracing AI: Balancing Augmentation, Ethics, and Environmental Impact
  • Enhancing Data Analysis and Visualization Workflows with AI
  • Exploring the 2023 5K@EASD Virtual Run: A Tableau Analysis
  • Exploring the Growth of GLP-1 RA Sales
  • How an Hour-by-Hour View Transforms Time in Range Insights
  • How Novo Nordisk is Utilizing AI for Drug Discovery

Top Subjects

  • AI in Drug Discovery
  • Federated Learning
  • Pharmaceutical Data
  • Biotech Innovation
  • Lilly TuneLab
  • NVIDIA
  • Tableau
  • Python
  • Data Visualization
  • Data Analytics
  • Novo Nordisk
  • Tableau Visualizations
  • AI
  • 5K@EASD
  • Data Analysis
  • 5K@ADA
  • Type 2 Diabetes
  • Data Cleaning
  • Drug Discovery
  • AI Innovation
  • Quantum Computing
  • Diabetes Management
  • Race Results
  • Diabetes Awareness
  • Virtual 5K
  • Continuous Glucose Monitor
  • SQLite
  • SQLite Database Management
  • Continuous Glucose Monitoring
  • CGM Data Analysis

Contact Me

Search

End Diabetes Stigma

5K@ADA

5K@EASD

World Diabetes Day

Rochen Web Hosting

Bluesky Social

  • You are here:  
  • Home
  • Articles
 
Copyright © 2025 JCS Analytics. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.