<?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 Neha Jirafe on Medium]]></title>
        <description><![CDATA[Stories by Neha Jirafe on Medium]]></description>
        <link>https://medium.com/@nehajirafe?source=rss-5f8b72a3e110------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*MMSa9sfPZ6uSFdd5</url>
            <title>Stories by Neha Jirafe on Medium</title>
            <link>https://medium.com/@nehajirafe?source=rss-5f8b72a3e110------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:47:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nehajirafe/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[Why you should read this guide to Personal Finance? — Part II — Investments]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://nehajirafe.medium.com/why-you-should-read-this-guide-to-personal-finance-part-ii-investments-af9e88a6549e?source=rss-5f8b72a3e110------2"><img src="https://cdn-images-1.medium.com/max/1000/1*Ue2pA6ba8SkmnbIN-zqUAg.jpeg" width="1000"></a></p><p class="medium-feed-snippet">PART I&#x200A;&#x2014;&#x200A;https://medium.com/@nehajirafe/why-every-indian-taxpayer-should-read-this-guide-to-personal-finance-part-i-cashflows-36e3afe960fb</p><p class="medium-feed-link"><a href="https://nehajirafe.medium.com/why-you-should-read-this-guide-to-personal-finance-part-ii-investments-af9e88a6549e?source=rss-5f8b72a3e110------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://nehajirafe.medium.com/why-you-should-read-this-guide-to-personal-finance-part-ii-investments-af9e88a6549e?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/af9e88a6549e</guid>
            <category><![CDATA[personal-finance]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 10:38:58 GMT</pubDate>
            <atom:updated>2022-12-13T10:38:58.701Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why every Indian taxpayer should read this guide to Personal Finance? — Part I — Cashflows]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://nehajirafe.medium.com/why-every-indian-taxpayer-should-read-this-guide-to-personal-finance-part-i-cashflows-36e3afe960fb?source=rss-5f8b72a3e110------2"><img src="https://cdn-images-1.medium.com/max/940/1*BJGzLK1JOVEPMeY9u755DA.png" width="940"></a></p><p class="medium-feed-snippet">&#x201C;Oh, My husband manages all the finances; I need not worry.&#x201D;</p><p class="medium-feed-link"><a href="https://nehajirafe.medium.com/why-every-indian-taxpayer-should-read-this-guide-to-personal-finance-part-i-cashflows-36e3afe960fb?source=rss-5f8b72a3e110------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://nehajirafe.medium.com/why-every-indian-taxpayer-should-read-this-guide-to-personal-finance-part-i-cashflows-36e3afe960fb?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/36e3afe960fb</guid>
            <category><![CDATA[personal-finance]]></category>
            <category><![CDATA[empowering-women]]></category>
            <category><![CDATA[women]]></category>
            <category><![CDATA[financial-empowerment]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 03:01:48 GMT</pubDate>
            <atom:updated>2022-12-13T10:15:11.968Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[5 Lessons from the Psychology of Money]]></title>
            <link>https://nehajirafe.medium.com/5-lessons-from-the-psychology-of-money-d9671a715c53?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9671a715c53</guid>
            <category><![CDATA[money]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[success]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Mon, 28 Nov 2022 02:30:43 GMT</pubDate>
            <atom:updated>2023-01-12T15:22:26.987Z</atom:updated>
            <content:encoded><![CDATA[<p>Top 5 Lessons from The Psychology of Money” by Morgan House!</p><p>1. Compounding Sustained long-term investments beat short termed high-return interests over time due to compound interest.<br>Fun fact: Warren Buffet accumulated 97% of his wealth after his 65th birthday.</p><p>2. Reasonable vs. rational Beware of the difference between acting upon emotion and rational thoughts. One is not better than the other. Sometimes, acting reasonably instead of rationally even when the numbers don’t add up on your spreadsheets, could lead to huge success.</p><p>3. Setbacks Losing money once in a while is normal but you shouldn’t think that you lost money because you necessarily messed up. Look at it as a fee for investing and making profitable returns over time instead of a fine that needs to be paid for doing something wrong.</p><p>4. Benchmarks Don’t compare your profits and returns to those of other investors. Measure your success by what makes you happy and what your goals are. Investing is not a race and you don’t have to feel ashamed or entitled based on how little or how much profit you made.</p><p>5. Tails, you win Long tails, or the extremes of the distribution of outcomes, have enormous sway in finance, where a small number of events account for the vast majority of results. A tail event is the cause of anything huge, profitable, famous, or influential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yTccCzF02GX8PJaLy6YfBA.png" /></figure><p>Follow me :</p><p><a href="https://lnkd.in/d3pyXa82">https://lnkd.in/d3pyXa82</a><br><a href="https://lnkd.in/dcwTayhC">https://lnkd.in/dcwTayhC</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9671a715c53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 ways you can make your resume stand out]]></title>
            <link>https://medium.com/analytics-vidhya/7-ways-you-can-make-your-resume-stand-out-b049edcfea3f?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/b049edcfea3f</guid>
            <category><![CDATA[resume-writing]]></category>
            <category><![CDATA[layoffs]]></category>
            <category><![CDATA[resume-writing-tips]]></category>
            <category><![CDATA[resume]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Tue, 15 Nov 2022 16:14:50 GMT</pubDate>
            <atom:updated>2022-11-15T16:14:50.626Z</atom:updated>
            <content:encoded><![CDATA[<p>1. Use ATS Compliant template: ATS stands for application tracking system. Most people don’t think about it, but where does your resume go when you submit it? Most of the time, it goes directly into an ATS database.</p><p>2. Customize: You may have worked on so many different things, its time to highlight your best-fit skills to the job you are applying for</p><p>3. Focus on what matters: Recruiters would spend less than 5 sec to read your resume, so let the significant achievements stand out; some random stuff you did ten years back might not be required to mention in detail</p><p>4. Short and concise: Large paragraphs are difficult to read; keep the description short and straightforward; you can always dive deep during an interview</p><p>5. Talk about impact: It might not be easy to measure every little thing, but think about how you contributed to improving the system.</p><p>6. Mean it: Don’t inflate your resume with fancy words you cannot explain.<br>On the other hand, be bold in adding relevant skills obtained beyond the job scope.</p><p>7. Proofread and review: Spelling mistakes, missing links, grammatical errors are not uncommon, proofread and ask someone to check before you apply for the unique job</p><p><a href="https://www.linkedin.com/feed/hashtag/?keywords=resume&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6998314968269905923">#resume</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=jobs&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6998314968269905923">#jobs</a> <a href="https://www.linkedin.com/feed/hashtag/?keywords=interview&amp;highlightedUpdateUrns=urn%3Ali%3Aactivity%3A6998314968269905923">#interview</a><br>***********************************<br>Follow me :<br><a href="https://lnkd.in/d3pyXa82">https://lnkd.in/d3pyXa82</a><br><a href="https://lnkd.in/dcwTayhC">https://lnkd.in/dcwTayhC</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b049edcfea3f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/7-ways-you-can-make-your-resume-stand-out-b049edcfea3f">7 ways you can make your resume stand out</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hinge Loss : [Machine Learning Bite Size Series]]]></title>
            <link>https://nehajirafe.medium.com/hinge-loss-machine-learning-bite-size-series-957eade62bcb?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/957eade62bcb</guid>
            <category><![CDATA[loss-function]]></category>
            <category><![CDATA[hinge-loss]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Tue, 16 Feb 2021 19:45:17 GMT</pubDate>
            <atom:updated>2021-02-16T19:45:17.421Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hinge Loss : [Machine Learning Bite Size Series]</h3><blockquote>The Machine Learning Bite Size Series is aimed at explaining the terms in a simple 1 minute read for a quick reference.</blockquote><p>Suppose you’re training a machine learning model and generating predictions, you compare the predicated value with the actual targets and generate a loss value, depending on the comparison of the output.</p><p>The <strong>formula</strong> for computing the loss value for <strong>Hinge Loss (l) </strong>is</p><p>l = Hinge loss</p><p>𝑦 = prediction</p><p>𝑡 = actual target for the prediction , assume 𝑡 is either +1 or -1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*rdzKzUGqIY4v_vki.png" /><figcaption>Formula Hinge Loss</figcaption></figure><ul><li>Correct prediction 𝑡=𝑦 , loss is 𝑚𝑎𝑥(0,1–1)=𝑚𝑎𝑥(0,0)=0</li><li>[Low Loss] Incorrect prediction 𝑡≠𝑦, loss is 𝑚𝑎𝑥(0, 1-t*y) , e.g. 𝑡=1 while 𝑦=0.9, loss would be (max(0, 0.1) = 0.1</li><li>[High Loss] Incorrect prediction 𝑡≠𝑦, loss is 𝑚𝑎𝑥(0, 1-t*y) , e.g. 𝑡=1 while 𝑦=-2, loss would be (max(0, 3) = 3</li></ul><p>Hence hinge loss will be higher for higher inaccuracies in prediction</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/0*YKKIecAETOho-U3S.png" /></figure><p>Effectively hinge loss will attempt to maximize the decision boundary between the two groups that must be discriminated.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=957eade62bcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What the Foo-Bar (google) ?]]></title>
            <link>https://medium.com/analytics-vidhya/what-the-foo-bar-google-ea723f0757be?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea723f0757be</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[foobar]]></category>
            <category><![CDATA[recruiting]]></category>
            <category><![CDATA[foobar-challenge]]></category>
            <category><![CDATA[recruitment]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Sat, 26 Dec 2020 16:17:43 GMT</pubDate>
            <atom:updated>2021-01-09T06:28:56.821Z</atom:updated>
            <content:encoded><![CDATA[<h3>What the Foo-Bar (google) ?</h3><p>Here I am sharing my experience with the famous google foo bar challenge which I have attempted multiple times (directly and indirectly)</p><p>For those peeps who don’t know what <strong>FooBar </strong>is , some say it’s a secret hiring challenge by <strong>Google</strong> ,but I may not agree to it entirely (again its my personal opinion). From my point of view , it was just a set of challenging coding problems which would get you scratching your head a couple of time and surely improve your coding(optimisation) skills.</p><h3><strong>The Invitation</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*24HBJ5doy0_XWj8VGXzibA.png" /><figcaption><a href="https://foobar.withgoogle.com/">https://foobar.withgoogle.com/</a></figcaption></figure><p>I was always curious about the foobar challenge , but I was still a bit shocked when the invitation arrived in my inbox. Initially I thought it was just a spam , but after validating email address and URL , it was indeed an invite from Google.</p><p>Alternatively you can also get access to this challenge if some you has passed Level 2 shares the referral code generated with you.</p><h3>Levels</h3><p>There are total 5 levels to this challenge , each having different set of questions and time limit to solve it.</p><p><strong>Level 1 : </strong>“Easy peasy lemon queezy” , This level consists of 1 problem and 48 hrs to solve it. You should be able to cross this one even if you know basic coding</p><p><strong>Level 2: </strong>“Warming up” , This level consists of 2 problems and 72 hrs to solve each. A bit of programming and a bit of reviewing the elementary education should get you through this one</p><p><strong>Level 3: </strong>“Party Starts Now” , This level consists of 3 problems and 168 hrs to solve each. This is also where the actual action starts, make sure you are good with your programming optimisation techniques. I would rate these problems somewhere between medium to hard level.</p><p><strong>Level 4: </strong>“Enjoy the ride” , This level consists of 2 problems and 360 hrs to solve each. I hope by now you would have picked up the momentum and are well prepared to solve the problems Again, would rate these problems somewhere between medium to hard level. Make sure you know your algorithms well</p><p><strong>Level 5: </strong>Lastly if you have managed to reach up-to this point then this should be “Not so tricky” for you to solve, This level consists of 1problem and 528 hrs to solve</p><h3><strong>Problem Format :</strong></h3><p>You are given a hypothetical situation of a rescue mission and all the problems are just building up the story. Every problem will have 2 known test cases and some hidden test cases agains which you can “verify” and “submit” your solution . You must pass all the test cases to be able to submit your solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51h08M6zU1Do_ba_icQ25A.png" /></figure><p>You may choose <strong>“JAVA” </strong>or <strong>“Python” </strong>as your coding language.</p><p>As of the time I attempted the challenge , foobar relied on Python2 and my code would at times fail incase I used Python3 modules or syntax , unfortunately there were no compiler error messages for me to track the actual problem. Also note you cannot stdout any debug statements.</p><p>Using Java was hassel free , since I didn’t try any fancy advanced java syntaxes in my solution.</p><h3>Does Google really recruit using foobar ?</h3><p>You get an option to submit your contact details after completing level 3 , alternatively you may also use the “recruitme” option later , however this option is activated only after level 3.</p><p>As I said earlier , its not entirely for recruitment purpose, I have known people who have completed all 5 levels and still didn’t receive a call and the others who got a call after level 3. I would say enjoy the challenges and the journey in the hypothetical mission.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea723f0757be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/what-the-foo-bar-google-ea723f0757be">What the Foo-Bar (google) ?</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make Jupyter Notebooks Extensible and Reusable]]></title>
            <link>https://medium.com/analytics-vidhya/how-to-make-jupyter-notebooks-extensible-and-reusable-ae11bd3175c?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae11bd3175c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Fri, 10 Jul 2020 14:58:05 GMT</pubDate>
            <atom:updated>2020-07-10T15:06:09.558Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to make Jupyter Notebooks Extensible and Reusable ?</h3><p>All those who use Jupyter notebooks for data analysis or machine learning workloads , know the pain of the “copy — paste” cycle for reusing the notebook.</p><p>Lets start with a simple example:</p><p>The following code is used to analyse how frequently people communicated with their family before and after COVID 19. The data source used is from <a href="https://data.world/associatedpress/covid-impact-survey-public-data/workspace/intro">here</a></p><pre>import pandas as pd</pre><pre>#Data for the month of April 2020</pre><pre>df=pd.read_csv(&#39;<a href="https://query.data.world/s/ukmb3b5jkp5okj6m4oyxf5pukjsa5g&#39;">https://query.data.world/s/ukmb3b5jkp5okj6m4oyxf5pukjsa5g&#39;</a>)</pre><pre>df.SOC3B.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;Before COVID - How often did you talk with any of your Family?&quot;)</pre><pre>df.SOC3A.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;How often did you talk with any of your Family?&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*eESqUH1AcKE3wEBRX6yAZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*7nvCHct2gEphqnBKq5uzZw.png" /></figure><p>Wow , people really communicated more often with their families since COVID 19</p><p>Thats great news isn’t it?</p><p>Well now if we want to see these results for May , June and onwards what should we do ?</p><p><strong>Option 1 : </strong>Add code for new dataset every month</p><pre>import pandas as pd</pre><pre>#Data for the month of April 2020</pre><pre>df=pd.read_csv(&#39;<a href="https://query.data.world/s/ukmb3b5jkp5okj6m4oyxf5pukjsa5g&#39;">https://query.data.world/s/ukmb3b5jkp5okj6m4oyxf5pukjsa5g&#39;</a>)</pre><pre>df.SOC3B.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;Before COVID - How often did you talk with any of your Family?&quot;)</pre><pre>df.SOC3A.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;How often did you talk with any of your Family?&quot;)</pre><pre>#-------------------------------------------------------------#<br>#Data for the month of May 2020</pre><pre>df = pd.read_csv(&#39;https://query.data.world/s/g6gsty3xrfaxthwefimuzbi2xi4hrv&#39;)</pre><pre>df.SOC3B.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;Before COVID - How often did you talk with any of your Family?&quot;)</pre><pre>df.SOC3A.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;How often did you talk with any of your Family?&quot;)</pre><p><strong>Option 2 : </strong>Copy the code and create a new notebook for every month</p><p>Both the options are not scalable when the code base grows and difficult to keep a track of the changes made.</p><p>What if you had to create automated jobs to run these notebooks monthly?</p><p><strong>Option 3 : The Netflix Way — </strong>Parametrize the notebooks and reuse the template</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*4yuB7hppjCoaC_fg.jpg" /></figure><p>Fortunately there is a very easy and convenient way of parameterizing and reusing notebooks , using the <a href="https://papermill.readthedocs.io/en/latest/">papermill</a> library.Lets jump into examples</p><p><strong>Step 1 : Create a Template Notebook</strong></p><p>Add a <em>“parameters” </em>tag to the cell in notebook</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dr3dyOJcm46mlqR7FIyvyA.png" /></figure><p>Now your notebook code should look like</p><pre>import pandas as pd</pre><pre>df=pd.read_csv(data_url)</pre><pre>df.SOC3B.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;Before COVID - How often did you talk with any of your Family?&quot;)</pre><pre>df.SOC3A.value_counts().sort_values().plot(kind = &#39;barh&#39;,title=&quot;How often did you talk with any of your Family?&quot;)</pre><p><strong>Step 2 : Create a Driver Notebook</strong></p><ul><li>Create all the variables and add them to a dictionary</li><li>run <em>“papermill.execute_notebook” </em>by passing the parameters</li></ul><pre>import papermill as pm</pre><pre>april_data_url = &quot;<a href="https://query.data.world/s/ukmb3b5jkp5okj6m4oyxf5pukjsa5g">https://query.data.world/s/ukmb3b5jkp5okj6m4oyxf5pukjsa5g</a>&quot;<br>parameters = dict(<br>    data_url = april_data_url<br>    )</pre><pre>exe = pm.execute_notebook(<br>   &#39;template/Analysis.ipynb&#39;,<br>   &#39;generated/Analysis_April.ipynb&#39;,<br>    parameters = parameters,<br>    log_output = False<br>)</pre><pre>#-------------------------------------------------------------#</pre><pre>may_data_url = &quot;<a href="https://query.data.world/s/g6gsty3xrfaxthwefimuzbi2xi4hrv">https://query.data.world/s/g6gsty3xrfaxthwefimuzbi2xi4hrv</a>&quot;<br>parmeters = dict(<br>    data_url = may_data_url<br>    )<br>exe = pm.execute_notebook(<br>   &#39;template/Analysis.ipynb&#39;,<br>   &#39;generated/Analysis_May.ipynb&#39;,<br>    parameters = parmeters,<br>    log_output = False<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDXKFeWHq9h_L9dE8dL1sQ.png" /></figure><p>Corresponding notebooks are created in the <em>“generated”</em> folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qYXpEjHeN4aNEuTRQtdU2w.png" /></figure><p>The <strong><em>“</em></strong><em>papermill</em><strong><em>” </em></strong>can easily be executed from command line or other python programs which gives you a flexibility to run automated reusable and extensible notebooks.</p><p>Check out more details <a href="https://github.com/nteract/papermill">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae11bd3175c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/how-to-make-jupyter-notebooks-extensible-and-reusable-ae11bd3175c">How to make Jupyter Notebooks Extensible and Reusable</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Modeling — Designing Facebook style “comments” with SQL]]></title>
            <link>https://medium.com/analytics-vidhya/data-modeling-designing-facebook-style-comments-with-sql-4cf9e81eb164?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cf9e81eb164</guid>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[tree-structured-data]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[comment]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Thu, 09 Jul 2020 01:39:18 GMT</pubDate>
            <atom:updated>2020-07-09T01:39:18.214Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Modeling — Designing Facebook style “comments” with SQL</h3><p>Let’s agree , we all have used the “comments” section of some or the other social networking site.</p><p>Now lets see how we can model this in a SQL database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bmXoNjzD3Bt9T55u.jpg" /></figure><h3><strong>Level 1 comments :</strong></h3><p>Taking the example of Facebook , In a very simplistic terms a user “comments” on a post .The simplest form of comments are level 1 comments</p><ul><li>A <strong><em>user</em></strong> creates a <strong><em>post.</em></strong></li><li>A <strong><em>user</em></strong> <strong><em>comments</em></strong> on a <strong><em>post.</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*fcJgAoUrQdh_pf2p2zlpzQ.png" /></figure><p>Pretty straight forward isn’t it , now lets add some complexity to it</p><h3>Level 2 comments :</h3><p>Now the user wants to respond to a comment on his post, for simplicity lets keep this to only one level down<strong><em>.</em></strong></p><blockquote>A <strong><em>user</em></strong> creates a <strong><em>post.</em></strong></blockquote><blockquote>A <strong><em>user</em></strong> <strong><em>comments</em></strong> on a <strong><em>post.</em></strong></blockquote><ul><li>A <strong><em>user</em></strong> <strong><em>comments</em></strong>(sub comment)<strong><em> </em></strong>on a <strong><em>comment.</em></strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*1vWWv5QfFcV4Uv18iwqbjg.png" /></figure><p>Now let see how we can query the comments on a post “1111” by each level</p><pre>SELECT <br>    post_id,<br>    parent.comment as level1_comment,<br>    child.comment as level2_comment<br>FROM<br>    Comment parent , Comment child<br>WHERE<br>    post_id = &#39;1111&#39; and <br>    child.parent_comment_id = parent.comment_id</pre><p>Things are still good until we have only 2 levels</p><h3>Level “n” comments :</h3><p>Lets imagine what if we had “n” levels nested comments like in “whatsapp” , How would the query look like ? To query level 6 comment , we will have to self join the data 6 times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdZHZ67LVMQMTuDoY0s4xg.png" /></figure><h4>Approach 1 — Repeated Self-joins :</h4><p>Repeated self joins can get quite complicated, these are also one of the most inefficient queries to execute, slowing down the performance</p><pre>SELECT<br>    post_id,<br>    p1.comment as level1_comment,<br>    p2.comment as level2_comment,<br>    p3.comment as level3_comment,<br>    p4.comment as level4_comment,<br>    p5.comment as level5_comment,<br>    p6.comment as level6_comment</pre><pre>FROM        <br>      Comment p1<br>LEFT JOIN   <br>      Comment p2 on p2.parent_comment_id = p1.comment_id <br>LEFT JOIN   <br>      Comment p3 on p3.parent_comment_id = p2.comment_id <br>LEFT JOIN   <br>      Comment p4 on p4.parent_comment_id = p3.comment_id  <br>LEFT JOIN   <br>      Comment p5 on p5.parent_comment_id = p4.comment_id  <br>LEFT JOIN   <br>      Comment p6 on p6.parent_comment_id = p5.comment_id<br>WHERE<br>    post_id = &#39;1111&#39; and</pre><p>This model can quickly go out of control once your database starts scaling.</p><h4>Approach 2— Recursive CTE :</h4><p>MySQL support <a href="https://dev.mysql.com/doc/refman/8.0/en/with.html#common-table-expressions-recursive"><strong>Recursive</strong></a><strong> CTE </strong>(Common Table Expression) , the recursive CTE can be used to create a <strong>Path-style Identifiers , </strong>to query the database. However this just simplifies the query syntax and data representation , it by no means reduces the complexity of the underlying query engine.</p><pre>WITH RECURSIVE cte AS <br>    ( SELECT <br>             comment,<br>             comment_id AS path,<br>             user_id,<br>             post_id<br>      FROM<br>             Comment<br>      WHERE parent_comment_id IS NULL <br>      UNION ALL<br>      SELECT <br>         comment,<br>         CONCAT(parent.path,&#39;/&#39;,child.name)comment_id AS comment_id,<br>         user_id,<br>         post_id<br>      FROM<br>         Comment parent , Comment child<br>      WHERE <br>         child.parent_comment_id = parent.comment_id )</pre><pre>SELECT * FROM cte;</pre><p>The data can now looks like , denormalized and flattened.</p><pre>path             | comment                | user_id     | post_id<br>------------------------------------------------------------------<br>1                | I am comment 1         | ....        | 1111<br>1/7              | I am comment 7         | ....        | 1111<br>2                | I am comment 2         | ....        | 1111<br>2/3              | I am comment 3         | ....        | 1111<br>2/3/4            | I am comment 4         | ....        | 1111<br>2/3/4/5          | I am comment 5         | ....        | 1111<br>2/3/4/5/6        | I am comment 6         | ....        | 1111</pre><h3>Alternative Data Model — <strong>Path-style Identifiers</strong> :</h3><p>What if we create a data model to store the data in Path-style Identifier? Here we remove the self reference in “comment” table (rabbit ear) and add a new column “path”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*J5knC4Q3W8emyI93JlFJoA.png" /></figure><p>You can now query parent comments by comparing the current row’s path to a pattern formed from the path of another row. For example, to find ancestors of comment #5 , whose path is 2/3/4/5 , do this</p><pre>SELECT *<br>FROM<br>   Comment AS c<br>WHERE (SELECT <br>          path <br>       FROM <br>          Comment <br>       WHERE <br>          comment_id = 5) LIKE c.path || &#39;%&#39;;</pre><p>This matches the patterns formed from paths of ancestor 2/3/4/% , 2/3/% and 2/%</p><p><strong>Drawbacks</strong> —<strong> Path-style Identifiers</strong>:</p><p>The path enumeration has some drawbacks, The database can’t enforce that the path is formed correctly or that the values in the path correspond to existing comments.</p><p>Another thing to note is that VARCHAR column has a limit , and the depth of your path will be limited to this limit, In most cases it wont be problem.</p><h3>Alternative Data Model — Closure Tables :</h3><p>The <strong>Closure Table </strong>solution is a simple and elegant way of storing hierarchies. It involves storing all paths through. the tree , not just those with a direct parent-child relationship.</p><p>Instead of using the “Comment” table to store information about the parent-child relationship , lets create a lookup table “parent_child_comment”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*J7Tfp2S6A-LgZFG05BEiFQ.png" /></figure><pre>parent_comment_id             | child_comment_id <br>-----------------------------------------------------<br>1                             | 1  <br>1                             | 7<br>2                             | 2 <br>2                             | 3<br>2                             | 4<br>2                             | 5<br>2                             | 6<br>3                             | 3<br>3                             | 4<br>3                             | 5<br>3                             | 6<br>4                             | 4<br>4                             | 5<br>4                             | 6<br>5                             | 5<br>5                             | 6<br>6                             | 6</pre><p>Queries</p><p>The query to retrieve all the child comments for comment #3 will be as follows</p><pre>SELECT *<br>FROM<br>   Comment AS c<br>JOIN parent_child_comment p ON c.comment_id = p.child_comment_id<br>WHERE <br>   p.parent_comment_id = 3;</pre><p>The query to retrieve all the parent comments for comment #6 will be as follows</p><pre>SELECT c.*<br>FROM<br>   Comment AS c<br>JOIN parent_child_comment p ON c.comment_id = p.child_comment_id<br>WHERE <br>   p.child_comment_id = 6;</pre><p>Closure Table is the most versatile design for modeling multilevel deep hierarchies , it requires additional table with a lot of rows , and the extra space is a tradeoff for reducing computing efficiencies</p><p>Note : The cost for other operations INSERT , UPDATE and DELETE should also be considered while creating a Data Model. Choose the one that suits your application requirement on the basis of the efficiencies of these operations.</p><p>Using a NO-SQL data model is another option for such problems and the design constraints should be considered equally.</p><p>Happy Reading !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cf9e81eb164" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/data-modeling-designing-facebook-style-comments-with-sql-4cf9e81eb164">Data Modeling — Designing Facebook style “comments” with SQL</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using FFT to analyse and cleanse time series data]]></title>
            <link>https://nehajirafe.medium.com/using-fft-to-analyse-and-cleanse-time-series-data-d0c793bb82e3?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0c793bb82e3</guid>
            <category><![CDATA[noise]]></category>
            <category><![CDATA[fft]]></category>
            <category><![CDATA[fourier-transform]]></category>
            <category><![CDATA[signal-processing]]></category>
            <category><![CDATA[scipy]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Wed, 15 Apr 2020 05:16:26 GMT</pubDate>
            <atom:updated>2020-04-15T05:16:26.836Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L31zQ0eq26EA-OkXLHPx6g.png" /></figure><p>Often when dealing with IOT data , the biggest challenge is encountering unexpected noise, this noise can be very annoying when you want to derive values from the signal. The noise can easily fool your models with inaccurate values</p><p>The question how can we clean this noise from the data when we do even know frequency of this noise , which may keep varying due to the operating conditions of sensors.</p><p>The key idea is to decompose the signal , once decomposed it would be easy to identify the noise components to be filtered out</p><h3><strong>What is a Fourier Series and FFT?</strong></h3><p><em>Baron Jean Baptiste Joseph Fourier</em> introduced the idea that :</p><blockquote>Any reasonable continuous periodic function can be represented by a series of sines</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTmWlVEv8RUyOCt59oDYww.png" /></figure><p>The above signal ca be decomposed into two discrete signals as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6qdPYODJhb3c42RzbYyGEg.png" /></figure><p>Now if we can find the frequency and amplitude components of these individual signals, it would be easy to filter recover or filter either of them.This can be easily achieved by applying FFT on the original signal.</p><p>Yes. That’s what a Fourier transform does, It takes up a signal and decomposes it to the frequencies that made it up.</p><h3><strong>Signal Generation</strong></h3><p>Lets start by creating a signal</p><pre>import numpy as np</pre><pre>#Seconds to generate data for<br>sec = 3</pre><pre># time range with total samples of 1000 from 0 to 3 with time interval equals 3/1000<br>time = np.linspace(0, sec, 1000, endpoint=True)<br></pre><pre># Generate Signal<br>signal_freq = 2 # Signal Frequency<br>signal_amplitude = 10 # Signal Amplitude</pre><pre>#Sine wave Signal<br>signal = signal_amplitude*np.sin(2*np.pi*signal_freq*time)</pre><p>The code will generate a 2 hz signal with amplitude of 10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p6y1APelo9BwKwnbslQSrA.png" /></figure><p>Now lets add some 50hz noise with amplitude of 3 to the above signal and create a new Signal</p><pre># Lets add some noise to the Signal<br>noise_freq = 50 # Noise Frequency<br>noise_amplitude = 3 # Noise Amplitude</pre><pre>#Sine wave Noise<br>noise = noise_amplitude*np.sin(2*np.pi*noise_freq*time) wave</pre><pre># Generated Signal with Noise<br>signal_noise = signal + noise</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7lARb-X34zLcI1FM1zddA.png" /></figure><h3><strong>FFT to decompose Signal</strong></h3><p>We will use the python scipy library to calculate FFT and then extract the frequency and amplitude from the FFT,</p><pre>from scipy import fftpack</pre><pre>sig_noise_fft = scipy.fftpack.fft(signal_noise)<br>sig_noise_amp = 2 / time.size * np.abs(sig_noise_fft)<br>sig_noise_freq = np.abs(scipy.fftpack.fftfreq(time.size, 3/1000))</pre><p>The following plot can be generated by plotting <em>“sig_noise_freq” </em>vs<em> “sig_noise_amp”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*E5y-pqhJXRFhG9e2AaebgA.png" /></figure><h3>Calculating the Amplitude</h3><p>All the amplitudes are stored in <em>“sig_noise_amp” , </em>we just need to fetch the top 2 amplitudes from the list</p><pre>signal_amplitude = pd.Series(<em>sig_noise_amp</em>).nlargest(2).round(0).astype(int).tolist()</pre><pre>print(signal_amplitude)</pre><p>Output : [10, 3]</p><h3>Calculating the Frequency</h3><pre>#Calculate Frequency Magnitude<br>magnitudes = abs(sig_noise_fft[np.where(sig_noise_freq &gt;= 0)])</pre><pre>#Get index of top 2 frequencies<br>peak_frequency = np.sort((np.argpartition(magnitudes, -2)[-2:])/sec)</pre><pre>print(peak_frequency)</pre><p>Output : [ 2 ,50]</p><h3>Filtering the Noise</h3><p>Noise can be classified as a signal with high frequency and low amplitude. In our case the Noise has a frequency of 50 Hz and amplitude of 3.</p><p>Since we have already calculated the frequency and amplitude components of the signal , we can now filter out the signal with high frequency and low amplitude</p><p>We will use Butterworth Low Pass Filter , details can be found <a href="https://medium.com/analytics-vidhya/how-to-filter-noise-with-a-low-pass-filter-python-885223e5e9b7">here</a> , the cutoff frequency will be the <em>peak_frequency[0]</em></p><pre>from scipy.signal import butter,filtfilt</pre><pre># Filter requirements.<br>fs = 50.0       # sample rate, Hz<br>cutoff = peak_frequency[0]     # desired cutoff frequency of the filter, Hz ,      slightly higher than actual 2 Hz<br>order = 2       # sin wave can be approx represented as quadratic<br></pre><pre>def butter_lowpass_filter(data, cutoff, fs, order):<br>    print(&quot;Cutoff freq &quot; + str(cutoff))<br>    nyq = 0.5 * fs # Nyquist Frequency<br>    normal_cutoff = cutoff / nyq<br>    # Get the filter coefficients <br>    b, a = butter(order, normal_cutoff, btype=&#39;low&#39;, analog=False)<br>    y = filtfilt(b, a,data)<br>    return y<br></pre><pre># Filter the data, and plot filtered signals.<br>y = butter_lowpass_filter(signal_noise, cutoff, fs, order)</pre><p>Now lets plot the filtered Signal “Y”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6aNrjYgpWTxN5tmT-61D-w.png" /></figure><p>Voila ! we can see that we have recovered the original signal after filtering the Noise</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0c793bb82e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to filter noise with a low pass filter — Python]]></title>
            <link>https://medium.com/analytics-vidhya/how-to-filter-noise-with-a-low-pass-filter-python-885223e5e9b7?source=rss-5f8b72a3e110------2</link>
            <guid isPermaLink="false">https://medium.com/p/885223e5e9b7</guid>
            <category><![CDATA[scipy]]></category>
            <category><![CDATA[low-pass-filter]]></category>
            <category><![CDATA[signal-processing]]></category>
            <category><![CDATA[noise]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Neha Jirafe]]></dc:creator>
            <pubDate>Fri, 27 Dec 2019 19:35:34 GMT</pubDate>
            <atom:updated>2024-01-16T11:14:48.520Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to filter noise with a low pass filter — Python</h3><p>Recently while I was working on processing a very high frequency signal of 12.5 Khz , i.e. 12500 samples per second or a sample every 80 microsecond. What was more <a href="https://www.analyticsvidhya.com/blog/2022/03/audio-denoiser-a-speech-enhancement-deep-learning-model/">interesting</a> is that I had to derive various data points into this data set.</p><p>This is how my data in a single cycle looked like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvAQCVR6RV4BvlbVqHb5sg.png" /></figure><p>You can see the noise when I zoom in the data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCkGzV70IpdvF6EEIVRPaw.png" /></figure><p>So now consider, if had to determine the point where the curve starts it rise.</p><p>With so much of noise there is a very high probability of getting false positive data point. Also imagine the performance of the algorithm with so much fluctuation in the data.</p><p>I would start with some signal processing basics , which are essential to understand before we jump into code.</p><h3>Basics : Band Pass Filters</h3><p>The four common filters.</p><ol><li>Low-pass filter, passes signals with a <a href="https://www.analyticsvidhya.com/blog/2022/03/audio-denoiser-a-speech-enhancement-deep-learning-model/">frequency</a> lower than a certain cutoff frequency and attenuates signals with frequencies higher than the cutoff frequency.</li><li>High-pass filter, passes signals with a frequency higher than a certain cutoff frequency and attenuates signals with frequencies lower than the cutoff frequency.</li><li>A band-pass filter can be formed by cascading a high-pass filter and a low-pass filter.</li><li>A band-reject filter is a parallel combination of low-pass and high-pass filters.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*wr3WEn9ix-pCHpG09UmqLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*7leMx5vvmA6JJaGVSn5irg.png" /></figure><p>Now lets see a sample data ,which would be ideal to work with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WLMQw9hsY1G6w8oupNozGQ.png" /></figure><p>As you can see the distortion caused by a lot of noise has deformed actual data which is a sin wave data.</p><ul><li>Sample Period — 5 sec (t)</li><li>Sampling Freq — 30 samples / s , i.e 30 Hz (fs)</li><li>Total Samples — (fs x t) = 150</li><li>Signal Freq = 6 signal / 5 sec = 1.2 Hz</li></ul><p>This means we need a filter that would pass the signal with at most frequency of 1.2 Hz , However in real life the signal frequency may fluctuate , hence it would be good if we choose a slightly higher number than the ideally calculated frequency.</p><p>You can also try using FFT (Fast Fourier Transform) to find investigate the frequencies and amplitudes of the Signal vs the noise components, more details along with code can be found <a href="https://medium.com/@nehajirafe/using-fft-to-analyse-and-cleanse-time-series-data-d0c793bb82e3">here</a></p><h3>Butterworth Filter</h3><p>The frequency response of the Butterworth filter is maximally flat (i.e. has no <a href="https://en.wikipedia.org/wiki/Ripple_(filters)">ripples</a>) in the passband and rolls off towards zero in the stopband, hence its one of the most popular low pass filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*7NoNi6QmSMxb73YcnuV9YA.png" /></figure><h3>Nyquist Frequency</h3><p>The term Nyquist is often used to describe the <a href="http://astronomy.swin.edu.au/cosmos/N/Nyquist+Rate"><strong><em>Nyquist sampling</em></strong></a><em> rate</em> or the <em>Nyquist </em><a href="http://astronomy.swin.edu.au/cosmos/F/Frequency"><strong><em>frequency</em></strong></a>.</p><p>The <a href="http://astronomy.swin.edu.au/cosmos/N/Nyquist+Rate"><strong>Nyquist rate</strong></a> or frequency is the minimum rate at which a finite bandwidth signal needs to be sampled to retain all of the information. If a time series is sampled at regular time intervals <em>dt</em>, then the Nyquist rate is just 1/(2 <em>dt</em> ).</p><h3>Lets jump into Code</h3><p>Step 1 : Define the filter requirements</p><ul><li>Sample Period — 5 sec (t)</li><li>Sampling Freq — 30 samples / s , i.e 30 Hz (fs)</li><li>Total Samples — (fs x t) = 150</li><li>Signal Freq = 6 signal / 5 sec = 1.2 Hz</li><li>Nyquist Frequency = 0.5 * fs</li><li>order = Polynomial order of the signal</li></ul><pre>import numpy as np<br>from scipy.signal import butter,filtfilt</pre><pre># Filter requirements.<br>T = 5.0         # Sample Period<br>fs = 30.0       # sample rate, Hz<br>cutoff = 2      # desired cutoff frequency of the filter, Hz ,      slightly higher than actual 1.2 Hz</pre><pre>nyq = 0.5 * fs  # Nyquist Frequency</pre><pre>order = 2       # sin wave can be approx represented as quadratic<br>n = int(T * fs) # total number of samples</pre><p>Step 2 : Create some sample data with noise</p><pre># sin wave<br>sig = np.sin(1.2*2*np.pi*t)</pre><pre># Lets add some noise<br>noise = 1.5*np.cos(9*2*np.pi*t) + 0.5*np.sin(12.0*2*np.pi*t)</pre><pre>data = sig + noise</pre><p>Step 3 : Filter implementation using scipy</p><pre>def butter_lowpass_filter(data, cutoff, fs, order):<br>    normal_cutoff = cutoff / nyq<br>    # Get the filter coefficients <br>    b, a = butter(order, normal_cutoff, btype=&#39;low&#39;, analog=False)<br>    y = filtfilt(b, a, data)<br>    return y</pre><p>Step 4 : Filter and plot the data</p><pre># Filter the data, and plot both the original and filtered signals.<br>y = butter_lowpass_filter(data, cutoff, fs, order)</pre><pre>fig = go.Figure()</pre><pre>fig.add_trace(go.Scatter(<br>            y = data,<br>            line =  dict(shape =  &#39;spline&#39; ),<br>            name = &#39;signal with noise&#39;<br>            ))<br>fig.add_trace(go.Scatter(<br>            y = y,<br>            line =  dict(shape =  &#39;spline&#39; ),<br>            name = &#39;filtered signal&#39;<br>            ))</pre><pre>fig.show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GnLLpT6HKxqdPbUJJinOAQ.png" /></figure><p>It’s surprising how smoothly the filtered signal aligns to the data, feels like ‘butter’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*l4W8J9xyEe6Uoywd.jpg" /></figure><p>And that’s it for today ! Happy Filtering</p><p>Check out my other articles</p><ul><li><a href="https://medium.com/@nehajirafe/how-to-make-jupyter-notebooks-extensible-and-reusable-ae11bd3175c">How to make Jupyter Notebooks Extensible and Reusable</a></li><li><a href="https://medium.com/@nehajirafe/data-modeling-designing-facebook-style-comments-with-sql-4cf9e81eb164">Data Modeling — Designing Facebook style “comments” with SQL</a></li><li><a href="https://medium.com/@nehajirafe/using-fft-to-analyse-and-cleanse-time-series-data-d0c793bb82e3">Using FFT to analyse and cleanse time series data</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=885223e5e9b7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/how-to-filter-noise-with-a-low-pass-filter-python-885223e5e9b7">How to filter noise with a low pass filter — Python</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>