<?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 Suman Dey on Medium]]></title>
        <description><![CDATA[Stories by Suman Dey on Medium]]></description>
        <link>https://medium.com/@deysuman?source=rss-e1220fe3f558------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N1jumx1i2Mn3SaJyTrJTRw.jpeg</url>
            <title>Stories by Suman Dey on Medium</title>
            <link>https://medium.com/@deysuman?source=rss-e1220fe3f558------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:58:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deysuman/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[AI Engineering in 2025: The 5 Essential Skills You Need to Thrive]]></title>
            <link>https://deysuman.medium.com/ai-engineering-in-2025-the-5-essential-skills-you-need-to-thrive-9906cf65f79f?source=rss-e1220fe3f558------2</link>
            <guid isPermaLink="false">https://medium.com/p/9906cf65f79f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-engineer]]></category>
            <dc:creator><![CDATA[Suman Dey]]></dc:creator>
            <pubDate>Wed, 02 Jul 2025 15:32:51 GMT</pubDate>
            <atom:updated>2025-07-02T15:32:51.628Z</atom:updated>
            <content:encoded><![CDATA[<p>The field of artificial intelligence (AI) is experiencing a remarkable renaissance in 2025. With breakthroughs in machine learning, natural language processing (NLP), and computer vision (CV) reshaping industries, the demand for skilled AI engineers has never been higher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nAgb5eRqC0GdtDoXqfIkHw.jpeg" /></figure><p>As we stand at the forefront of this technological revolution, it’s clear that mastering the right skill set is critical to staying competitive. Drawing from my observations and the evolving landscape of AI, here are five essential skills every AI engineer needs to thrive in 2025.</p><h3>1. Programming Proficiency</h3><p>At the core of AI engineering lies a strong foundation in programming. In 2025, Python remains the lingua franca of AI development, thanks to its simplicity and robust ecosystem of libraries and frameworks.</p><p>Proficiency in tools like TensorFlow, PyTorch, and NumPy is non-negotiable, as these frameworks power the creation and training of cutting-edge machine learning models.</p><h3>2. Solid Understanding of NLP and Computer Vision</h3><p>AI’s ability to interpret and generate human-like text and images has become a game-changer in 2025. A solid grasp of NLP and CV principles is essential for engineers looking to harness these technologies.</p><p>NLP enables machines to process and generate text for tasks like translation, sentiment analysis, and summarization, while CV allows systems to analyze and work with visual data — think autonomous vehicles or medical imaging. The synergy between these fields, as demonstrated by innovations like automatic image captioning on social media platforms, underscores their growing importance.</p><h3>3. Prompt Engineering</h3><p>As large language models like GPT-6 (released in early 2025) continue to dominate the AI landscape, the art of prompt engineering has emerged as a critical skill. This involves designing, refining, and optimizing prompts to elicit precise, contextually relevant outputs from AI models.</p><p>The nuances of different models — whether they’re open-source or proprietary — require engineers to adapt their approach, ensuring accuracy and efficiency. I</p><h3>4. MLOps and Deployment Engineering</h3><p>Deploying AI models at scale is no longer a luxury — it’s a necessity. This is where MLOps (Machine Learning Operations) and deployment engineering come into play.</p><p>In 2025, practical experience with containerization (e.g., Docker), continuous integration/continuous deployment (CI/CD) pipelines, scalable inference APIs, and model monitoring is paramount. By mastering MLOps, AI engineers can bridge the gap between development and deployment, delivering reliable, real-world solutions.</p><h3>5. Communication, Critical Thinking, and Ethical Awareness</h3><p>Beyond technical expertise, the best AI engineers in 2025 excel in soft skills. Effective communication is key to explaining complex model trade-offs to non-technical stakeholders, while critical thinking drives problem framing and hypothesis-driven approaches.</p><p>Engineers must navigate issues like bias, fairness, and transparency to build trustworthy AI systems. As AI increasingly impacts society, the ability to balance innovation with responsibility will define the next generation of AI leaders.</p><h3>Looking Ahead</h3><p>The AI engineering landscape in 2025 is vibrant and full of opportunity. By honing these five skills — programming proficiency, NLP/CV understanding, prompt engineering, MLOps, and communication with ethical awareness — you can position yourself at the cutting edge of this transformative field. As we continue to push the boundaries of what AI can achieve, staying curious and adaptable will be your greatest assets.</p><p>Thank you for reading! <strong>🤝 </strong>Let’s connect and build something amazing <strong>👉</strong></p><p><a href="https://linktr.ee/datawithsuman">https://linktr.ee/datawithsuman</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9906cf65f79f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Best Resources to Master Machine Learning]]></title>
            <link>https://deysuman.medium.com/5-best-resources-to-master-machine-learning-d734269a2792?source=rss-e1220fe3f558------2</link>
            <guid isPermaLink="false">https://medium.com/p/d734269a2792</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Suman Dey]]></dc:creator>
            <pubDate>Sat, 13 Aug 2022 07:57:14 GMT</pubDate>
            <atom:updated>2022-08-13T09:34:21.773Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Are you a Data Scientist or an ML Engineer? Regardless, if your project deems applying predictive modelling, you need to understand the fundamentals of Machine Learning one way or another.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OzCuyNC25q7K-kJto6AlpQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@aronvisuals?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Aron Visuals</a> on <a href="https://unsplash.com/s/photos/time?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>A lot of beginners jump into building models from the get go. Well, you should not do that. The end goal should be solving business problems by leveraging the most relevant solution. However, there are tons of projects where ML drives value.</p><p>Now that you have decided to use ML for your project, but not confident about the concepts behind? Here’s how you fill the gaps 👇🏻</p><ol><li><strong>Andrew Ng’s Machine Learning Specialization</strong></li></ol><p>This is the place you visit, if you want to get started with ML. Get your basics sorted with this specialisation.</p><p><a href="https://www.coursera.org/specializations/machine-learning-introduction">Machine Learning</a></p><p>2. <strong>StatQuest Youtube channel</strong></p><p>Joshua Starmer’s way of explaining complex concepts is one the best out there. You do not want to miss this.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGv9_4yMHFhI%2Fhqdefault.jpg%3Fsqp%3D-oaymwEXCOADEI4CSFryq4qpAwkIARUAAIhCGAE%3D%26rs%3DAOn4CLDbwRAKeCZuve_GX9wmB9m35dKuAg%26days_since_epoch%3D20389&amp;type=text%2Fhtml&amp;schema=youtube" width="853" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff6f47366f23ac3a765083bbdf77c369/href">https://medium.com/media/ff6f47366f23ac3a765083bbdf77c369/href</a></iframe><p>3. <strong>3Blue1Brown Linear Algebra Playlist</strong></p><p>Yes, you read it correct. Linear Algebra is important before you get the hands dirty with ML. The animation in this playlist would blow your mind.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DPLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab&amp;image=https%3A%2F%2Fi9.ytimg.com%2Fs_p%2FPLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab%2Flandscape_mqdefault.jpg%3Fsqp%3DCLC508oGir7X7AMICOqwiNsFEAE%3D%26rs%3DAOn4CLCggCWitdTd0HHnWhWxZI3HAePaAg%26v%3D1533155434%26days_since_epoch%3D20453&amp;type=text%2Fhtml&amp;schema=youtube" width="853" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e2730cffc4008b109f4d898b2db6566/href">https://medium.com/media/9e2730cffc4008b109f4d898b2db6566/href</a></iframe><p>4. <strong>Krish Naik’s Youtube Channel</strong></p><p>Krish explains the concepts in simple terms. Would help a lot during interview preparation.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fvideoseries%3Flist%3DUUNU_lfiiWBdtULKOw6X0Dig&amp;url=https%3A%2F%2Fwww.youtube.com%2Fuser%2Fkrishnaik06&amp;image=https%3A%2F%2Fyt3.ggpht.com%2Fa%2FAGF-l78swT5WL0PDtdGNLrtX1JwKvrP-UnD2c9i2zg%3Ds900-c-k-c0xffffffff-no-rj-mo&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="853" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/75f1a81329e2dedab78178c17ea995cd/href">https://medium.com/media/75f1a81329e2dedab78178c17ea995cd/href</a></iframe><p>5. <strong>ML-From-Scratch Repo</strong></p><p>This repository would take you closer into how the algorithms are implemented and give you a hands-on experience.</p><p><a href="https://github.com/giangtranml/ml-from-scratch">GitHub - giangtranml/ml-from-scratch: All the ML algorithms, ML models are coded from scratch by pure Python/Numpy with the Math under the hood. It works well on CPU.</a></p><h4>End Notes</h4><p>There are tons of resources out there which often gets overwhelming for beginners exploring this field. These 5 resources would give a strong base and prepare you for a Data Science role.</p><p><em>If you found this post helpful, please follow me and become a Medium member. It would greatly help me and fellow writers on the platform.</em><strong><em> </em></strong><em>Connect with me</em><strong><em> </em></strong><em>at</em><strong><em> </em></strong><a href="https://www.linkedin.com/in/sumandey02/"><strong><em>Linkedln</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://twitter.com/SumanDe36754787"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d734269a2792" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Under-rated Data Science Skill: What, Why & How]]></title>
            <link>https://deysuman.medium.com/most-under-rated-data-science-skill-what-why-how-d10f1879f9b1?source=rss-e1220fe3f558------2</link>
            <guid isPermaLink="false">https://medium.com/p/d10f1879f9b1</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[Suman Dey]]></dc:creator>
            <pubDate>Fri, 04 Mar 2022 05:06:25 GMT</pubDate>
            <atom:updated>2022-03-04T09:49:28.846Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I want to be a Data Scientist because it gives me a chance to build cool Machine Learning models.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQEqGPAwPIS7HAEAHDbZow.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@casparrubin?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Caspar Camille Rubin</a> on <a href="https://unsplash.com/s/photos/query?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>How often do we hear this from someone trying to break into Analytics? With so many state-of-the-art techniques published quite often, it’s a very common trend these days to ignore the basic stuff and try to master advanced concepts. While we need to know about them but is very important to first get a good grasp on some of the core concepts before proceeding further. <strong>SQL</strong> is one such language that is not only under-rated but is one of the fundamental skills that an Analytics professional should have in their portfolio.</p><h3>But, Why do we need it?</h3><p><em>What kind of roles you are looking for ?</em></p><p><strong>Data Analyst?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rIqtJToL2YY79Ap9UsSSXw.png" /><figcaption>Job Description for a Data Analyst at Byju’s</figcaption></figure><p><strong>Data Scientist?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I2KXXWMgUYGG748tQzjRQQ.png" /><figcaption>Job Description for a Data Scientist at Walmart</figcaption></figure><p><strong>Business Intelligence Engineer?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fE3HEWyhIncDnYyEvWMnnA.png" /><figcaption>Job Description for a Business Intelligence Engineer at Amazon</figcaption></figure><p>All the above-mentioned roles need SQL as one of the required skills for the job. Thus, if you are into analytics, start mastering it first and then proceed to other skillsets.</p><h3>How can we be good at SQL?</h3><ol><li>Pick MySQL (Personal Choice — Could vary for others)</li><li>Get the basics right from <a href="https://www.w3schools.com/mysql/default.asp">w3schools</a>.</li><li>Practice from <a href="https://www.hackerrank.com/domains/sql">HackerRank</a> and <a href="https://leetcode.com/problemset/database/">LeetCode</a>.</li><li>Set up MySQL in my local system.</li><li>Download open-source <a href="https://www.kaggle.com/datasets">Data</a> and upload it in MySQL.</li><li>Start coming up with questions of my own, and solve using SQL queries.</li><li>Practice Steps 5 &amp; 6 for data from different domains.</li></ol><h3><strong>End Notes</strong></h3><p>The purpose of this blog was to demonstrate the importance of mastering SQL and validating its importance in the industry. For anyone who wants to work in this field, you must master a query language because it would help you a lot down the line in your career.</p><p><strong><em>If you found this post helpful, please follow me and become a Medium member. It would greatly help me and fellow writers on the platform. Connect with me at </em></strong><a href="https://www.linkedin.com/in/sumandey02/"><strong><em>Linkedln</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d10f1879f9b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Journey From a Mainframe Tester @Infosys to a Data Scientist @Walmart]]></title>
            <link>https://deysuman.medium.com/journey-from-a-mainframe-tester-infosys-to-a-data-scientist-walmart-d0bde754ca0b?source=rss-e1220fe3f558------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0bde754ca0b</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[journey]]></category>
            <dc:creator><![CDATA[Suman Dey]]></dc:creator>
            <pubDate>Wed, 26 Jan 2022 07:11:41 GMT</pubDate>
            <atom:updated>2022-01-27T11:56:37.284Z</atom:updated>
            <content:encoded><![CDATA[<p>Before you read this blog, I would like you to write on a piece of paper and ask yourself “<em>Why do I want to be a Data Scientist?”</em></p><figure><img alt="How I became a Data Scientist" src="https://cdn-images-1.medium.com/max/1024/1*fADZ1B31vRY1Rfr40suH0Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@hesterqiang?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Hester Qiang</a> on <a href="https://unsplash.com/s/photos/my-journey?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Background</h3><p>I completed high school in 2011 with no computer science background and graduated in 2015 as an Electronics and Communications Engineer not from a Tier 1/2 university in India. Though the university tier is of less relevance in the current scenario, however, many people are still of the impression that their career is defined by the college/university they are studying at.</p><p>During the 4 year graduation, we were taught C programming language, DBMS, and Data Structures but I did miserably in all of them. At that time AI/ML was a term I never heard of. It was about getting a job at a service-based IT firm and that’s what happened during campus placement where I joined Infosys as a fresher.</p><h3>Early Career</h3><p>After clearing Infosys training, I got mapped to a Mainframe project where I was working as a tester. I used to hear a lot of voices saying that if you do not get a development project, your career is doomed. However, I didn’t pay much heed to them and continued with my work.</p><p>After a year or so, I didn’t enjoy working in Mainframes and started looking for the project internally. Luckily, I got a chance to work in SQL, Hive and got some exposure to Big Data. It was during that time I came across the term <em>Machine Learning</em>. And that was my <em>eureka</em> moment.</p><h3>Infosys to Walmart</h3><p>I spent close to a year interviewing for multiple companies between 2018 and 2019 before I managed to clear one and joined Tiger Analytics as a Senior Analyst. Before joining Tiger, I already worked in Machine Learning/Deep Learning at Infosys for some time. However, the work, culture, and people at Tiger gave me a whole new perspective in the world of Data Science.</p><p>After working close to 2 years, I felt ready for my next big move and that is when I landed at Walmart Global Tech India as a Data Scientist. Before joining Walmart, I spent a few months at a startup but this opportunity was too big to pass by.</p><p>I recently gave an interview with Applied AI where I shared my experience. You can watch it here.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYZaAIDIDFTE%3Fstart%3D14%26feature%3Doembed%26start%3D14&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYZaAIDIDFTE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYZaAIDIDFTE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8501e29c2a54686f9b15df978461b97e/href">https://medium.com/media/8501e29c2a54686f9b15df978461b97e/href</a></iframe><h3>Preparation Strategy</h3><p>When I got to know about Machine Learning, the first course I took was <a href="https://www.coursera.org/learn/machine-learning?">Andrew Ng’s Machine Learning from Coursera</a>. There are a couple of other MOOCs that I did. One was from <a href="https://www.udemy.com/course/machinelearning/">Udemy</a> and the other from <a href="https://www.udacity.com/course/data-analyst-nanodegree--nd002">Udacity</a>.</p><p>However, I was always consistent in reading blogs from Medium, Analytics Vidhya, or KDnuggets. I participated in various hackathons during my weekends to practice different techniques and approaches.</p><h3>My Unbiased Advice</h3><ol><li>Your University Tier doesn’t matter. If you have skills, the sky is the limit.</li><li>Build your foundations first before jumping into advanced methodologies. Most companies work with simpler models.</li><li>Do not ignore SQL. I repeat do not.</li><li>Pick any language (Python/R) and start exploring data with it. In the longer run, it is irrelevant which one you choose.</li><li>Once you follow steps 1–4, pick your area of interest (NLP, CV, Time Series, etc) and start reading articles, papers. Download open-source datasets and try implementing what you learn.</li><li>There are tons of free resources available online that you could refer to. In the initial days, no need to spend too much on paid courses. I would be sharing some of my favorite free resources in a separate blog.</li><li>Being a Data Scientist is a lifelong journey. It’s a marathon, not a sprint. Please do not beat yourself up if you are not a Data Scientist in 3 months because no one is.</li><li>Practice. Practice. Practice.</li></ol><h3>End Notes</h3><p>I hope you have got your answer “Why I want to be a Data Scientist” by now. If you have, then start your journey today.</p><p><strong><em>If you found this post helpful, please follow me and become a Medium member. It would greatly help me and fellow writers on the platform. Connect with me at </em></strong><a href="https://www.linkedin.com/in/sumandey02/"><strong><em>Linkedln</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0bde754ca0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Time Series: A Beginner’s Guide to Dealing with Date & Time (Part 2)]]></title>
            <link>https://deysuman.medium.com/demystifying-time-series-a-beginners-guide-to-dealing-with-date-time-part-2-37a447da25fe?source=rss-e1220fe3f558------2</link>
            <guid isPermaLink="false">https://medium.com/p/37a447da25fe</guid>
            <category><![CDATA[forecasting]]></category>
            <category><![CDATA[datetime]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[pandas]]></category>
            <dc:creator><![CDATA[Suman Dey]]></dc:creator>
            <pubDate>Sat, 22 Jan 2022 06:38:41 GMT</pubDate>
            <atom:updated>2022-01-22T06:56:00.788Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>This blog post is a continuation of our previous article where we spoke about the importance of Time Series in today’s industry and some of the basic operations you could perform with a Date &amp; Time field. In case you missed the previous post, please refer below.</p><p><a href="https://deysuman.medium.com/hands-on-time-series-a-beginners-guide-to-dealing-with-date-time-part-1-ea0ae3ae8ece">Demystifying Time Series: A Beginner’s Guide to dealing with Date &amp; Time (Part 1)</a></p><p>In this blog, we could cover a few other important concepts which are helpful in our day-to-day activities.</p><figure><img alt="Time Series" src="https://cdn-images-1.medium.com/max/1024/1*3vIvFhgojQfG2ukglR5Qeg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jontyson?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jon Tyson</a> on <a href="https://unsplash.com/s/photos/time?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Demo</h3><p>For our demo, we would not leverage any open-source data instead we would create our custom data. I would encourage you not to just go through the post but also try implementing them in your notebook. This would help you to understand what is happening under the hood.</p><h4><em>Creating future and past dates using timedelta</em></h4><p><em>Current Date</em></p><pre>import pandas as pd<br>import numpy as np<br>from datetime import datetime, timedelta</pre><pre>curr_date = datetime.now()<br># datetime.datetime(2022, 1, 22, 5, 52, 56, 997753)</pre><p><em>One Hour ahead and behind from current timestamp</em></p><pre># Getting one hour ahead time</pre><pre>curr_date + timedelta(minutes = 60)<br># datetime.datetime(2022, 1, 22, 6, 52, 56, 997753)</pre><pre>curr_date + timedelta(minutes = -60)<br># datetime.datetime(2022, 1, 22, 4, 52, 56, 997753)</pre><p><em>One Day ahead and behind from current timestamp</em></p><pre>curr_date + timedelta(days = 1)<br># datetime.datetime(2022, 1, 23, 5, 52, 56, 997753)</pre><pre>curr_date + timedelta(days = -1)<br># datetime.datetime(2022, 1, 19, 6, 28, 5, 420728)</pre><h4>Resampling Timestamp</h4><p><em>Pandas date_range functionality to create DateTime values within a defined range. In the below example we have printed each day from start to end dates. We could also set frequencies as Hour (h), minutes (T), seconds (S), etc.</em></p><pre>pd.date_range(start = curr_date, end = curr_date + timedelta(days = 30), freq = &#39;D&#39;)</pre><pre># DatetimeIndex([&#39;2022-01-20 06:28:05.420728&#39;, &#39;2022-01-21 06:28:05.420728&#39;, &#39;2022-01-22 06:28:05.420728&#39;, &#39;2022-01-23 06:28:05.420728&#39;, &#39;2022-01-24 06:28:05.420728&#39;, &#39;2022-01-25 06:28:05.420728&#39;, &#39;2022-01-26 06:28:05.420728&#39;, &#39;2022-01-27 06:28:05.420728&#39;, &#39;2022-01-28 06:28:05.420728&#39;, &#39;2022-01-29 06:28:05.420728&#39;, &#39;2022-01-30 06:28:05.420728&#39;, &#39;2022-01-31 06:28:05.420728&#39;, &#39;2022-02-01 06:28:05.420728&#39;, &#39;2022-02-02 06:28:05.420728&#39;, &#39;2022-02-03 06:28:05.420728&#39;, &#39;2022-02-04 06:28:05.420728&#39;, &#39;2022-02-05 06:28:05.420728&#39;, &#39;2022-02-06 06:28:05.420728&#39;, &#39;2022-02-07 06:28:05.420728&#39;, &#39;2022-02-08 06:28:05.420728&#39;, &#39;2022-02-09 06:28:05.420728&#39;, &#39;2022-02-10 06:28:05.420728&#39;, &#39;2022-02-11 06:28:05.420728&#39;, &#39;2022-02-12 06:28:05.420728&#39;, &#39;2022-02-13 06:28:05.420728&#39;, &#39;2022-02-14 06:28:05.420728&#39;, &#39;2022-02-15 06:28:05.420728&#39;, &#39;2022-02-16 06:28:05.420728&#39;, &#39;2022-02-17 06:28:05.420728&#39;, &#39;2022-02-18 06:28:05.420728&#39;, &#39;2022-02-19 06:28:05.420728&#39;], dtype=&#39;datetime64[ns]&#39;, freq=&#39;D&#39;)</pre><p><em>Creating a DataFrame with a range of dates from the current date to one day ahead at a frequency of minutes.</em></p><pre>df = pd.DataFrame({&#39;DATETIME&#39; : pd.date_range(start = curr_date, end = curr_date + timedelta(days = 1), freq = &#39;T&#39;), &#39;VALUE&#39; :<br>np.random.randn(1441)})</pre><p><em>Downsample to an hourly frequency and calculate the aggregated sum.</em></p><pre>df.set_index(&#39;DATETIME&#39;).resample(&#39;1h&#39;).sum().reset_index()</pre><p><em>Downsample to a 5-hour frequency and calculate the aggregated sum.</em></p><pre>df.set_index(&#39;DATETIME&#39;).resample(&#39;5h&#39;).sum().reset_index()</pre><p><em>We could also calculate other properties such as mean, median, min, max, etc.</em></p><pre>df.set_index(&#39;DATETIME&#39;).resample(&#39;1h&#39;).mean().reset_index()<br>df.set_index(&#39;DATETIME&#39;).resample(&#39;1h&#39;).median().reset_index()<br>df.set_index(&#39;DATETIME&#39;).resample(&#39;1h&#39;).min().reset_index()<br>df.set_index(&#39;DATETIME&#39;).resample(&#39;1h&#39;).max().reset_index()</pre><h4>Imputing Missing values in Time Series Data</h4><p><em>Creating a custom DataFrame with some random missing points.</em></p><pre>df = pd.DataFrame({&#39;DATETIME&#39; : pd.date_range(start = curr_date, end = curr_date + timedelta(minutes = 60), freq = &#39;5T&#39;),<br>&#39;VALUE&#39; : [3, 4, np.NaN, 7, 8, np.NaN, 10, 12, 15, 9, np.NaN, 20, 25]})</pre><p><em>Impute using Backward Fill (bfill).</em></p><pre>df.fillna(method = &#39;bfill&#39;)</pre><p><em>Impute using Forward Fill (ffill).</em></p><pre>df.fillna(method = &#39;ffill&#39;)</pre><p><em>Impute using Linear Interpolation.</em></p><pre>df.interpolate(method = &#39;linear&#39;)</pre><h4>Creating Lags in Time Series Data</h4><p><em>This is a more advanced concept which I would explain in later blogs. Here, I would showcase how we could create lags in a DataFrame. Creating Forward Lag of 1</em>.</p><pre>df[&#39;LAGGED_ONE&#39;] = df[&#39;VALUE&#39;].shift(1)</pre><p><em>Backward Lag of 1.</em></p><pre>df[&#39;LAGGED_ONE_BACKWARD&#39;] = df[&#39;VALUE&#39;].shift(-1)</pre><h3>End Notes</h3><p>Part 1 of this series was very basic concepts about handling the DateTime field while part 2 covered some intermediate concepts to handle time-series data. As mentioned earlier, practicing them on your own would help you grasp the knowledge and apply them to your daily task.</p><p><strong><em>If you found this post helpful, please follow me and become a Medium member. It would greatly help me and fellow writers on the platform.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37a447da25fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Time Series: A Beginner’s Guide to dealing with Date & Time (Part 1)]]></title>
            <link>https://deysuman.medium.com/hands-on-time-series-a-beginners-guide-to-dealing-with-date-time-part-1-ea0ae3ae8ece?source=rss-e1220fe3f558------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea0ae3ae8ece</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[time-series-forecasting]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <dc:creator><![CDATA[Suman Dey]]></dc:creator>
            <pubDate>Fri, 14 Jan 2022 07:05:45 GMT</pubDate>
            <atom:updated>2022-01-20T06:09:33.305Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xem1rbG0Fa8DAhtez7mvsA.jpeg" /><figcaption>Image Source — <a href="https://unsplash.com/photos/BXOXnQ26B7o">https://unsplash.com/photos/BXOXnQ26B7o</a></figcaption></figure><h4>Introduction</h4><p>Time Series Analysis is one such field in Data Science that is of utmost importance in the industry. From manufacturing to finance, various domains deal with time-series data.</p><p>Going forward, I would be covering a ton of time-series posts ranging from analyzing the data to building models. Those would be completely hands-on blogs using Python on Jupyter Notebook.</p><p>I would be leveraging Solar Data from Kaggle to showcase some of the fundamental operations you could perform on a DateTime field</p><p><a href="https://www.kaggle.com/arielcedola/solar-generation-and-demand-italy-20152016">Solar generation and demand Italy 2015-2016</a></p><h4>Basic Operations</h4><p>Now, lets see what we could do with time-series data -</p><ol><li><em>The Timestamp is in UTC format as well it is object type</em></li></ol><pre>data.dtypes</pre><p><em>2. Convert UTC_TIMESTAMP field from object type to datetime and store in a new column TIMESTAMP</em></p><pre># Convert UTC_TIMESTAMP from object type to datetime</pre><pre>from datetime import datetime, timedelta<br>data[&#39;TIMESTAMP&#39;] = pd.to_datetime(data[&#39;UTC_TIMESTAMP&#39;], format = &quot;%Y-%m-%d %H:%M:%S&quot;)</pre><p><em>3. Convert TIMESTAMP from datetime64[ns, UTC] to datetime64[ns]</em></p><pre># Convert TIMESTAMP from datetime64[ns, UTC] to datetime64[ns]<br>data[&#39;TIMESTAMP&#39;] = data[&#39;TIMESTAMP&#39;].dt.tz_localize(None)</pre><p><em>4. Fetch Day, Month and Year</em></p><pre># Day<br>data[&#39;DAY&#39;] = data[&#39;TIMESTAMP&#39;].dt.day</pre><pre># Month<br>data[&#39;MONTH&#39;] = data[&#39;TIMESTAMP&#39;].dt.month</pre><pre># Year<br>data[&#39;YEAR&#39;] = data[&#39;TIMESTAMP&#39;].dt.year</pre><p><em>5. Fetch Hour, Minutes and Seconds</em></p><pre># Hour<br>data[&#39;HOUR&#39;] = data[&#39;TIMESTAMP&#39;].dt.hour</pre><pre># Minutes<br>data[&#39;MINUTE&#39;] = data[&#39;TIMESTAMP&#39;].dt.minute</pre><pre># Seconds<br>data[&#39;SECOND&#39;] = data[&#39;TIMESTAMP&#39;].dt.second</pre><p><em>6. Fetch Day of Week and Month Name</em></p><pre># Day of week<br>data[&#39;DAY_OF_WEEK&#39;] = data[&#39;TIMESTAMP&#39;].dt.day_name()</pre><pre># Name of the Month<br>data[&#39;NAME_OF_MONTH&#39;] = data[&#39;TIMESTAMP&#39;].dt.month_name()</pre><p><em>7. Fetch Quarter</em></p><pre># Get Quarter<br>data[&#39;QUARTER&#39;] = data[&#39;TIMESTAMP&#39;].dt.quarter</pre><p><em>8. Is Month Start or Month End</em></p><pre># Is Month Start<br>data[&#39;IS_MONTH_START&#39;] = data[&#39;TIMESTAMP&#39;].dt.is_month_start</pre><pre># Is Month End<br>data[&#39;IS_MONTH_END&#39;] = data[&#39;TIMESTAMP&#39;].dt.is_month_end</pre><p><em>9. Is Quarter Start or Quarter End</em></p><pre># Is Quarter Start<br>data[&#39;IS_QUARTER_START&#39;] = data[&#39;TIMESTAMP&#39;].dt.is_quarter_start</pre><pre>#Is Quarter End<br>data[&#39;IS_QUARTER_END&#39;] = data[&#39;TIMESTAMP&#39;].dt.is_quarter_end</pre><p><em>10. Is Leap Year</em></p><pre># Is Leap Year<br>data[&#39;IS_LEAP_YEAR&#39;] = data[&#39;TIMESTAMP&#39;].dt.is_leap_year</pre><h4>Conclusion</h4><p>Time Series is a broad field where you could do so much but still fall short of achieving the end goal. This blog post is a beginner friendly guide to some key operations you could perform in a time series data as part of your EDA pipeline.</p><p>In the future blog posts, I could be covering topics like resampling, date range, and so on. This is my first post and any feedback would be helpful down the line.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea0ae3ae8ece" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>