<?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 Jennifer Sans on Medium]]></title>
        <description><![CDATA[Stories by Jennifer Sans on Medium]]></description>
        <link>https://medium.com/@jennifersans?source=rss-8e1ac6a352c7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CJIGuSGJryDwo7BJsAo6rw.jpeg</url>
            <title>Stories by Jennifer Sans on Medium</title>
            <link>https://medium.com/@jennifersans?source=rss-8e1ac6a352c7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 08:37:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jennifersans/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[Laid-Off Tech Worker]]></title>
            <link>https://medium.com/@jennifersans/laid-off-tech-worker-d336055e8508?source=rss-8e1ac6a352c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d336055e8508</guid>
            <category><![CDATA[layoffs]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[creative-process]]></category>
            <category><![CDATA[tech-layoff]]></category>
            <category><![CDATA[cannabis-industry]]></category>
            <dc:creator><![CDATA[Jennifer Sans]]></dc:creator>
            <pubDate>Tue, 27 Dec 2022 19:08:43 GMT</pubDate>
            <atom:updated>2022-12-27T19:09:00.473Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*ZkgzQ7oB1WqrDP7sVrBdxw.png" /></figure><p>I was officially laid off from my job at a cannabis tech startup two weeks ago. I’m feeling a combination of relief, excitement, anxiety, fear, and happiness. Why the happiness and excitement? Why the anxiety and fear? Let me explain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NDEZSaoGx_t2N1rJ2TmmSA.png" /></figure><h4>Why I’m really happy about this</h4><p>The day after I got the news, I set out to make a schedule for myself. I wanted to prioritize applying to jobs, working out, applying to more jobs, waking up early, and having some fun.</p><p>The creative part of me is definitely happy about being laid off. I get a little severance and I get a ton of time to work on all the random hobbies I have. I have all this time to do projects I always think about doing and don’t get around to, or travel places without needing to request vacation from anyone, get a business idea going, or work on art projects. Finally having the time to do whatever the hell I want to do.</p><ol><li>Playing piano.</li><li>Cooking new recipes.</li><li>Writing in my journal.</li><li>Creating a blog.</li><li>Collaging.</li><li>Writing a book. Any kind of book.</li><li>Putting up shelves in my apartment.</li><li>Walking around NYC.</li><li>Taking street photos around Brooklyn and Manhattan.</li><li>Visiting all the pinned coffeeshops I have in Google Maps.</li><li>Talking to friends I haven’t reached out to in a while.</li><li>Creating business ideas, especially food ones.</li><li>Making piano videos for YouTube.</li><li>Looking at online courses I can take to widen my skill set.</li></ol><p>So far, this is what’s been going on.</p><h4>Why I have some fear and anxiety about this</h4><p>This is a weird moment for me. I’ve never been unemployed. I’ve been working since I was 16 years old. Applying for unemployment was totally foreign to me.</p><p>Thinking about the future and the fact that eventually, I’ll need to start making money to live. Being a creative is incredible, but monetizing creativity is a bitch. It’s a full time job, but maybe it’s worth it.</p><p>On one hand, I’ve been doing everything I want to do the last couple weeks, and on the other hand, I’ve been quietly building up an anxiety about money.</p><p>The battle I’m facing right now is, should I keep looking for jobs? Or should I just indulge in all this time I now have to work on things I love that I never have time for when I’m working.</p><p>I’m leaning towards the creative indulgence, with a little hint of job hunting. I’m in a place where I don’t want to kill myself looking for a job. I’d rather spend that energy working on a project I’m passionate about, and hopefully, that project can become my new full-time job.</p><p>I’ll mention this, as well, and likely save another blog post for this topic. <strong>Tech companies pay well</strong>. The money is enough to convince you that you’re in your dream job. But it may never satisfy the creative in you. The paycheck definitely satisfied parts of myself, like feeling “successful,” having enough money to live in a nice apartment in NYC, being able to pick up the check for friends occasionally. But do these things actually matter? Something has convinced me these things are important. But why are they important to me? Am I actually passionate about being an IT support engineer? Not really. Anyone else feel this way?</p><p>A challenge I’m facing is <strong>learning to be happy with less money</strong>, so that I can actually pursue my dream style jobs in industries like music, food, or interior decorating without feeling miserable or embarrassed about having less money and having a cheaper lifestyle. I’ll save this topic for another blog, as well.</p><p>If you’re a recently laid-off tech worker, or a tech-worker who left their company to pursue their own thing, leave a comment about your journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d336055e8508" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Becoming a Data Swolentist: How to Visualize Peloton Stats with Plotly Express]]></title>
            <link>https://python.plainenglish.io/becoming-a-data-swolentist-visualizing-peloton-stats-with-plotly-express-271f0b2d4907?source=rss-8e1ac6a352c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/271f0b2d4907</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[fitness-goals]]></category>
            <category><![CDATA[peloton]]></category>
            <dc:creator><![CDATA[Jennifer Sans]]></dc:creator>
            <pubDate>Tue, 16 Nov 2021 01:22:54 GMT</pubDate>
            <atom:updated>2021-11-17T03:33:38.242Z</atom:updated>
            <content:encoded><![CDATA[<h4>A guide on visualizing Peloton stats with Plotly Express.</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FBsteDHulUfyz2KIE4C%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fonepeloton-peloton-tunde-oyeneyin-BsteDHulUfyz2KIE4C&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2FBsteDHulUfyz2KIE4C%2Fgiphy.gif%3Fcid%3D790b7611bf9a62f05e903c30ca98d9d28e3587d99914a05e%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/52cb9eb4f3e37d8dd3f2135b88170cc9/href">https://medium.com/media/52cb9eb4f3e37d8dd3f2135b88170cc9/href</a></iframe><p>So, I can’t take full credit for the title here. I have to give it to my Flatiron School Cohort. Team Data Swolentists!</p><p>I’ve been sitting at a desk way too much over the past 3 months learning data science. The new year is fast approaching and it’s time to re-visit those fitness goals I set back in January. No. More. Sitting.</p><p>The main way I’ve stayed at least minimally active during this time is by taking classes on my Peloton. And honestly, taking a class on my Peloton makes me feel like a badass.</p><p>I’ve been curious about my fitness data and how much it’s changed since I’ve had the bike the last few years. I found where to download all of my Peloton data in CSV format from the Peloton website. Let’s take a ride through my Peloton stats with Plotly Express! You can also follow along and interact with the Plotly visuals <a href="https://nbviewer.org/github/JenSans/MyPelotonStats/blob/main/EDA_Plotly_Visuals.ipynb">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfwWCuPYI6rE2jGNsrk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fpeloton-ad-lady-fwWCuPYI6rE2jGNsrk&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2FfwWCuPYI6rE2jGNsrk%2Fgiphy.gif%3Fcid%3D790b76112f94934031b6f3446f13f93b1ecf5f8d78d1f1c0%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ecdd8468255d9460972eb7a1c06a624/href">https://medium.com/media/1ecdd8468255d9460972eb7a1c06a624/href</a></iframe><p>So first, let’s import the tools needed for this and take a look at my Peloton stats.</p><pre>import pandas as pd<br>import plotly.express as px<br>import statsmodels.api as sm</pre><pre>df = pd.read_csv(&#39;JCURLS_workouts (1).csv&#39;)<br>df.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAZEB-uuT1iLF0Aj8duTYA.png" /></figure><p>Let’s create a new DataFrame that filters this data to look at only Cycling as the Fitness Discipline. Then another DataFrame that filters that down again to look at cycling rides that were 45 minutes in Length.</p><pre>cycling_df = df.loc[df[&#39;Fitness Discipline&#39;] == &#39;Cycling&#39;]<br>df_45 = cycling_df.loc[df[&#39;Length (minutes)&#39;] == 45]</pre><p>Let’s now ask the data how far I’ve traveled in miles with a given instructor using a helpful function!</p><pre><strong>def</strong> distance_per_instructor(data, instructor): </pre><pre>    &#39;&#39;&#39;Returns the total distance you&#39;ve ridden on the bike for a specific instructor. <br>    <br>    data: DataFrame that contains instructor column and cleaned up Nans in &#39;Distance (mi)&#39; column.<br>    instructor: The Peloton instructor of interest as a string object.<br>    &#39;&#39;&#39;</pre><pre>    instr_data = data.loc[data[&#39;Instructor Name&#39;] == instructor]<br>    total_dist = sum(instr_data[&#39;Distance (mi)&#39;])<br>    <strong>return</strong> (f&#39;Distance with {instructor}: {total_dist} miles&#39;)</pre><pre><em>#Sanity Check </em><br>distance_per_instructor(cycling_df, &#39;Emma Lovewell&#39;)</pre><p>&#39;Distance with Emma Lovewell: 634.38 miles&#39;</p><p>That’s about the distance from NYC to Cincinnati. So I’ve ridden my bike to Cincinnati with Emma Lovewell.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FG07fpddBvOLFz9kkSa%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fonepeloton-peloton-instructor-G07fpddBvOLFz9kkSa&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FG07fpddBvOLFz9kkSa%2Fgiphy.gif%3Fcid%3D790b7611d390507dc79e655f039df2d60ae91e102a777a70%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="271" frameborder="0" scrolling="no"><a href="https://medium.com/media/e74456cc7f6f7bdc1900d9fc57e25a6e/href">https://medium.com/media/e74456cc7f6f7bdc1900d9fc57e25a6e/href</a></iframe><p>Now, Plotly will show us which instructor I’ve traveled the farthest with!</p><ol><li>Let’s set the figure equal to fig1.</li><li>Call the pieoption from Plotly Express.</li><li>data_frame is the cycling_df.</li><li>names which are values from the &#39;Instructor Name&#39; column as labels for the sectors.</li><li>values are from the &#39;Distance (mi)&#39; column to set values associated with sectors.</li><li>color_discrete_sequence are from a color library available through Plotly Express! Here I’ve chosen curl_rfrom the cmocean color library. To quickly view the colors available, type px.colors and then click “tab” on your keyboard! You can play with different colors to see which ones work the best for your project.</li><li>title is the title for this pie chart.</li><li>Lastly, I’ll use .show() to show the final pie chart.</li></ol><pre>fig1 = px.pie(cycling_df, <br>              names=&#39;Instructor Name&#39;, <br>              values=&#39;Distance (mi)&#39;,<br>              color_discrete_sequence=px.colors.cmocean.curl_r, <br>              title=&#39;Distance Per Instructor&#39;<br>             )</pre><pre>fig1.show()</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplotly.com%2F%7EJenSans%2F3.embed%3Fautosize%3Dtrue&amp;display_name=Plotly&amp;url=https%3A%2F%2Fchart-studio.plotly.com%2F%7EJenSans%2F3%2F&amp;image=https%3A%2F%2Fchart-studio.plotly.com%2Fstatic%2Fwebapp%2Fimages%2Fplotly-logo.8d56a320dbb8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=plotly" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd3b6cf7b87952112671b97b537201c1/href">https://medium.com/media/bd3b6cf7b87952112671b97b537201c1/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F8t9Xnx1HA6X4Acb8BP%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fonepeloton-peloton-robin-arzon-8t9Xnx1HA6X4Acb8BP&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2F8t9Xnx1HA6X4Acb8BP%2Fgiphy.gif%3Fcid%3D790b7611197518130a8192f9ea02cb3171de34dca7e6c35e%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/44af7c0a16b6de799ce975a20a2881bb/href">https://medium.com/media/44af7c0a16b6de799ce975a20a2881bb/href</a></iframe><p>Robin wins! I love taking Robin Arzón’s rides. They’re intense and she makes the most difficult rides so much fun.</p><p>The plot is interactive! As you hover around the pie chart, you can view the exact amount of mileage and the instructor’s name.</p><p>Alright so next I’m wondering which instructor I’ve burned the most calories with. We’ll visualize this with a Plotly bar chart.</p><ol><li>Let’s set the figure equal to fig2.</li><li>Call the bar option from Plotly Express.</li><li>data_frameis thecycling_df.</li><li>x-axis values will be ‘Instructor Name&#39;.</li><li>y-axis values will be &#39;Calories Burned&#39;.</li><li>color will color-coordinate each bar by ‘Instructor Name&#39;.</li><li>title for the bar chart will be &#39;Total Calories Burned per Instructor&#39;.</li><li>color_discrete_sequence will be a qualitative color, Pastel!</li><li>template will be ’simple_white&#39; This changes the background of the chart from grey to white and removes gridlines.</li><li>Use .show() to show the final pie chart.</li></ol><pre>fig2 = px.bar(cycling_df, <br>              x=&#39;Instructor Name&#39;,<br>              y=&#39;Calories Burned&#39;, <br>              color=&#39;Instructor Name&#39;, <br>              title=&#39;Total Calories Burned per Instructor&#39;, <br>              color_discrete_sequence=px.colors.qualitative.Pastel,<br>              template=&#39;simple_white&#39;<br>             )</pre><pre>fig2.show()</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplotly.com%2F%7EJenSans%2F36.embed%3Fautosize%3Dtrue&amp;display_name=Plotly&amp;url=https%3A%2F%2Fchart-studio.plotly.com%2F%7EJenSans%2F36%2F&amp;image=https%3A%2F%2Fchart-studio.plotly.com%2Fstatic%2Fwebapp%2Fimages%2Fplotly-logo.8d56a320dbb8.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=plotly" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/fd71961b698d25c666f3caa27a471623/href">https://medium.com/media/fd71961b698d25c666f3caa27a471623/href</a></iframe><p>So looks like Robin Arzón is the instructor I’ve burnt the most calories with! I guess it’s not surprising. I seem to take a lot of Robin classes. The second is Emma Lovewell! She’s got all these awesome 90’s hip hop rides that are rhythm-based, meaning you pedal to the beat of the music. It aligns with my taste in music the most. The more I love the song, the more likely I am to keep pedaling to the rhythm. It helps for burning calories.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FMph3XQIVnnlOAaVMh3%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fonepeloton-emma-lovewell-Mph3XQIVnnlOAaVMh3&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FMph3XQIVnnlOAaVMh3%2Fgiphy.gif%3Fcid%3D790b7611a384c0ee73262d094f4c3510b53ddc141d61c126%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/c298f9b52c85e13e78ff7935c5b7f3e2/href">https://medium.com/media/c298f9b52c85e13e78ff7935c5b7f3e2/href</a></iframe><p>Now I want to know the sum of calories I’ve burned over the period I’ve been taking Peloton classes.</p><ol><li>Let’s set the figure equal to fig3.</li><li>Call the histogram option.</li><li>data_frameis thedf.</li><li>x-axis values will be ‘Workout Timestamp&#39;.</li><li>y-axis values will be &#39;Calories Burned&#39;.</li><li>color to color coordinate by ‘Live/On-Demand&#39;.</li><li>color_discrete_sequence is Pastel .</li><li>title for the bar chart will be &#39;Sum of Calories Burned per Timestamp&#39;.</li><li>template will be ’none&#39; .</li><li>Use .show() to show the final pie chart.</li></ol><pre>fig3 = px.histogram(df, <br>                    x=&#39;Workout Timestamp&#39;, <br>                    y=&#39;Calories Burned&#39;, <br>                    color=&#39;Live/On-Demand&#39;, <br>                    color_discrete_sequence=<br>                    px.colors.qualitative.Pastel, <br>                    template=&#39;none&#39;, <br>                    title=&#39;Sum of Calories Burned per Timestamp&#39;<br>                   )</pre><pre>fig3.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utrt6bPdzE3u5QN41lV_hQ.png" /></figure><p>I burned the most calories when I first started taking Peloton classes and was taking only Live classes. The data around January for the last 3 years shows significant peaks where I burn the most calories. It’s those New Year’s fitness goals.</p><p>Now let’s look at a scatter plot of how my Total Outputaffects my Calories Burned . For this, I’ll include a trendline created using the Ordinary Least Squares method. To hover over the trendline and take a look at the trendline results and R2, visit my <a href="https://nbviewer.org/github/JenSans/MyPelotonStats/blob/main/EDA_Plotly_Visuals.ipynb">nbviewer notebook</a>!</p><pre>fig4 = px.scatter(cycling_df, <br>                  x=&#39;Total Output&#39;, <br>                  y=&#39;Calories Burned&#39;,<br>                  color=&#39;Length (minutes)&#39;,<br>                  size=&#39;Total Output&#39;,<br>                  trendline=&#39;ols&#39;<br>                 )</pre><pre>fig4.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IgfkSb3356JMWnRnd9ZIWw.png" /></figure><p>There’s a strong positive correlation between Total Output and Calories Burned . The R2 for my trendline is about 94%! I can see that as my output goes up, my calories burned go up as well. Each point on the scatter plot is color coordinated by the Length of the class. This shows me the classes with the highest output and the highest calories burned are about 40 minutes in length or longer.</p><p>Hovering over the trend-line is cool because it shows the predicted calories I can burn at a certain output and class Length. I can use this to target specific calories I want to burn!</p><p>If I’ve learned anything here, it’s that I don’t take nearly enough Cody Rigsby rides.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FE4mYbN2ArhlYW0ICHy%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fonepeloton-peloton-E4mYbN2ArhlYW0ICHy&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FE4mYbN2ArhlYW0ICHy%2Fgiphy.gif%3Fcid%3D790b76117f45f63dd5068da093e185ea2e1bb8445418f5fb%26rid%3Dgiphy.gif%26ct%3Dg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/120946f0df6da387b79c8dcab80aed38/href">https://medium.com/media/120946f0df6da387b79c8dcab80aed38/href</a></iframe><p>I hope you enjoyed this tutorial! Visit my <a href="https://nbviewer.org/github/JenSans/MyPelotonStats/blob/main/EDA_Plotly_Visuals.ipynb">nbviewer notebook</a> to see more visualizations of my Peloton stats using Plotly.</p><p><em>More content at </em><a href="http://plainenglish.io/"><em>plainenglish.io</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=271f0b2d4907" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/becoming-a-data-swolentist-visualizing-peloton-stats-with-plotly-express-271f0b2d4907">Becoming a Data Swolentist: How to Visualize Peloton Stats with Plotly Express</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Game of Red Light, Green Light…with the Python Library Dora]]></title>
            <link>https://python.plainenglish.io/red-light-green-light-with-dora-a21b6132df07?source=rss-8e1ac6a352c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a21b6132df07</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Jennifer Sans]]></dc:creator>
            <pubDate>Tue, 19 Oct 2021 01:18:51 GMT</pubDate>
            <atom:updated>2021-10-21T07:21:33.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1uRRhqDsgxB6TU9N3xhMWw.png" /></figure><h3><strong>Let’s Play a Game</strong></h3><p>Squid Game has become a record-breaking hit for Netflix and as a result, has a huge Twitter response. There is already a <a href="https://www.kaggle.com/deepcontractor/squid-game-netflix-twitter-data">Kaggle dataset </a>available containing the recent tweets about the show.</p><p>In the last few weeks, I’ve been watching Squid Game in my leisure time after learning Data Science.</p><p>I’ve been wondering about Python libraries that are useful for cleaning dirty data and I’ve come across Dora. Dora is a Python library that claims to “automate the painful parts of exploratory data analysis.”</p><p>In case you couldn’t tell where this was going by the title, we’re going to play a game together. A game of Red Light, Green Light…with the Python library: Dora! If you haven’t seen the Squid Game, I will now explain the rules.</p><blockquote>“You are allowed to move forward when ‘<em>it’</em><strong><em> [</em></strong><em>very creepy robot girl standing at the tree] </em>shouts out, ‘GREEN LIGHT!’ Stop when ‘<strong><em>it’</em></strong><em> </em>shouts out ‘RED LIGHT!’ If your movement is detected afterwards, you will be <strong>eliminated</strong>.”</blockquote><p>When the very creepy little girl with the flailing eyes at the tree says, “GREEN LIGHT,” you must use Dora to address this dirty DataFrame. Full documentation for Dora can be reviewed on GitHub <a href="https://github.com/NathanEpstein/Dora">here</a>.</p><p>When the little girl at the tree says “RED LIGHT,” you must stop what you’re doing and show what you’ve done to this DataFrame.</p><p>If you do not stop when the little girl says “RED LIGHT,” you will be <strong>eliminated</strong>.</p><h3><strong>Let the Game Begin</strong></h3><p>Creepy Little Girl: “GREEN LIGHT!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjaQSvIMUu4FrvaiB140_g.png" /></figure><p>We’re on a time crunch, so let’s get going. First, we’ll import the necessary libraries.</p><pre>import pandas as pd<br>from Dora import Dora</pre><p>Let’s now import our Squid Game Twitter data. This data shows 50,000 recent tweets about the Squid Game.</p><pre>dora = Dora()<br>dora.configure(output = ‘A’, data = ‘tweets_v5.csv’)</pre><p>Creepy Little Girl: “RED LIGHT!”</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FyHEu9sPsWveuW4vG7G%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FyHEu9sPsWveuW4vG7G%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FyHEu9sPsWveuW4vG7G%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="249" frameborder="0" scrolling="no"><a href="https://medium.com/media/553f420d0a86fafb37b3ebb21321cff3/href">https://medium.com/media/553f420d0a86fafb37b3ebb21321cff3/href</a></iframe><p>Alright, so we have to pause here because we already know what will happen if we continue. Let’s freeze and get some information about the data to get a feel for what may need to be “eliminated”.</p><pre>dora.data.info()</pre><pre>&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;<br>RangeIndex: 50000 entries, 0 to 49999<br>Data columns (total 12 columns):<br> #   Column            Non-Null Count  Dtype <br>---  ------            --------------  ----- <br> 0   user_name         49997 non-null  object<br> 1   user_location     35607 non-null  object<br> 2   user_description  46902 non-null  object<br> 3   user_created      50000 non-null  object<br> 4   user_followers    50000 non-null  int64 <br> 5   user_friends      50000 non-null  int64 <br> 6   user_favourites   50000 non-null  int64 <br> 7   user_verified     50000 non-null  bool  <br> 8   date              50000 non-null  object<br> 9   text              50000 non-null  object<br> 10  source            50000 non-null  object<br> 11  is_retweet        50000 non-null  bool  <br>dtypes: bool(2), int64(3), object(7)<br>memory usage: 3.9+ MB</pre><p>We can see that there are 50,000 tweets. There are a few null values in user_name, user_location, and user_description. There are bool, int64, and object Dtypes that tell us there are both numeric and categorical columns represented in this data.</p><p>Creepy Little Girl: “GREEN LIGHT!”</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fz3lBO7NQl4CjAaj2lz%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fz3lBO7NQl4CjAaj2lz%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fz3lBO7NQl4CjAaj2lz%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="348" frameborder="0" scrolling="no"><a href="https://medium.com/media/f39b12c7ad9cdf7ef9211a9c9a564422/href">https://medium.com/media/f39b12c7ad9cdf7ef9211a9c9a564422/href</a></iframe><p>Okay, let’s move quickly! Let’s look at user_description and decide if that’s something worth keeping.</p><pre>dora.data[‘user_description’]</pre><pre>0        @ManUtd die hard❤️❤️💪🏿💪🏿\n\n\nYOLO\n\n\nJ&#39;ai b...<br>1                                                      NaN<br>2        animal crossing. chicken nuggets. baby yoda. s...<br>3        Where the heck is the karma\nI&#39;m going on my s...<br>4        I talk and I make reactions videos about shows...<br>                               ...                        <br>49995    J&amp;K’s Fastest Growing News Portal on Instagram...<br>49996    Pokemon Lover, Twitch Streamer! Every life &amp; v...<br>49997          This... This is Lucille, and she is awesome<br>49998    Live in Guernsey, support Arsenal, play golf, ...<br>49999    Feminist. Hibs. Nurse. People say am opinionat...<br>Name: user_description, Length: 50000, dtype: object</pre><p>It appears that user_description shows all the useless Twitter profile descriptions. We’ll eliminate that.</p><p>I also don’t want to display the user_name so I can protect the personal information of people who don’t want to be searched.</p><p>I’m going to let the creepy little girl take care of them by using Dora and removing those features entirely.</p><pre>dora.remove_feature(‘user_description’)<br>dora.remove_feature(‘user_name’)</pre><p>Creepy Little Girl: “RED LIGHT!”</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F9yfzAgeBR2wEb5OPCu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F9yfzAgeBR2wEb5OPCu%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F9yfzAgeBR2wEb5OPCu%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="243" frameborder="0" scrolling="no"><a href="https://medium.com/media/0fc0125bc65be759b7547ee4fcdaab61/href">https://medium.com/media/0fc0125bc65be759b7547ee4fcdaab61/href</a></iframe><pre>dora.data.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ISohN65wMbn1B2kkaVqvrA.png" /></figure><p>Those features have now been “eliminated”.</p><p>Creepy Little Girl: “GREEN LIGHT!”</p><p>Keep moving while we still have the green light!</p><p>There are two boolean columns. One for user_verified, and another for is_retweet. Let’s assign numbers to these True and False values. We can do this using Dora’s extract_ordinal_feature() option.</p><pre>dora.extract_ordinal_feature(‘user_verified’)<br>dora.extract_ordinal_feature(‘is_retweet’)</pre><p>Creepy Little Girl: “RED LIGHT!</p><p>Check out our new columns.</p><pre>dora.data.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*EGIFjirxGTbhwD2jJCCMdg.png" /></figure><p>Dora’s extract_ordinal_feature() option uses OneHotEncoding to assign categorical variables a number. False has been set to 1 and True has been set to 0. We now have 3 new columns. The is_retweet column has 0 true values, so only one column was created representing all values as 1 for false.</p><p>Creepy Little Girl: “GREEN LIGHT!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C1qYEQfbLnVt8YE9zWa4ig.png" /></figure><p>Let’s speed it up by doing some feature engineering and creating a new column for user_followers percentage. We’ll do this by dividing each value in the user_followers column by the sum of the user_followers column. Then we’ll multiply each of those values by 100 to look at our percentages. We’ll make this new column by using Dora’s extract_feature() option. Then, we’ll sort the DataFrame by our new followers percentage column to view the users with the most followers.</p><pre># Calculate the sum of the user_followers column.</pre><pre>sum_followers = sum(dora.data[‘user_followers’])</pre><pre># Extract a new feature for followers percentage.</pre><pre>dora.extract_feature(&#39;user_followers&#39;, &#39;followers %&#39;, lambda x: 100 * (x / sum_followers))</pre><pre># Sort the DataFrame by followers percentage in descending order.</pre><pre>dora.data.sort_values(by=[&#39;followers %&#39;], ascending=False, inplace=True)</pre><p>Creepy Little Girl: “RED LIGHT!”</p><p>Check out our new followers percentage column.</p><pre>dora.data.head()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*AAw5zNJNT7iwrFotDVrdww.png" /></figure><p>Creepy Little Girl: “GREEN LIGHT!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SA6e-uQ_P7cZ2SBtoA2krQ.png" /></figure><p>We’re getting closer. “Fly Me To The Moon” has started playing. The creepy little girl has done a lot of eliminating.</p><p>Let’s finish it off by checking all the work we’ve done on this DataFrame so far by using Dora’s .logs option.</p><pre>dora.logs</pre><pre>[&quot;self.remove_feature(&#39;user_description&#39;)&quot;,<br> &quot;self.remove_feature(&#39;user_name&#39;)&quot;,<br> &quot;self.extract_ordinal_feature(&#39;is_retweet&#39;)&quot;,<br> &quot;self.extract_ordinal_feature(&#39;user_verified&#39;)&quot;,<br> &#39;self.extract_feature(user_followers, followers %, &lt;function &lt;lambda&gt; at 0x7f91f89253a0&gt;)&#39;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FuPh20q2NZROk-lDC7jMVg.png" /></figure><h3><strong>We Made It</strong></h3><blockquote>“You have made it through the first game. Congratulations, you’re moving on.”</blockquote><p>Throw some claps on this Medium post if you’d like to continue to the next round of our game.</p><p><em>More content at </em><a href="http://plainenglish.io/"><em>plainenglish.io</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a21b6132df07" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/red-light-green-light-with-dora-a21b6132df07">A Game of Red Light, Green Light…with the Python Library Dora</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Tableau for Data]]></title>
            <link>https://medium.com/@jennifersans/using-tableau-for-data-a750dbdb47c8?source=rss-8e1ac6a352c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a750dbdb47c8</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Jennifer Sans]]></dc:creator>
            <pubDate>Tue, 28 Sep 2021 12:59:02 GMT</pubDate>
            <atom:updated>2021-09-28T12:59:02.684Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s talk about data visualization! Tableau is a software that allows users to see and interact with their data in real time and is especially helpful for making big data seem small.</p><p>Tableau was designed to make data visualization easy for everyone to understand so everyone can participate in informing decisions using data.</p><p>Competitors of Tableau include Qlik, Power BI from Microsoft, Cognos Analytics from IBM, and Amazon Web Services.</p><p>Tableau was created by Pat Hanrahan, Christian Chabot, and Chris Stolte in 2003 and the current CEO is Mark Nelson.</p><p>If you’re looking to practice Data Science through projects, Tableau’s website also includes weekly projects that the community can participate in! There’s Makeover Monday, Workout Wednesday, Viz for Social Good (my personal favorite), and more.</p><p>Makeover Monday is great practice! The dataset is published on Sunday and throughout the week you work on the project and even receive a free feedback session on Wednesday. The hashtag on Twitter is #makeovermonday and people around the world post their work to be viewed by all. This is a really great way to practice using Tableau if you haven’t had a chance to use it, and a chance to see how others may look at the same dataset differently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/0*1DKLUG5EDL8uDlyk.png" /><figcaption><a href="https://www.makeovermonday.co.uk/">https://www.makeovermonday.co.uk/</a></figcaption></figure><p>For those interested in the social impact side, Viz for Social Good allows the community to “volunteer to design data visualizations that help nonprofits harness the power of data for social change.” The Viz for Social Good allows the community access to their data to create a positive social impact for different projects. Projects in the past include Crowd2Map who’s call-to-action was to ‘help communicate the impact that Crowd2Map has had to date by creating engaging data visualizations to visually communicate the achievements on the Crowd2Map website.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*6Z49hzXeVIsAkhPt.png" /><figcaption><a href="https://www.tableau.com/community/community-projects">https://www.tableau.com/community/community-projects</a></figcaption></figure><p>The current project available is with Sunny Street who works to access healthcare for individuals experiencing homelessness. Here is their call-to-action: “We want to research and understand the Health Economics of our service from patient level through to national impact and over the course of time. We also need to quantify and qualify the effect our service has on Emergency Department presentations and representations, as well as access to mental health and addiction services.” This is a really awesome way to volunteer your skills as a data scientist using Tableau, and awesome for a practicing data scientist like myself!</p><p>For more information on how to use Tableau, here is a list of resources!</p><p>1. <a href="https://www.blogger.com/blog/post/edit/382706749895842315/5459250799630135491#">https://help.tableau.com/current/pro/desktop/en-us/gettingstarted_overview.htm</a></p><p>Here is documentation directly from Tableau’s website which includes a short walk-through introduction to the product and an in depth tutorial. Scroll to the bottom to learn more about the service and more practice with using Tableau.</p><p>2. <a href="https://www.blogger.com/blog/post/edit/382706749895842315/5459250799630135491#">https://www.youtube.com/watch?v=TPMlZxRRaBQ</a></p><p>Here is an in depth tutorial from YouTube on Tableau basics using a dataset from Kaggle!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a750dbdb47c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I’ve decided to become a data scientist.]]></title>
            <link>https://medium.com/@jennifersans/ive-decided-to-become-a-data-scientist-f2aa66042f6f?source=rss-8e1ac6a352c7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2aa66042f6f</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[flatiron-school]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Jennifer Sans]]></dc:creator>
            <pubDate>Tue, 07 Sep 2021 12:47:55 GMT</pubDate>
            <atom:updated>2021-09-09T13:25:22.594Z</atom:updated>
            <content:encoded><![CDATA[<p>I graduated with a degree in Hospitality and Tourism at Florida International University in 2016. I had a few ideas of what I wanted to do with this degree including event planning, festival planning, and food journalism. The school I went to ran a huge food festival with the Food Network in Miami and I interned the festival during my last two years of college. One of my projects as an intern was to update a demographics report for the festival from the year before. I loved that. It was my favorite part of my internship. I mainly used data they had in Excel to update that report. I uncovered a lot about the festival through that data and found that many of the people attending the festival were of a high socio-economic status, making more than $124,000 per year. This was interesting to me because the median household income in Miami that year was just above $30,000 per year. This tells me that the festival had an opportunity to be more accessible to people actually from the area. I loved finding what the data had to uncover about the festival that wasn’t obvious to me just attending the event.</p><p>In 2014, during my second year of college, I started working at the Apple Store in Miami as a Sales Specialist. I eventually found myself working at the Genius Bar as Tier 1 Tech Support. In 2016, there was news about a new store opening in Manhattan. I applied and was hired to work at the new Apple Store in New York City the same week I graduated college. I started as a Technical Specialist, eventually became a Technical Expert, and then a Genius! The most sought after position at the Apple Store.</p><p>After graduation, I became more and more passionate about tech. I would say working at Apple is definitely responsible for this! I first started to learn about data science because I kept hearing about “Big Data.” After doing some research on big data and data science, I came across a Ted Talk called <a href="https://www.youtube.com/watch?v=6xsvGYIxJok">“Making data mean more through storytelling</a>.” The speaker, Ben Wellington, talks about open data laws in New York City that allow anyone to access city government data. I found this fascinating. There’s tons of data available about crime, health, businesses, car accidents, taxi drivers, etc. Anyone can download and analyze the information available on the website. Even data from the last year’s pandemic is available for download. When Wellington discovered the data available from the city’s website, he ran with it. He started a blog called <a href="https://iquantny.tumblr.com/">I Quant NY</a> taking data available on the website and writing about it. One of his more popular blogs was about cyclist accidents in the city that caught the attention of several news outlets. This got me thinking about how powerful data science is and why it’s become so important.</p><p>So many things are changing rapidly in our world. Climate crisis, pandemics, food supply issues, water crisis, etc. Creating a project covering any of these topics would be interesting to me and I’d enjoy creating an impact with it. Food supply issues and climate crisis are especially interesting to me because data science can help predict where food supply could become an issue in the future and what we can do about it.</p><p>Water crisis would be something awesome to work on, as well. Water crisis is already affecting several large cities; Mexico City and Cape Town being examples of a few. Cape Town tracks their water usage weekly and posts the data to their government website <a href="https://resource.capetown.gov.za/documentcentre/Documents/City%20research%20reports%20and%20review/damlevels.pdf">here</a>. The water crisis had gotten so serious, it became increasingly difficult to buy water at grocery stores in Cape Town. Mexico City is actually sinking as a result of the water crisis and it’s evident when you look at the buildings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0o2h_-Ig0EumHP0pdagcw.png" /><figcaption>Mexico City</figcaption></figure><p>I’d like to work on a project that can predict where water scarcity could be an issue and see what can be done about it.</p><p>One of my coworkers at Apple took the data science course at Flatiron at the start of the pandemic. After she completed the data science course, she got a career experience at Apple, kind of like an internship, in software engineering. After a few months, she left the store and moved on to a Software Engineering role at Apple’s corporate office! That really inspired me to want to take the class at Flatiron because it was awesome to see a retail employee move on to corporate and to see a woman get a position in a very male dominated profession. Only 24% of tech roles are held by women at Apple, and I definitely want to see that number go up. And it’s not just Apple. Tech companies as a whole have similar numbers to Apple. The data for Apple is available on <a href="https://www.apple.com/diversity/">Apple’s Inclusion &amp; Diversity website</a> where you can also look at statistics for U.S. Race and Ethnicity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*ZiFOrsUe5fPVi_runnWBcQ.png" /></figure><p>What I’m hoping to do with Data Science in the future — In the near future I hope to accomplish some goals I have for myself including getting a career experience within Apple for data science and software engineering. I hope to follow in the footsteps of my coworker and find a full time role as a data scientist or software engineer at Apple!</p><p>In the more distant future, I’m hoping I get to dip into a few different projects. The ones that interest me the most are definitely climate related because of how it affects our relationship to food and the way we live our lives. I hope to work on projects like this that will make a positive impact on people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2aa66042f6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>