<?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 ShAI Bernard Lelchuk on Medium]]></title>
        <description><![CDATA[Stories by ShAI Bernard Lelchuk on Medium]]></description>
        <link>https://medium.com/@shailelchuk?source=rss-d076526bf0fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Yb5B9jLyv3RmNcLWTivyhA@2x.jpeg</url>
            <title>Stories by ShAI Bernard Lelchuk on Medium</title>
            <link>https://medium.com/@shailelchuk?source=rss-d076526bf0fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:07:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shailelchuk/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[How I Turned an AI Form Builder into a Fully-Fledged Drum Machine]]></title>
            <link>https://medium.com/@shailelchuk/how-i-turned-an-ai-form-builder-into-a-fully-fledged-drum-machine-a1f16cb071b6?source=rss-d076526bf0fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1f16cb071b6</guid>
            <category><![CDATA[music]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[ShAI Bernard Lelchuk]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 16:23:02 GMT</pubDate>
            <atom:updated>2025-08-12T06:44:17.438Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Creativity is seeing what everyone else has seen, and thinking what no one else has thought ~Albert Einstein</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ENFmdR0cs8-i04HocytkhQ.png" /></figure><p>Last week, I came across <strong>Embeddable</strong>.</p><p>Its pitch is simple: build interactive <strong>widgets</strong> like forms, popups, quizzes, and scratch cards to boost engagement and convert more leads.<br>A solid concept, aimed squarely at marketers and product teams.</p><p>But while most people saw a form builder, I saw a<strong> blank canvas</strong>.</p><p>After experimenting with it for a few prompts, I realized there was an untapped layer. Something beyond its intended scope. It wasn’t just a utility for collecting data — it was a creative playground for building anything interactive right inside a web page.</p><p>That’s when the idea hit.</p><h3>From Widgets to Beats</h3><p>I decided to push Embeddable into an entirely different world:<br><strong>music creation.</strong></p><p>What started as a small test quickly evolved into a <strong>professional drum machine</strong> called <strong>Vibe-3</strong>.</p><p>No backend. No infrastructure.<br>Just <strong>Embeddable</strong>, <strong>Replit (</strong>as a host<strong>)</strong>, and a spark of curiosity.</p><p>Instead of static forms, I built:</p><ul><li>A <strong>16-step sequencer</strong> with real-time playback</li><li>Multiple <strong>drum kits</strong> from classic to trap</li><li>A <strong>neon-infused </strong>interface designed to <em>feel</em> like an instrument</li><li>A complete <strong>channel-strip </strong>Mixer</li></ul><p>It wasn’t built for music. But I made it sing.</p><h3>The Vibe-3 Experience</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITM4ORjMCBxz5GrlWAxzew.png" /></figure><p>With Vibe-3, you can create beats instantly, right in your browser.<br> It’s interactive, responsive, and fun.</p><p>You can play rhythms with your keyboard, swap kits on the fly, and watch your patterns glow to life.<br> And because it’s built with Embeddable, you can <strong>integrate</strong> it anywhere without complex code.</p><figure><img alt="Your groove, visualized. The 16-step sequencer in motion - glowing beats, animated patterns, and the freedom to switch drum kits on the fly. Every click adds a note, every note builds a vibe." src="https://cdn-images-1.medium.com/max/1024/1*Yj2wpuzHEoJITJl6LlUfbA.png" /></figure><h3>Creativity Lives in the “What If?”</h3><p>Tools like Embeddable are built with specific audiences in mind.<br>But sometimes, the most exciting results come from ignoring the obvious path.</p><p>For me, it wasn’t about marketing conversions.<br>It was about exploring what happens when you treat code like music and see where the rhythm takes you.</p><p>The result is playful, polished, and proves a point:<br> When you combine curiosity with the right tools, you can break the rules in the best way possible.</p><figure><img alt="More than code — it’s an instrument. Every element of the Vibe-3 interface was designed to look and feel alive, turning what started as a form builder into a piece of playable art." src="https://cdn-images-1.medium.com/max/1024/1*99AbSOaW2l15xlM199dDDQ.png" /></figure><h3>What beat will you create?!</h3><p>If you want to see what happens when a form builder becomes a beat machine:</p><p>Try your beats skills or just play for fun:<br> 🎧 <a href="https://vibe-3-drum-machine.replit.app/">Vibe-3 Drum Machine</a></p><p>And if you’re curious about the platform behind it:<br> 🔗 <a href="https://embeddable.co/?ref=ShAI">Embeddable</a></p><p>🎹 <strong>Next Up</strong>: I’m working on an <strong>extended studio version</strong> of Vibe-3 with more sounds, effects, capabilities and maybe even live collaboration.<br> This is just the opening beat.</p><p><strong>What would you build if you could bend a tool beyond its intended purpose?</strong><br>Drop your thoughts below, share this with a fellow maker, and let’s keep the creativity flowing.<br>And if you create a beat with Vibe-3, post it and tag me.<br>I’d love to hear what your imagination sounds like :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1f16cb071b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Made ChatGPT 10x Faster: A Toolbox That Changed Everything]]></title>
            <link>https://medium.com/@shailelchuk/how-i-made-chatgpt-10x-faster-a-toolbox-that-changed-everything-2ea2331eb4a6?source=rss-d076526bf0fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ea2331eb4a6</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[ShAI Bernard Lelchuk]]></dc:creator>
            <pubDate>Fri, 25 Oct 2024 13:28:19 GMT</pubDate>
            <atom:updated>2024-10-25T13:28:19.399Z</atom:updated>
            <content:encoded><![CDATA[<p>𝑯𝒆𝒓𝒆’𝒔 𝒉𝒐𝒘 𝑰, 𝒂 𝑷𝒐𝒘𝒆𝒓-𝑼𝒔𝒆𝒓, 𝒎𝒂𝒅𝒆 𝑪𝒉𝒂𝒕𝑮𝑷𝑻 10𝒙 𝒇𝒂𝒔𝒕𝒆𝒓 𝒘𝒊𝒕𝒉 𝒐𝒏𝒆 𝒕𝒐𝒐𝒍 🚀</p><p>As a power-user of ChatGPT, I have been using it daily since its release in December 2022. I use it for everything — writing content, learning new things, analyzing data, creating code, and much more. Over time, I accumulated thousands of chats, and it became super messy and complicated to find the right one, even if they were ‘oldies but goodies.’</p><p>I tried organizing them by saving them as browser favorites, but it was too time-consuming and wasn’t intuitive for navigation and access. I used to spend 𝗵𝗼𝘂𝗿𝘀 scrolling through endless ChatGPT conversations, losing track of important prompts and ideas, and getting frustrated at how difficult it was to find specific details. The hours added up, and productivity slipped away. It felt overwhelming, and I knew there had to be a better way.</p><p>But not anymore.</p><p>Then I finally came across the 𝗖𝗵𝗮𝘁𝗚𝗣𝗧 𝗧𝗼𝗼𝗹𝗯𝗼𝘅 — the ultimate solution that transformed my workflow and my experience with ChatGPT. The Toolbox has revolutionized the way I interact with ChatGPT, making everything faster, more organized, and ultimately much more efficient.</p><p>Before using the Toolbox, my ChatGPT environment was chaotic and disorganized, often hindering my productivity. Now, with this tool, I’ve managed to create a streamlined and efficient system that supports my daily tasks seamlessly. Every time I use ChatGPT, I feel in control and focused, confident that I can access exactly what I need, precisely when I need it — without any of the previous frustrations.</p><p>𝗛𝗲𝗿𝗲’𝘀 𝗵𝗼𝘄 𝗜 𝗿𝗲𝘃𝗮𝗺𝗽𝗲𝗱 𝗺𝘆 𝗖𝗵𝗮𝘁𝗚𝗣𝗧 𝗲𝘅𝗽𝗲𝗿𝗶𝗲𝗻𝗰𝗲:</p><h3>Easy Setup</h3><p>To get started, I browsed to the Chrome Store, searched for “𝗖𝗵𝗮𝘁𝗚𝗣𝗧 𝗧𝗼𝗼𝗹𝗯𝗼𝘅,” and installed it. The installation process only took a couple of seconds, and the instructions were very clear, making it simple to set up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cd84STasBwJhKy8b7vyBHw.png" /><figcaption>“Search result for ChatGPT Toolbox extension in the Chrome Web Store, showing the extension ready for installation</figcaption></figure><p>After installation, I pinned the Toolbox to my toolbar for quick access.<br>This means that whenever I need it, it’s only a click away, which saves me even more time in the long run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KHLD5a5pj5kDgakpSepgrQ.png" /><figcaption>Pin ChatGPT Toolbox to extensions bar.</figcaption></figure><p>Once installed, I opened the Toolbox and navigated to ChatGPT to see the magic happen. It integrated smoothly, and I was instantly ready to start improving my workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FrbDWDuDgHxPTueuvGdRhQ.png" /><figcaption>ChatGPT Toolbox shown inextensions bar.</figcaption></figure><p><strong>Here are its main features added to the chatGPT side-bar:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rdFTsENZq5_f_WERKgPibw.png" /><figcaption>ChatGPT Toolbox features inside chatGPT’s sidebar, providing options for managing chats, folders, prompts, and viewing search history.</figcaption></figure><h3>𝗚𝗮𝗺𝗲-𝗖𝗵𝗮𝗻𝗴𝗶𝗻𝗴 𝗙𝗲𝗮𝘁𝘂𝗿𝗲𝘀:</h3><h3>Search History</h3><p>Now I find any conversation instantly. The search feature has transformed my experience. I can even search for an ‘exact match’ to quickly find that specific term or string I’m looking for. No more losing valuable time trying to remember the right prompt or scrolling endlessly to locate the exact conversation I need. The power to instantly pull up any chat at the click of a button has made all the difference in my productivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r626T3NdBq9xXkv_imR7SQ.png" /><figcaption>ChatGPT Toolbox search history interface with the ability to search for specific API-related terms across chat conversations.</figcaption></figure><h3>Manage Chats</h3><p>Deleting and archiving chats has never been easier. I used to let my chat list grow out of control, overwhelmed by the sheer volume. With the Toolbox, I can now easily batch delete or archive old chats, keeping my workspace clean and organized. This allows me to focus more effectively on current tasks without being bogged down by unnecessary clutter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-udNj_dRhus9RWvzvv8csg.png" /><figcaption>ChatGPT Toolbox managing chats interface with features like searching, selecting, and archiving chats for better workflow.</figcaption></figure><h3>Organize with Folders</h3><p>Finally, I can neatly categorize my conversations. Whether it’s for work, creative projects, brainstorming, or personal ideas, everything now has its own place. This organization not only saves time but also helps me stay focused and keep track of different areas of my life in a more structured manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sPgJi2M2qSbenBri7xzLNw.png" /><figcaption>ChatGPT Toolbox Managing Folders</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBw1Qi4o9an-J6zE_LHAiQ.png" /><figcaption>ChatGPT Toolbox Folder’s conversations</figcaption></figure><h3>Quick Prompt Access</h3><p>Access my best prompts instantly by typing //. This feature is a really cool and powerful addition to my workflow. I have used various prompt management tools like PRM and even managed my own custom prompts in Notion DB. Yet having these prompts at my fingertips — always available and easy to customize and manage — has truly enhanced my productivity.</p><p>This feature is a game-changer when it comes to maintaining my creative flow. Instead of searching for that perfect prompt I crafted weeks ago, I can access it within seconds. It has significantly reduced interruptions in my work, allowing me to remain in the zone and maximize my output.</p><p>The ease of accessing prompts has actually driven me to actively manage my prompts here, experiment with them, and add more to keep evolving. It’s a system that encourages continuous growth and creativity.</p><p><strong>Quick Prompt Access</strong></p><p>Access my best prompts instantly by typing //. This feature is a game-changer when it comes to maintaining my creative flow. Instead of searching for that perfect prompt I crafted weeks ago, I can access it within seconds. It has significantly reduced interruptions in my work, allowing me to remain in the zone and maximize my output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Maju5MwFczIW3qFx3XrsPg.png" /><figcaption>Easy access to the prompt library inside ChatGPT Toolbox</figcaption></figure><h3>Summary of Key Features</h3><p>The addition of these features has completely revolutionized the way I use ChatGPT. Everything is more intuitive, and I no longer waste time on menial tasks like organizing or finding old conversations. Instead, I focus on what really matters — creating impactful content, brainstorming big ideas, and making progress on my projects.</p><p>Combining these features has made my work with ChatGPT 𝟭𝟬𝘅 𝗳𝗮𝘀𝘁𝗲𝗿 𝗮𝗻𝗱 𝗺𝗼𝗿𝗲 𝗲𝗻𝗷𝗼𝘆𝗮𝗯𝗹𝗲. The speed and ease that the Toolbox brings to the table are unmatched, and the improvements have not only made my interactions more productive but also more rewarding.</p><p>𝗪𝗵𝘆 𝘀𝗲𝘁𝘁𝗹𝗲 𝗳𝗼𝗿 𝗶𝗻𝗲𝗳𝗳𝗶𝗰𝗶𝗲𝗻𝗰𝘆 𝘄𝗵𝗲𝗻 𝘆𝗼𝘂 𝗰𝗮𝗻 𝘀𝘂𝗽𝗲𝗿𝗰𝗵𝗮𝗿𝗴𝗲 𝘆𝗼𝘂𝗿 𝗽𝗿𝗼𝗱𝘂𝗰𝘁𝗶𝘃𝗶𝘁𝘆?</p><p>👉 Try out <a href="https://chromewebstore.google.com/detail/chatgpt-toolbox/jlalnhjkfiogoeonamcnngdndjbneina">ChatGPT Toolbox</a> to enhance your experience.</p><p>While this isn’t my tool, I find it incredibly useful and want to support it.<br>It transformed the way I work with ChatGPT. It reduced the time I spent searching for conversations or prompts and increased my efficiency, allowing me to focus on what I want rather than wasting time looking for data.</p><p>If you found this helpful, please follow me and give it a clap!<br>Your support encourages me to keep sharing more insights like this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ea2331eb4a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Engaging Animated Maps Using ChatGPT’s Code Interpreter: A Step-by-Step Guide — Part 1]]></title>
            <link>https://medium.com/@shailelchuk/creating-engaging-animated-maps-using-chatgpts-code-interpreter-a-step-by-step-guide-part-1-da5c78c0eafe?source=rss-d076526bf0fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/da5c78c0eafe</guid>
            <dc:creator><![CDATA[ShAI Bernard Lelchuk]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 09:10:15 GMT</pubDate>
            <atom:updated>2023-07-25T09:10:15.411Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating Engaging Animated Maps Using ChatGPT’s Code Interpreter: A Step-by-Step Guide — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TQ727xr01MJcTQvf01ZyRw.png" /></figure><h4>Introduction Preface: Embarking on a Data Visualization Journey with ChatGPT’s Code Interpreter</h4><p>Welcome to a data-driven adventure that will unravel the power of data visualization in understanding the COVID-19 pandemic. In this blog post series, I will explore the fascinating world of animated maps and how ChatGPT’s innovative Code Interpreter becomes our guide on this journey.</p><h4>1. Why Data Visualization Matters</h4><p>- Raw data alone can be overwhelming, but when transformed into interactive and engaging visuals, it becomes accessible to everyone.<br>- Animated maps breathe life into COVID-19 statistics, revealing patterns, trends, and stories that words alone cannot convey.</p><h4>2. My Goal: Building an Animated Map of COVID-19 Cases</h4><p>My goal is to harness the capabilities of ChatGPT’s Code Interpreter to create compelling and dynamic visualizations that shed light on the global spread of COVID-19.</p><h4>3. The Journey Ahead</h4><p>In this blog post series, I’ll take you through the step-by-step process of building an animated map of COVID-19 cases using ChatGPT’s Code Interpreter. We’ll tackle a few challenges and limitations of Code Interpreter, and will understand what they are and how to overcome them.</p><h4>4. Stay Tuned for More</h4><p>Stay tuned for the upcoming parts of the blog post series, where we delve deeper into the coding process, Code Interpreter’s limitations and alternative solutions.</p><h4>5. Let’s Begin the Data-Driven Expedition</h4><p>Let’s begin this data-driven expedition and embrace the power of visualization to navigate the challenges of our time. Together, we can illuminate the path forward in the fight against COVID-19.</p><h4>DataSet Collection</h4><p>For this project, I utilized the ‘<a href="https://www.kaggle.com/datasets/imdevskp/corona-virus-report">COVID19 — DateSet</a>,’ a comprehensive dataset sourced from <a href="https://www.kaggle.com/">Kaggle.com</a>. Kaggle.com is renowned for hosting a diverse collection of datasets on various topics and sectors, making it an excellent resource for data-driven endeavors like mine.</p><h4>Initiating Chat with GPT4 — Chat Interpreter</h4><p>Navigate to this dataset’s page and click on Download to download the complete archive</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NrEwSBgSuNtFn_CmwG27GA.png" /></figure><p>Now, navigate to ChatGPT, Create a new chat using GPT4 — Chat Interpreter:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*thdg8H-Y1ICvEV0lXH-qCQ.png" /></figure><h4>Initial Prompt: Accessing the Dataset Archive</h4><p>Attach the downloaded dataset archive and write the following prompt:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*nsxcdyNcJp9fC9N1jIRSPg.png" /></figure><p>Code Interpreter will start its magic and will return the following response:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*md_E1C4neFupvT3mmUv6iA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*oo87zcwcp9UacBjEmSXOhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*4qxgJ46sB1eR_bQO_lSAlA.png" /></figure><h4>Finding the relevant Dataset’s data</h4><p>However, is seems like the first file it pull did not contain all the data it expected, thus it continued to the next file found in the archive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*4qxgJ46sB1eR_bQO_lSAlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lXQal8efhNDluIa3o1sjRQ.png" /></figure><h4>Now let’s work with the data</h4><p>I then asked a more specific request for the output I’ve desired:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X34xhTTrUX0oHCyhefJRnA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tk6rZ3aL4bAkZDnzJ-KV1g.png" /></figure><p><strong>Here’s the very first code it created:</strong></p><pre>import geopandas as gpd<br>from matplotlib import pyplot as plt<br>from matplotlib import colors<br>import numpy as np<br>import imageio<br>from PIL import Image<br>from io import BytesIO<br>import calendar<br># Convert the &#39;Date&#39; column to datetime format<br>df[&#39;Date&#39;] = pd.to_datetime(df[&#39;Date&#39;])<br># Sort the dataframe by date<br>df = df.sort_values(&#39;Date&#39;)<br># Create a colormap for the different types of data<br>cmap = plt.get_cmap(&quot;tab10&quot;)<br># Get the world geometry<br>world = gpd.read_file(gpd.datasets.get_path(&#39;naturalearth_lowres&#39;))<br># Get the range for the frame of the animation<br>dates = df[&#39;Date&#39;].unique()<br># Create a list to store the images for the gif<br>images = []<br>for date in dates:<br> # Filter data for the current date<br> df_date = df[df[&#39;Date&#39;] == date]<br> <br> # Group the data by country and get the sum of cases<br> df_date = df_date.groupby(&#39;Country/Region&#39;)[[&#39;Confirmed&#39;, &#39;Deaths&#39;, &#39;Recovered&#39;, &#39;Active&#39;]].sum().reset_index()<br> <br> # Merge the world geometry with the data for the current date<br> world_date = world.merge(df_date, left_on=&#39;name&#39;, right_on=&#39;Country/Region&#39;, how=&#39;left&#39;)<br> <br> # Plot the world geometry<br> fig, ax = plt.subplots(1, figsize=(20, 10))<br> ax.axis(&#39;off&#39;)<br> ax.set_title(f&#39;COVID-19 Global Spread on {calendar.month_name[date.month]} {date.day}, {date.year}&#39;, fontdict={&#39;fontsize&#39;: &#39;20&#39;, &#39;fontweight&#39; : &#39;3&#39;})<br># Plot the different types of data<br> world_date.plot(column=&#39;Confirmed&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br> missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Confirmed Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br> world_date.plot(column=&#39;Deaths&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br> missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Deaths&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br> world_date.plot(column=&#39;Recovered&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br> missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Recovered Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br> world_date.plot(column=&#39;Active&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br> missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Active Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br> <br> # Convert the plot to an image<br> img = BytesIO()<br> plt.savefig(img, format=&#39;png&#39;)<br> img.seek(0)<br> images.append(imageio.imread(img))<br># Create a gif from the images<br>imageio.mimsave(&#39;/mnt/data/covid_spread.gif&#39;, images, fps=2)<br># Close the figure<br>plt.close()</pre><h4>More modifications were required</h4><p>A few more modifications were required, so code interpreter updated them automatically:</p><pre># Reduce the resolution of the images in the gif<br>figsize = (10, 5)<br><br># Increase the time step between frames in the gif<br>dates = df[&#39;Date&#39;].unique()[::7]  # Take one date every week<br><br># Recreate the list to store the images for the gif<br>images = []<br><br>for date in dates:<br>    # Convert numpy.datetime64 to pandas.Timestamp<br>    date = pd.Timestamp(date)<br>    <br>    # Filter data for the current date<br>    df_date = df[df[&#39;Date&#39;] == date]<br>    <br>    # Group the data by country and get the sum of cases<br>    df_date = df_date.groupby(&#39;Country/Region&#39;)[[&#39;Confirmed&#39;, &#39;Deaths&#39;, &#39;Recovered&#39;, &#39;Active&#39;]].sum().reset_index()<br>    <br>    # Merge the world geometry with the data for the current date<br>    world_date = world.merge(df_date, left_on=&#39;name&#39;, right_on=&#39;Country/Region&#39;, how=&#39;left&#39;)<br>    <br>    # Plot the world geometry<br>    fig, ax = plt.subplots(1, figsize=figsize)<br>    ax.axis(&#39;off&#39;)<br>    ax.set_title(f&#39;COVID-19 Global Spread on {calendar.month_name[date.month]} {date.day}, {date.year}&#39;, fontdict={&#39;fontsize&#39;: &#39;20&#39;, &#39;fontweight&#39; : &#39;3&#39;})<br><br>    # Plot the different types of data<br>    world_date.plot(column=&#39;Confirmed&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                    missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Confirmed Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>    world_date.plot(column=&#39;Deaths&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                    missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Deaths&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>    world_date.plot(column=&#39;Recovered&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                    missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Recovered Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>    world_date.plot(column=&#39;Active&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                    missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Active Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>    <br>    # Convert the plot to an image<br>    img = BytesIO()<br>    plt.savefig(img, format=&#39;png&#39;)<br>    img.seek(0)<br>    images.append(imageio.imread(img))<br><br>    # Close the figure<br>    plt.close(fig)<br><br># Create a gif from the images<br>imageio.mimsave(&#39;/mnt/data/covid_spread.gif&#39;, images, fps=2)</pre><p><strong>Last fix to support the frames per seconds (fps) for the animated gif:</strong></p><blockquote>It appears that the fps parameter is no longer supported in the imageio.mimsave function. Instead, we should use the duration parameter, which specifies the duration of each frame in milliseconds.</blockquote><blockquote>For example, if we want 2 frames per second (fps), we would set duration = 500 milliseconds. Let&#39;s correct this and try again.</blockquote><pre># Specify the duration of each frame (500 ms, equivalent to 2 fps)<br>duration = 500<br><br># Create a gif from the images<br>imageio.mimsave(&#39;/mnt/data/covid_spread.gif&#39;, images, duration=duration)</pre><blockquote>Also, I’ll implement a process to save each frame directly to a GIF file instead of storing them all in memory and then saving them to a GIF. This should help alleviate the memory issue. Let’s proceed.</blockquote><p><strong>Here’s the output code:</strong></p><pre># Increase the time step between frames in the gif<br>dates = df[&#39;Date&#39;].unique()[::15]  # Take one date every 15 days<br><br># Create a gif file to write each frame<br>with imageio.get_writer(&#39;/mnt/data/covid_spread.gif&#39;, mode=&#39;I&#39;, duration=duration) as writer:<br>    for date in dates:<br>        # Convert numpy.datetime64 to pandas.Timestamp<br>        date = pd.Timestamp(date)<br><br>        # Filter data for the current date<br>        df_date = df[df[&#39;Date&#39;] == date]<br><br>        # Group the data by country and get the sum of cases<br>        df_date = df_date.groupby(&#39;Country/Region&#39;)[[&#39;Confirmed&#39;, &#39;Deaths&#39;, &#39;Recovered&#39;, &#39;Active&#39;]].sum().reset_index()<br><br>        # Merge the world geometry with the data for the current date<br>        world_date = world.merge(df_date, left_on=&#39;name&#39;, right_on=&#39;Country/Region&#39;, how=&#39;left&#39;)<br><br>        # Plot the world geometry<br>        fig, ax = plt.subplots(1, figsize=figsize)<br>        ax.axis(&#39;off&#39;)<br>        ax.set_title(f&#39;COVID-19 Global Spread on {calendar.month_name[date.month]} {date.day}, {date.year}&#39;, fontdict={&#39;fontsize&#39;: &#39;20&#39;, &#39;fontweight&#39; : &#39;3&#39;})<br><br>        # Plot the different types of data<br>        world_date.plot(column=&#39;Confirmed&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                        missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Confirmed Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>        world_date.plot(column=&#39;Deaths&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                        missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Deaths&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>        world_date.plot(column=&#39;Recovered&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                        missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Recovered Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>        world_date.plot(column=&#39;Active&#39;, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                        missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: &quot;Active Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br><br>        # Convert the plot to an image<br>        img = BytesIO()<br>        plt.savefig(img, format=&#39;png&#39;)<br>        img.seek(0)<br>        writer.append_data(imageio.imread(img))<br><br>        # Close the figure<br>        plt.close(fig)</pre><p><strong>STDOUT:</strong></p><pre>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/3799072642.py:38: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))</pre><h4>FINAL CODE</h4><pre># Specify the columns for which to create separate gifs<br>columns = [&#39;Confirmed&#39;, &#39;Deaths&#39;, &#39;Recovered&#39;, &#39;Active&#39;]<br><br># Create separate gifs for each column<br>for column in columns:<br>    # Create a gif file to write each frame<br>    with imageio.get_writer(f&#39;/mnt/data/covid_spread_{column.lower()}.gif&#39;, mode=&#39;I&#39;, duration=duration) as writer:<br>        for date in dates:<br>            # Convert numpy.datetime64 to pandas.Timestamp<br>            date = pd.Timestamp(date)<br><br>            # Filter data for the current date<br>            df_date = df[df[&#39;Date&#39;] == date]<br><br>            # Group the data by country and get the sum of cases<br>            df_date = df_date.groupby(&#39;Country/Region&#39;)[[column]].sum().reset_index()<br><br>            # Merge the world geometry with the data for the current date<br>            world_date = world.merge(df_date, left_on=&#39;name&#39;, right_on=&#39;Country/Region&#39;, how=&#39;left&#39;)<br><br>            # Plot the world geometry<br>            fig, ax = plt.subplots(1, figsize=figsize)<br>            ax.axis(&#39;off&#39;)<br>            ax.set_title(f&#39;COVID-19 {column} Cases on {calendar.month_name[date.month]} {date.day}, {date.year}&#39;, fontdict={&#39;fontsize&#39;: &#39;20&#39;, &#39;fontweight&#39; : &#39;3&#39;})<br><br>            # Plot the data<br>            world_date.plot(column=column, cmap=cmap, linewidth=0.8, ax=ax, edgecolor=&#39;0.8&#39;, legend=True, <br>                            missing_kwds={&#39;color&#39;: &#39;lightgrey&#39;}, legend_kwds={&#39;label&#39;: f&quot;{column} Cases&quot;, &#39;orientation&#39;: &quot;horizontal&quot;})<br>            <br>            # Convert the plot to an image<br>            img = BytesIO()<br>            plt.savefig(img, format=&#39;png&#39;)<br>            img.seek(0)<br>            writer.append_data(imageio.imread(img))<br><br>            # Close the figure<br>            plt.close(fig)</pre><p><strong>Console Output — STDOUT:</strong></p><pre> writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))<br>/tmp/ipykernel_115/34031054.py:34: DeprecationWarning: Starting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.<br>  writer.append_data(imageio.imread(img))</pre><h3><strong>FINAL OUTPUT</strong></h3><blockquote>I have successfully created four animated GIFs that show the spread of Confirmed, Deaths, Recovered, and Active cases of COVID-19 over time globally. You can download them using the following links:</blockquote><blockquote>- COVID-19 Confirmed Cases Spread</blockquote><blockquote>- COVID-19 Deaths Spread</blockquote><blockquote>- COVID-19 Recovered Cases Spread</blockquote><blockquote>- COVID-19 Active Cases Spread</blockquote><blockquote>Please note that each GIF shows the spread of a single type of data (either Confirmed, Deaths, Recovered, or Active cases), as it was not feasible to show all four data types on a single GIF due to the complexity and large size of the images.</blockquote><h4>FINAL OUTPUT: Animated COVID-19 Data Visualizations on World Map</h4><p><strong>1. Animated GIF: COVID-19 Confirmed Cases Over Time</strong><br>In this visualization, we present the spread of COVID-19 confirmed cases across the world over time. The world map is color-coded to represent the intensity of cases, with darker shades indicating higher infection rates. As time progresses, the animation shows how the pandemic spreads to different countries and continents. This visualization provides a powerful overview of the global impact of the virus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*epxSgg4MgJ42LN4XgeG56w.gif" /></figure><p><strong>2. Animated GIF: COVID-19 Recovered Cases Over Time</strong><br>This visualization focuses on the recovery data, illustrating the regions where COVID-19 recoveries have been reported. The animated map showcases the areas that are successfully managing to overcome the virus and highlights the positive efforts of healthcare systems worldwide. The color scheme is consistent with the previous visualization for easy comparison.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*Fo1NqrqNoTvXkYx5E_H-LQ.gif" /></figure><p><strong>3. Animated GIF: COVID-19 Death Cases Over Time</strong><br>Tragically, this visualization portrays the distribution of COVID-19 death cases across the globe over time. The map employs matching colors to indicate the severity of the loss in each region. As the animation plays, it becomes evident how the pandemic has affected different parts of the world, emphasizing the importance of collective efforts to combat the virus.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*QSJJohPpuJzvk2HxADnr0g.gif" /></figure><p><strong>4. Animated GIF: COVID-19 Active Cases Over Time</strong><br>Unfortunately, the animated GIF for COVID-19 active cases over time was not successfully saved due to an unexpected shutdown of the code interpreter.</p><h4>Closing Chapter: Evaluating Code Interpreter’s Successes and Limitations</h4><p>In conclusion, the Code Interpreter proved to be a powerful tool, allowing me to generate animated maps based on the dataset data, which is undeniably impressive. However, it’s essential to address both the positive outcomes and the limitations encountered during the process.</p><p>On the positive side, the animated maps provided valuable insights into the global spread of COVID-19, enhancing our understanding of the pandemic’s impact over time. The visualization showcased patterns, trends, and hotspots, offering a compelling visual narrative.</p><p>Despite these successes, one notable limitation was the <strong>resolution</strong> of the animated maps, which turned out to be <strong>lower</strong> than expected.<br>This diminished the level of detail, which can be critical when analyzing complex data. Understanding these limitations is crucial to seeking further improvements in subsequent projects.</p><h4>Beyond Boundaries: Seeking Solutions to Code Interpreter’s Limitations — Part 2</h4><p>As we move forward, I invite you to join me in Part 2 of this journey. We will delve deeper into my experiences with ChatGPT’s Code Interpreter, examining its capabilities and areas where it falls short. By gaining a better understanding of its limitations, we can discover alternative tools and approaches to enhance our data visualization endeavors.</p><p>We will explore additional resources and tools that complement the Code Interpreter’s strengths and address its weaknesses. By embracing a diverse set of tools and methodologies, we can unlock even greater potential in our pursuit of insights and understanding.</p><p>So, stick around for Part 2. We’ll explore new territories and navigate ways to amplify the potential of data visualization. Ready for more exploration and innovation? Let’s keep moving forward together!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da5c78c0eafe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DoorDash Marketshare Analysis And Forecasts | by Shai Bernard Lelchuk]]></title>
            <link>https://medium.com/@shailelchuk/doordash-marketshare-analysis-and-forecasts-by-shai-bernard-lelchuk-1f2b11232285?source=rss-d076526bf0fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f2b11232285</guid>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[chatgpt4]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[notable]]></category>
            <category><![CDATA[food-delivery]]></category>
            <dc:creator><![CDATA[ShAI Bernard Lelchuk]]></dc:creator>
            <pubDate>Mon, 12 Jun 2023 07:15:46 GMT</pubDate>
            <atom:updated>2023-06-12T08:59:19.993Z</atom:updated>
            <content:encoded><![CDATA[<h3>DoorDash — Advanced chatGPT AI-Powered Review &amp; Analysis of Food-Delivery Marketshare and Competition</h3><h4>by ShAI Bernard Lelchuk</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fJiu27jAzqED-ympeHdW8g.jpeg" /><figcaption>Food Delivery</figcaption></figure><p>This <a href="https://lnkd.in/dEkMdM7J">Notebook</a> was inspired by a <a href="https://www.linkedin.com/search/results/content/?keywords=doordash&amp;origin=SWITCH_SEARCH_VERTICAL&amp;sid=PQ1">Linkedin post</a> written by <a href="https://www.linkedin.com/in/tom-alder?miniProfileUrn=urn%3Ali%3Afs_miniProfile%3AACoAACYYev8BuPds4uEFz0WZj4pwEGsebB13MDg&amp;lipi=urn%3Ali%3Apage%3Ad_flagship3_search_srp_content%3Bziz%2F5F0gQMumVPW3dbVHAw%3D%3D">Tom Alder</a>.</p><p><strong>Tools used for this research:</strong></p><ul><li><a href="https://openai.com/gpt-4">ChatGPT 4</a></li><li>ChatGPT Plugins: <a href="https://gptstore.ai/plugins/voxscript-awt-icu">VoxScript</a> and <a href="https://gptstore.ai/plugins/chat-noteable-io">Noteable</a></li><li><a href="https://noteable.io/">Noteable</a> Python Notebook</li></ul><p>In this notebook, we will analyze how <a href="https://www.doordash.com/">Doordash</a>, a popular food delivery company, managed to increase its market share from 5% (2016) to 65% (2022). We will look into various factors that contributed to this growth and visualize the data using charts. We will also delve into some exciting and lesser-known facts and stories around this significant turnover.</p><h3>Analysis of Top Food Delivery Companies</h3><p>In this notebook, we will perform an analysis of the top food delivery companies in the US, focusing on DoorDash, Uber Eats, Postmates, and Grubhub. We will gather data about these companies, including their market shares, growth strategies, and other relevant information. We will then visualize this data to gain insights into the competitive landscape of the food delivery market.</p><p>Please note that the data used in this notebook is gathered from various online sources and may not be entirely accurate or up-to-date. For precise analysis, access to the actual data from these companies would be required.</p><pre>import pandas as pd<br>import matplotlib.pyplot as plt<br>import seaborn as sns<br>from datetime import datetime<br><br># Historical price data of DoorDash (DASH)<br>data = {<br>    &#39;date&#39;: [&#39;2020-10-01&#39;, &#39;2021-01-01&#39;, &#39;2021-04-01&#39;, &#39;2021-07-01&#39;, &#39;2021-10-01&#39;, &#39;2022-01-01&#39;, &#39;2022-04-01&#39;, &#39;2022-07-01&#39;, &#39;2022-10-01&#39;, &#39;2023-01-01&#39;, &#39;2023-04-01&#39;],<br>    &#39;volume&#39;: [97201056, 201654307, 238119735, 177395952, 197153930, 371982816, 372325572, 355338343, 343086127, 305457887, 165181295],<br>    &#39;vwap&#39;: [166.2333, 165.4195, 146.9967, 195.9674, 189.9272, 106.3774, 75.8182, 68.3345, 51.5995, 58.3481, 64.08],<br>    &#39;open&#39;: [182.0, 142.5, 136.88, 179.36, 208.46, 149.61, 118.8, 65.05, 49.73, 49.98, 62.5],<br>    &#39;close&#39;: [142.75, 131.13, 178.33, 205.98, 148.9, 117.19, 64.17, 49.45, 48.82, 63.56, 70.15],<br>    &#39;high&#39;: [195.5, 256.09, 184.28, 227.4, 257.2499, 152.495, 130.2, 87.0, 65.49, 70.13, 71.76],<br>    &#39;low&#39;: [135.38, 121.0, 110.13, 163.15, 139.0, 74.3201, 56.67, 48.94, 41.365, 45.932, 56.59]<br>}<br><br># Convert the data into a pandas DataFrame<br>df = pd.DataFrame(data)<br><br># Convert the date column to datetime format<br>df[&#39;date&#39;] = pd.to_datetime(df[&#39;date&#39;])<br><br># Set the date column as the index<br>df.set_index(&#39;date&#39;, inplace=True)<br><br># Display the DataFrame<br>df</pre><pre>import matplotlib.pyplot as plt<br>import pandas as pd<br><br># Assuming you have already loaded the DataFrame &#39;df&#39; with the necessary data<br># Convert the data into a pandas DataFrame<br>df = pd.DataFrame(data)<br><br># Convert the date column to datetime format<br>df[&#39;date&#39;] = pd.to_datetime(df[&#39;date&#39;])<br><br># Set the date column as the index<br>df.set_index(&#39;date&#39;, inplace=True)<br><br># Display the DataFrame<br>df<br><br># Plot the volume and closing price of DoorDash (DASH)<br>fig, ax1 = plt.subplots()<br><br>color = &#39;tab:red&#39;<br>ax1.set_xlabel(&#39;Date&#39;)<br>ax1.set_ylabel(&#39;Volume&#39;, color=color)<br>ax1.plot(df.index, df[&#39;volume&#39;], color=color)<br>ax1.tick_params(axis=&#39;y&#39;, labelcolor=color)<br><br>ax2 = ax1.twinx()<br>color = &#39;tab:blue&#39;<br>ax2.set_ylabel(&#39;Close&#39;, color=color)<br>ax2.plot(df.index, df[&#39;close&#39;], color=color)<br>ax2.tick_params(axis=&#39;y&#39;, labelcolor=color)<br><br>fig.tight_layout()<br>plt.title(&#39;DoorDash (DASH) Volume and Closing Price&#39;)<br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*TaNuABVDAV4SztqyYxZ1HQ.png" /></figure><h3>DoorDash and its Competitors in the US Food Market</h3><p>This notebook aims to provide an in-depth analysis of DoorDash and its competitors in the US food delivery market. The analysis is based on data and insights gathered from various online resources.</p><h4>Data Sources</h4><ol><li><a href="https://www.similarweb.com/website/doordash.com/">SimilarWeb — DoorDash</a></li><li><a href="https://secondmeasure.com/datapoints/food-delivery-services-grubhub-uber-eats-doordash-postmates/">Second Measure — Food Delivery Services</a></li><li><a href="https://www.statista.com/statistics/1235724/market-share-us-food-delivery-companies/">Statista — US Food Delivery Companies Market Share</a></li><li><a href="https://foodondemand.com/04272023/doordash-doubles-u-s-market-share-in-four-years/">Food On Demand — DoorDash Doubles U.S. Market Share</a></li><li><a href="https://www.businessofapps.com/data/food-delivery-app-market/">Business of Apps — Food Delivery App Market</a></li></ol><h4>Key Insights</h4><ol><li>DoorDash dominates the online food delivery market in the United States with a market share of 65% as of February 2023.</li><li>Uber Eats holds the second highest share with 23%.</li><li>The food delivery industry is expected to grow to $165 billion by 2029.</li><li>The entire food delivery app industry is expected to reach $165 billion market size by 2029.</li><li>Uber Eats is the most popular food delivery app.</li><li>Delivery Hero has the most collective users.</li><li>In the US, DoorDash is the most popular food delivery app with over 50% market share.</li><li>Delivery Hero is once again ahead in total app downloads.</li><li>The food delivery market has seen significant growth over the past five years, led by platform-to-consumer services such as DoorDash and Uber Eats.</li><li>COVID-19 has propelled the industry a few years into the future as millions of people in lockdown ordered food online for the first time.</li></ol><p>In the following sections, we will dive deeper into these insights and provide a more detailed analysis.</p><h4>DoorDash Market Share Analysis</h4><h4>Interesting Facts and Stories about DoorDash’s Growth</h4><ol><li>DoorDash is the biggest food delivery service in the USA, posting record revenues in 2020 and 2021 as a direct result of the COVID-19 pandemic, all despite huge controversies surrounding their treatment and payment of delivery drivers and merchant restaurants. <a href="https://thrivemyway.com/doordash-stats/">source</a></li><li>In the fourth quarter ended Dec. 31, higher-than-expected consumer retention and new customer growth helped DoorDash’s revenue jump 34% to $1.30 billion and beat estimates of $1.28 billion. <a href="https://www.reuters.com/business/doordash-beats-revenue-estimates-sustained-demand-food-delivery-2022-02-16/">source</a></li><li>DoorDash, which went public amid a pandemic-fueled delivery craze in late 2020, said its business continues to boom even as people increasingly return to their lives outside the home. <a href="https://www.cnn.com/2022/05/05/tech/doordash-q1-earnings/index.html">source</a></li><li>DoorDash’s transaction data shows that in April 2023, DoorDash and its subsidiary Caviar earned 65 percent of U.S. consumers’ meal delivery sales. DoorDash made its public market debut with one of the biggest IPOs of 2020, and has accounted for an increasing percentage of market share during the COVID-19 pandemic. <a href="https://secondmeasure.com/datapoints/food-delivery-services-grubhub-uber-eats-doordash-postmates/">source</a></li></ol><h4>Analysis of the Food Delivery Market Competitors and Their Market Share from 2016 to 2023</h4><pre># Market share data<br>data = {<br>    &#39;year&#39;: [2016,2017, 2018, 2019, 2020, 2021, 2022],<br>    &#39;DoorDash&#39;: [5, 8, 15, 30 ,45, 57, 65],<br>    &#39;Uber Eats&#39;: [5 , 13, 24, 32, 22, 26, 25],<br>    &#39;Grubhub&#39;: [70, 50, 37, 20, 18, 16, 9],<br>    &#39;Postmates&#39;: [3, 13, 9, 11, 8,0,0]<br>}<br><br># Convert the data into a pandas DataFrame<br>df_market_share = pd.DataFrame(data)<br><br># Set the year column as the index<br>df_market_share.set_index(&#39;year&#39;, inplace=True)<br><br># Display the DataFrame<br>df_market_share</pre><pre>import pandas as pd<br><br># Market share data<br>data = {<br>    &#39;year&#39;: [2016, 2017, 2018, 2019, 2020, 2021, 2022],<br>    &#39;DoorDash&#39;: [5, 8, 15, 30, 45, 57, 65],<br>    &#39;Uber Eats&#39;: [5, 13, 24, 32, 22, 26, 25],<br>    &#39;Grubhub&#39;: [70, 50, 37, 20, 18, 16, 9],<br>    &#39;Postmates&#39;: [3, 13, 9, 11, 8, 0, 0]<br>}<br><br># Convert the data into a pandas DataFrame<br>df_market_share = pd.DataFrame(data)<br><br># Set the year column as the index<br>df_market_share.set_index(&#39;year&#39;, inplace=True)<br><br># Display the DataFrame<br>df_market_share<br><br># Plot the market analysis data<br>df_market_share.plot(kind=&#39;line&#39;, figsize=(10, 7))<br><br>plt.title(&#39;Food Delivery Market Analysis&#39;)<br>plt.xlabel(&#39;Year&#39;)<br>plt.ylabel(&#39;Revenue (in billions)&#39;)<br>plt.legend(title=&#39;Companies&#39;)<br><br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*zF1x9V0a9IpHv-5bQMFk7A.png" /></figure><pre># Plot the further analysis data<br>df_market_share.plot(kind=&#39;line&#39;, figsize=(10, 7))<br><br>plt.title(&#39;Further DoorDash Analysis&#39;)<br>plt.xlabel(&#39;Year&#39;)<br>plt.ylabel(&#39;Revenue (in billions)&#39;)<br>plt.legend(title=&#39;Companies&#39;)<br><br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*fult2Cggl1tmS-XKWk-LmA.png" /></figure><pre>import matplotlib.pyplot as plt<br><br># Plot the market share data<br>df_market_share.plot(kind=&#39;bar&#39;, stacked=True, figsize=(10, 7))<br><br>plt.title(&#39;Food Delivery Market Share&#39;)<br>plt.xlabel(&#39;Year&#39;)<br>plt.ylabel(&#39;Market Share (%)&#39;)<br>plt.legend(title=&#39;Companies&#39;)<br><br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*m2Sa975w12sX9mddMJ-9Qw.png" /></figure><h4>DoorDash Market Analysis</h4><h4>Further Analysis on DoorDash</h4><pre># Further analysis data<br>data = {<br>    &#39;year&#39;: [2018, 2019, 2020, 2021, 2022, 2023],<br>    &#39;active_users&#39;: [10, 15, 20, 25, 30, 35],<br>    &#39;orders&#39;: [20, 30, 40, 50, 60, 70],<br>    &#39;revenue&#39;: [1.7, 2.3, 2.9, 3.6, 4.5, 5.4]<br>}<br><br># Convert the data into a pandas DataFrame<br>df_further_analysis = pd.DataFrame(data)<br><br># Set the year column as the index<br>df_further_analysis.set_index(&#39;year&#39;, inplace=True)<br><br># Display the DataFrame<br>df_further_analysis</pre><pre># Further analysis data<br>data = {<br>    &#39;year&#39;: [2018, 2019, 2020, 2021, 2022, 2023],<br>    &#39;active_users&#39;: [10, 15, 20, 25, 30, 35],<br>    &#39;orders&#39;: [20, 30, 40, 50, 60, 70],<br>    &#39;revenue&#39;: [1.7, 2.3, 2.9, 3.6, 4.5, 5.4]<br>}<br><br># Convert the data into a pandas DataFrame<br>df_further_analysis = pd.DataFrame(data)<br><br># Set the year column as the index<br>df_further_analysis.set_index(&#39;year&#39;, inplace=True)<br># Plot the further analysis data<br>df_further_analysis.plot(kind=&#39;line&#39;, figsize=(10, 7))<br><br>plt.title(&#39;Further Analysis on DoorDash&#39;)<br>plt.xlabel(&#39;Year&#39;)<br>plt.ylabel(&#39;Value&#39;)<br>plt.legend(title=&#39;Metrics&#39;)<br><br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*hPw5fBveSDia58Jsw9dV3g.png" /></figure><h4>Market Share of Top 5 Food Delivery Companies in the US (2018–2023)</h4><p>Based on the information gathered, here are some key points about the market share of the top 5 food delivery companies in the US from 2018 to 2023:</p><ul><li><strong>Grubhub:</strong> In 2018, Grubhub held 34 percent of the total food delivery market in the United States. However, its market share was predicted to decrease to 29 percent.</li><li><strong>DoorDash:</strong> DoorDash increased its market share from under 20 percent in 2018 to 53 percent in 2021. In April 2023, DoorDash’s market share was 65 percent.</li><li><strong>Seamless:</strong> Seamless is a part of Grubhub, so it’s challenging to find separate data for this company.</li><li><strong>Uber Eats:</strong> Uber Eats held the second-highest share of the U.S. food delivery market in 2018. In April 2023, Uber’s total market share was 25 percent.</li><li><strong>Instacart:</strong> A recent report forecasts Instacart’s market share at 21.8% in 2023.</li></ul><p>Now, let’s create a hypothetical dataset representing the market share of these companies from 2018 to 2023 and visualize this data using a line plot. Please note that this is a hypothetical dataset and may not represent the actual figures. For accurate analysis, we would need access to the real data.</p><h4>Food Delivery Revenue by Country 2022 ($bn)</h4><p>The table below shows the food delivery revenue by country in 2022. China leads the way with $42.5 billion, followed by the United States with $17.1 billion. Europe and the United Kingdom also have significant revenues, with $10.4 billion and $6.9 billion respectively. Other regions such as Southeast Asia, South America, and India also contribute to the global food delivery revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*LKfNNTGjReSfUQDYHlTqXQ.png" /></figure><pre>import matplotlib.pyplot as plt<br>colors = [&#39;#003f5c&#39;,&#39;#58508d&#39;,&#39;#bc5090&#39;,&#39;#ff6361&#39;,&#39;#ffa600&#39;]<br>countries = [&#39;China&#39;, &#39;United States&#39;, &#39;Europe&#39;, &#39;United Kingdom&#39;, &#39;Southeast Asia&#39;, &#39;South America&#39;, &#39;India&#39;]<br>revenue = [42.5, 17.1, 10.4, 6.9, 3.5, 2.7, 1]<br><br>plt.figure(figsize=(10, 6))<br>plt.barh(countries, revenue, color=colors)<br>plt.xlabel(&#39;Revenue ($bn)&#39;)<br>plt.title(&#39;Food Delivery Revenue by Country 2022 ($bn)&#39;)<br>plt.gca().invert_yaxis()<br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*luEm3BGh1Z0toXbdUeX4oQ.png" /></figure><h4>Projected Food Delivery Market Size</h4><p>The food delivery industry is expected to grow to $165 billion by 2029. It saw its largest growth in five years in 2020 due to the coronavirus pandemic. The table below shows the projected food delivery market size from 2022 to 2029.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*LxTOvY8eMwc9DopRMAn0cg.png" /></figure><pre>years = list(range(2023, 2030))<br>market_size = [100, 112, 117, 127, 138, 151, 165]<br>colors = [&#39;#003f5c&#39;,&#39;#58508d&#39;,&#39;#bc5090&#39;,&#39;#ff6361&#39;,&#39;#ffa600&#39;]<br><br>plt.figure(figsize=(10, 6))<br>plt.bar(years, market_size, color=colors)<br>plt.xlabel(&#39;Year&#39;)<br>plt.ylabel(&#39;Market Size ($bn)&#39;)<br>plt.title(&#39;Projected Food Delivery Market Size 2022 to 2029 ($bn)&#39;)<br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*lFawW4jyehdePxjkXg5Idg.png" /></figure><h4>Food Delivery Users by App 2022 (mm)</h4><p>Different food delivery apps have varying numbers of active users. Delivery Hero, through its subsidiary brands which include foodpanda, Glovo, PedidosYa, tabalat and Beamin, has the most active users. Uber Eats has the highest single app users, outside of China.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*oqQiOLrTW61UdM5rCULtjQ.png" /></figure><pre>import matplotlib.cm as cm<br><br>cmap = cm.get_cmap(&#39;tab20&#39;)  # &#39;tab20&#39; is a colormap with 20 colors<br># Generate colors from the colormap<br>colors = [cmap(i) for i in range(len(apps))]<br><br>apps = [&#39;Delivery Hero&#39;, &#39;Just Eat&#39;, &#39;Uber Eats&#39;, &#39;Dominos&#39;, &#39;Zomato&#39;, &#39;Swiggy&#39;, &#39;DoorDash&#39;, &#39;Grab&#39;, &#39;iFood&#39;, &#39;Instacart&#39;, &#39;Rappi&#39;, &#39;Getir&#39;, &#39;Deliveroo&#39;, &#39;GoPuff&#39;, &#39;Wolt&#39;]<br>users = [118, 90, 85, 51, 48, 45.5, 32, 25.5, 23, 13, 12, 8, 7.4, 6, 4]<br># Create a colormap<br><br># plot<br>plt.figure(figsize=(10, 8))<br>plt.barh(apps, users, color=colors)<br>plt.xlabel(&#39;Users (mm)&#39;)<br>plt.title(&#39;Food Delivery Users by App 2022 (mm)&#39;)<br>plt.gca().invert_yaxis()<br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*9pOFLj_lBbMWhivZpwqlFw.png" /></figure><h4>US Food Delivery Market Share 2016 to 2022 (%)</h4><p>In the United States, the second largest market for food delivery, DoorDash has pulled ahead of the competition. In 2020, it had 65 percent of the market share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*mA5ivKImzFrlEIGrEN3MrQ.png" /></figure><h4>US Food Delivery Market Share 2016 to 2022 (%)</h4><p>In the United States, the second largest market for food delivery, DoorDash has pulled ahead of the competition. In 2020, it had 65 percent of the market share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*mA5ivKImzFrlEIGrEN3MrQ.png" /></figure><pre>import numpy as np<br><br>years = list(range(2016, 2023))<br>grubhub = [70, 50, 37, 20, 18, 16, 9]<br>uber_eats = [5, 13, 24, 32, 22, 26, 25]<br>postmates = [3, 13, 9, 11, 8, np.nan, np.nan]<br>doordash = [5, 8, 15, 30, 45, 57, 65]<br><br>plt.figure(figsize=(10, 6))<br>plt.plot(years, grubhub, marker=&#39;o&#39;, label=&#39;Grubhub&#39;)<br>plt.plot(years, uber_eats, marker=&#39;o&#39;, label=&#39;Uber Eats&#39;)<br>plt.plot(years, postmates, marker=&#39;o&#39;, label=&#39;Postmates&#39;)<br>plt.plot(years, doordash, marker=&#39;o&#39;, label=&#39;DoorDash&#39;)<br>plt.xlabel(&#39;Year&#39;)<br>plt.ylabel(&#39;Market Share (%)&#39;)<br>plt.title(&#39;US Food Delivery Market Share 2016 to 2022 (%)&#39;)<br>plt.legend()<br>plt.grid(True)<br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*ZpJ4eY4F37YblG1k1Tp6Lw.png" /></figure><h4>Food Delivery App Downloads 2022 (mm)</h4><p>The number of app downloads is a good indicator of the popularity and reach of a food delivery service. In 2022, Delivery Hero led the pack in total app downloads, although Zomato had the most single app downloads with 55 million.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*44-qQZxykDi-3aoqystgyQ.png" /></figure><pre>import matplotlib.cm as cm<br><br>cmap = cm.get_cmap(&#39;tab20&#39;)  # &#39;tab20&#39; is a colormap with 20 colors<br># Generate colors from the colormap<br>colors = [cmap(i) for i in range(len(apps))]<br><br># data<br>apps = [&#39;Delivery Hero&#39;, &#39;Zomato&#39;, &#39;Uber Eats&#39;, &#39;DoorDash&#39;, &#39;Swiggy&#39;, &#39;Just Eat Takeaway&#39;, &#39;iFood&#39;, &#39;Getir&#39;, &#39;Deliveroo&#39;, &#39;Instacart&#39;, &#39;GoPuff&#39;]<br>downloads = [60.9, 55.8, 48.6, 36.8, 34.9, 24.9, 18.6, 17.5, 11.6, 10, 5.3]<br><br>plt.figure(figsize=(10, 8))<br>plt.barh(apps, downloads, color=colors)<br>plt.xlabel(&#39;Downloads (mm)&#39;)<br>plt.title(&#39;Food Delivery App Downloads 2022 (mm)&#39;)<br>plt.gca().invert_yaxis()<br>plt.show()</pre><figure><img alt="png" src="https://cdn-images-1.medium.com/proxy/1*r7wvNLIlxKVQPYVxjGi9CQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f2b11232285" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ChatGPT-AI Progress hindered by Data Discrepancies: A close look at the problem and solutions]]></title>
            <link>https://medium.com/@shailelchuk/ai-progress-hindered-by-data-discrepancies-a-close-look-at-the-problem-and-solutions-a5e85c137288?source=rss-d076526bf0fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5e85c137288</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[bias-in-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[ShAI Bernard Lelchuk]]></dc:creator>
            <pubDate>Wed, 11 Jan 2023 09:20:53 GMT</pubDate>
            <atom:updated>2023-01-12T20:58:59.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jN6Ay2xX3O704zCjc9kFWQ.png" /></figure><h3>Introduction</h3><p>Artificial intelligence (AI) is increasingly being used in various industries, from healthcare to finance, to make decisions and predictions. However, as the reliance on AI systems grows, it’s important to consider the potential for data discrepancies and biases that can affect the accuracy and fairness of the results. In this article, we will explore the different types of data discrepancies that can occur in AI systems and their potential impacts on the decision-making process. We will also discuss some of the ways that data scientists and practitioners can address these issues to ensure that AI systems are reliable and unbiased.</p><h3>Types of Data Discrepancies</h3><p>Data discrepancies in AI systems can occur for a variety of reasons. One of the most common causes is the presence of missing or inconsistent data. For example, if an AI system is trained on a dataset that contains missing values or inconsistent formatting, it may struggle to make accurate predictions or decisions. This can be especially problematic in applications such as healthcare, where a single missing piece of information could have serious consequences.</p><p>Another type of data discrepancy that can occur in AI systems is bias. Bias can be introduced into an AI system in a number of ways, such as through the data used to train the model or through the way the model is designed. For example, if an AI system is trained on a dataset that is not representative of the population it is intended to serve, it may make decisions that are unfair or discriminatory. Similarly, if an AI system is designed to make decisions based on certain characteristics, such as race or gender, it may perpetuate existing biases and discrimination.</p><h3>Mitigating Data Discrepancies</h3><p>To mitigate data discrepancies and biases in AI systems, data scientists and practitioners need to be vigilant when collecting, cleaning, and preparing data for use in AI models. They should also be mindful of the potential for bias when designing the model and take steps to ensure that the model is fair and unbiased. Some techniques that can be used to address data discrepancies and biases include data cleaning, data normalization, feature selection, and regularization. Additionally, it’s important to continuously monitor the performance of AI systems to identify and address data discrepancies and biases as they arise.</p><p>Another aspect of data discrepancy that can affect the performance of AI models is concept drift. Concept drift occurs when the underlying distribution of the data changes over time, making the AI model’s predictions or decisions less accurate. This can happen in a variety of ways, such as through changes in the population being served, shifts in societal attitudes, or even due to natural disasters. Concept drift can be especially challenging in applications such as finance, healthcare, and transportation, where changes can have significant impacts on the performance of the AI model.</p><p>To address concept drift, it’s important to regularly evaluate the performance of AI systems and update the model if necessary. This can be done through techniques such as online learning, where the model is updated as new data becomes available, or through active learning, where human experts are involved in the model selection process.</p><p>Another strategy is to use ensemble models, where multiple models are combined to make predictions, which can help to reduce the impact of data discrepancies and concept drift. In addition, monitoring and visualization techniques can be used to detect concept drift, providing data scientists and practitioners with the information they need to take corrective action.</p><p>Errors in datasets and incorrect labeling of data can also lead to data discrepancies in AI systems. Datasets may contain errors due to data entry mistakes, inaccuracies in data collection, or inconsistencies in data formatting. These errors can lead to inaccuracies in the predictions or decisions made by the AI model, making it important for data scientists and practitioners to thoroughly clean and validate the data before using it to train an AI model.</p><p>Additionally, incorrect labeling of data can lead to inaccuracies in the predictions or decisions made by the AI model. For example, if a dataset is incorrectly labeled, the AI model may be trained on data that does not accurately represent the population it is intended to serve. This can lead to inaccuracies in the predictions or decisions made by the AI model, and perpetuate existing biases and discrimination.</p><p>To address errors in datasets and incorrect labeling of data, data scientists and practitioners need to have an effective process of data annotation, which would include:</p><ul><li>Defining clear guidelines and protocols for data annotation.</li><li>Training the annotators on the guidelines, the task and examples of the data</li><li>Monitoring and quality controlling the annotation process</li><li>Having a mechanism to correct and validate the data</li><li>Keeping track of the statistics of the annotation process</li></ul><p>By taking these steps, data scientists and practitioners can ensure that the datasets used to train AI models are accurate and unbiased, and that the data labeling is correct. Additionally, if errors are found in the dataset or data labeling, they can be corrected promptly to minimize the impact on the performance of the AI model.</p><h3>Data discrepancies on ChatGPT</h3><p>ChatGPT is a language model developed by OpenAI, which is trained on a large corpus of text data to generate human-like text. Like any AI model, ChatGPT is also susceptible to data discrepancies and biases that can affect its performance. However, the training process and architecture of ChatGPT have been specifically designed to mitigate some of these issues.</p><p>One of the key features of ChatGPT is that it uses a transformer-based architecture, which allows the model to effectively process large amounts of data and generate more coherent and fluent text. This can be especially useful when dealing with data discrepancies, as the model is able to process a larger dataset and potentially identify and correct errors or inconsistencies in the data.</p><p>Additionally, ChatGPT is trained on a diverse dataset of text from various sources, including books, articles, and online platforms. This allows the model to develop a broader understanding of the language and the ability to generate text that is more coherent and human-like. Additionally, the training data is pre-processed and cleaned, to ensure that it is free of errors and inconsistencies, that can lead to data discrepancies.</p><p>In terms of addressing bias, the training data of ChatGPT is diverse and includes a range of different perspectives and topics. The model also is not designed to make decisions based on certain characteristics, such as race or gender, which can help to reduce the potential for bias in the generated text. However, it’s not a 100% guarantee that the model will not generate biased text as the model is only as unbiased as the data it is trained on.</p><p>It is possible that data discrepancies and biases could occur in the output generated by ChatGPT, as the model is only as good as the data it is trained on, and biases present in the training data could be present in the generated text.</p><p>However, since ChatGPT is trained on a diverse dataset, it’s less likely to generate text that contains obvious biases and data discrepancies. Additionally, its training process and architecture have been specifically designed to reduce the potential for bias in the generated text.</p><p>As users of ChatGPT, there are several ways we can help identify biases and data discrepancies in the output generated by the model, and contribute to its improvement:</p><ol><li>Monitor and evaluate the output: When using ChatGPT, it’s important to monitor the generated text and evaluate it for biases or data discrepancies. If any are identified, it’s a good practice to flag them and report them to OpenAI.</li><li>Use diverse input: When using ChatGPT, providing it with diverse input in terms of context, style, etc, can help to identify any biases or data discrepancies that may exist in the model.</li><li>Provide feedback to OpenAI: OpenAI encourages users to report any issues or concerns about the output generated by ChatGPT, and provide feedback on how to improve the model.</li><li>Help contribute to the training dataset: If you are interested, you can also contribute to the training dataset of ChatGPT by providing high-quality text data to OpenAI which will be used to improve the model.</li><li>By monitoring and evaluating the output, providing diverse input, providing feedback and contributing to the training dataset, as users we can help OpenAI identify and address any biases or data discrepancies that may exist in ChatGPT and continuously improve the model.</li></ol><h3>Tracing the roots of the data discrepancy problem: My personal journey of discovery in the world of AI</h3><p>As I recently joined several communities focused on chatGPT, I came across a number of intriguing posts from its members. One in particular caught my attention and sparked my curiosity. And thus, my journey began</p><p>The user Dan Ruse posed the question on ChatGPT FB Group:</p><blockquote>“Why is ChatGPT so poor at tasks like this and how can I prompt it correctly?”</blockquote><p>This prompted a number of responses from other community members who also shared their disappointment and amusement at the model’s inability to perform a seemingly simple task, such as identifying the letter “X” in the word “banana</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1MV8MByWI2h9F0ijnUtNQ.png" /></figure><p>Thus, my journey began. I initiated a new conversation with chatGPT in order to replicate the reported issue that Dan had posted on the community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*QZvw7PWYD-xhLbUNTdDBUA.png" /></figure><p>I asked chatGPT for the 3rd letter — here’s its reply:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UDbc81jnCQJsa1lwjidWLw.png" /></figure><p>I then asked chatGPT for the 5th letter — here’s its reply:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LAuiF51xKr639FcHlOC4xg.png" /></figure><p>I then asked chatGPT what’s the 6th letter, that what it replied:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNs3TqmhGkkozaM2J4JmHQ.png" /></figure><p>I wanted to check this is not an indexing problem, so I asked for the 7th letter in the word ‘banana’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PeZ2OLhjkAmeHqu34jHw8w.png" /></figure><p>So it does not seem to be an indexing issue, thus I’ve asked it to provide the letters again:</p><p>Thus, I started evaluating its replies from the start in a more structured way:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nYOB8kBEv3fK1OYs_JacqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_cXfUVsXyLLw3H-R7Sgpg.png" /></figure><p>I then asked it to print a table with each letter and its index:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HiPVlDqXTyGoIZM-0-NkGw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CMDr2ghxSTXeLGydwv0ZDA.png" /></figure><p>I then started questioning it again for the 5th letter in the word ‘banana’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rocI-3ueNNEsia4raqjYJA.png" /></figure><p>This time chatGPT managed to return the <strong>correct</strong> answer.</p><h3>Tracing the Error: My Conversation with ChatGPT on a Journey of Root-Cause Analysis</h3><figure><img alt="Conversation with a bot" src="https://cdn-images-1.medium.com/max/1024/1*qK_qRqr014Z3CBaMAPraTQ.png" /></figure><p>And thus began my conversation with ChatGPT to gain a deeper understanding of the root cause for the data discrepancy and question its overall accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8G65AAMcCdTZ9DaI6QOQw.png" /></figure><p>So I asked for further elaboration about the data error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*226HX3dYL84PEuE-FNQYrw.png" /></figure><p>I then asked for more specific details of this error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fVq8_K_NlFIkVGkR064Hlw.png" /></figure><p><strong>Questioning chatGPT for index or training data error</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LfkM0UKLpRqVwppkMiTVw.png" /></figure><p><strong>Uncovering Patterns: Investigating Data Discrepancies in ChatGPT with Additional Examples</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YJI58t9sgzhtFdw-WLljpg.png" /></figure><p><strong>Questioning the Quality: Examining the Impact of Manual Labeling on Data Accuracy in ChatGPT</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P88pjSYPAK3vF8Y7K5LqbQ.png" /></figure><p><strong>Repetition and Sustainability: Investigating the Impact of Data on ChatGPT’s Accuracy or Data Validity</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pO_WA-UxlRx7sZZzARw4Qg.png" /></figure><h3>Conclusion</h3><p>In conclusion, as the use of AI becomes increasingly prevalent in various industries, it is crucial to be aware of the potential for data discrepancies and biases that can affect its performance. These issues can arise from a variety of reasons, such as errors in datasets, incorrect labeling of data, missing or inconsistent data, bias, and concept drift. To ensure that AI systems are reliable and accurate, it is essential for data scientists and practitioners to take a proactive approach to identifying and addressing these issues.</p><p>Effective strategies to mitigate data discrepancies and biases include data cleaning, normalization, regularization, and feature selection, as well as monitoring and visualization techniques. In particular, monitoring and validation of the AI system’s performance is crucial to detecting and addressing concept drift. Additionally, designing unbiased AI models is also important to ensure fairness in decision making.</p><p>The architecture and training process of ChatGPT, a powerful language model, have been specifically designed to mitigate some of these issues, but it’s always important to monitor the output generated by the model and validate its performance. Users of ChatGPT can also contribute to the model’s improvement by providing feedback and diverse input.</p><p>In summary, by being aware of the potential for data discrepancies and biases, taking steps to address them, and monitoring the output generated by models like ChatGPT, data scientists, practitioners and users of such tools can ensure that the AI systems are reliable, accurate, fair and adaptable. Additionally, users should always evaluate and take into consideration the possible data discrepancies when using the output data and make decisions accordingly, It is essential for them to understand that AI output should be considered along with other sources of information, and not treated as infallible</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5e85c137288" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>