<?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 yonichanowitz on Medium]]></title>
        <description><![CDATA[Stories by yonichanowitz on Medium]]></description>
        <link>https://medium.com/@yonichanowitz?source=rss-4b8e5a179142------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SdxH5WZ6TRIOtaqyqSL4mA.jpeg</url>
            <title>Stories by yonichanowitz on Medium</title>
            <link>https://medium.com/@yonichanowitz?source=rss-4b8e5a179142------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:43:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yonichanowitz/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[Accurate data VS Clean data]]></title>
            <link>https://medium.com/@yonichanowitz/accurate-data-vs-clean-data-eb86ce2abb53?source=rss-4b8e5a179142------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb86ce2abb53</guid>
            <dc:creator><![CDATA[yonichanowitz]]></dc:creator>
            <pubDate>Wed, 13 Jul 2022 14:51:40 GMT</pubDate>
            <atom:updated>2022-07-14T17:46:08.327Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="zero and one fighting by Elise Goldberg" src="https://cdn-images-1.medium.com/max/1024/1*DWkxSNxRVf7hprUPhUVkKA.jpeg" /></figure><p>[Artwork by Elise Goldberg instagram @elisetgolberg ]</p><p>life is messy, people are messy. i am messy</p><p>any data that accurately reflects people will therefore be messy. but none the less, data scientist have to try to make sense of the mess to become the modern day prophets giving people advice that we magically receive in divine inspiration from our silicon boxes of calculation</p><p>I asked a bunch of Jews on twitter, because I have a decent following on twitter, who are mostly Jews, to tell me what their affiliation was</p><p>And if you know anything about Judaism, you know that the more boxes you make for people, the less they fit into them.</p><p>so, unlike the <a href="https://www.pewforum.org/2021/05/11/jewish-americans-in-2020/">PEW research center</a>, I did the only sensible thing and asked a single ambiguous question</p><p>“What is your denomination”</p><p>Getting responses required me begging people to retweet the survey, but i got 400+ responses!</p><p>however, as mentioned above, the data was messy. for instance some of the responses were (these were legit responses)</p><p>“Mandalorian”</p><p>“I’m not Jewish, I’m just trying to help you out bc you said you needed data. I’m a progressive Mennonite Christian.”</p><p>“Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam faucibus malesuada posuere. Nulla congue blandit massa. Curabitur sit amet ipsum egestas eros volutpat imperdiet. Nam erat velit, scelerisque”</p><p>“I think my final form is chasidishe-leaning heimish but I’m a convert so by definition I can’t really be heimish, which is pretty sad. This is definitely TMI but you said you want messy data so here it is.”</p><p>i feel like smacking my head against a keyboard, but i literally asked for this, so here goes</p><p>step 1) find categories that match and simplify them to a single string</p><p>IRL, if i was trying to prove something this would be bad practice because some people might have invented a category for themselves [example: Chasidic egal] and i am putting them into a category that my bias has decided is the correct place to put them. very bad</p><p>but the data isn’t that accurate reflection of English speaking Judaism anyways, so I&#39;m not that worried (all the people who answered are using social media often, mostly on twitter, and total about 450 people. there are approximately 8m Jews in the world who speak English. and I&#39;m willing to bet at least an 1/8th of them don’t use Twitter or Facebook)</p><p>the only real world concept i’m going to use is what i call the “sect awareness bump” which i wrote about <a href="https://medium.com/p/7571b0c42aa1/edit">here</a> .</p><p>so first, Data cleaning! yay! (ugh…)</p><p>Step 2: put in a file, and launch a Jupyter notebook</p><p>on my machine, i used git bash terminal to create the file touch jews_denom.ipynb and then opened the file in VScode to add a single, most important line of code. it’s my go-to code for starting a new notebook, and i feel it’s essential:</p><p>dude</p><p>(for some reason, if you make an empty notebook, my version of anaconda doesn’t like it, thinks it’s a json issue, and refuses to open the notebook)</p><p>and then launch the notebook! jpntb (that’s an <a href="https://dev.to/mhjaafar/git-bash-on-windows-adding-a-permanent-alias-198g">alias</a> i made for jupyter notebook in git bash, because aliases are cool)</p><p>then, in my notebook i type import pandas as pd because i like black and white bears. Seriously though, pandas is a great library for working with databases. using pandas, i make a dataframe, and start to filter the column with the handy dandy filter functions pandas comes with.</p><p>i also import numpy and seaborn because i will need to do mathematical stuff, and i like seeing fancy shmancy graphs.</p><p>i set a variable to hold the CSV file as a dataframe, and check it’s contents. my notebook looks like this now</p><figure><img alt="a dataframe showing the steps mentioned above in this article" src="https://cdn-images-1.medium.com/max/1024/1*v1r3OhluycoiwQuYyL8R9Q.png" /></figure><p>there’s a lot of NaNs, and unlike sweet grandmothers, these NaNs are a pain. i’m going to ignore them, as they aren’t in the column that i’m focusing on. the column i’m focusing on being What is your denomination .</p><p>i want to use the .loc[] function to filter the dataframe and get counts of what i consider to be the different major denominations. But referencing a column name with spaces in it makes errors. so,</p><p>3) fix column names</p><p>I&#39;m going to replace spaces with underscores, using the old traditional way of getting code, ripping it off stack overflow jwes_stst.columns = [col.replace(&#39;&#39;,&#39;_&#39;) for col in jews_stst.columns] list comprehensions are cool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Axh60ZNyCZ-CY5yTUwHSMw.png" /></figure><p>as said earlier, my filter criterion is completely decided by me, and probably doesn’t give an accurate reflection of the Jewish community at large. but this is about cleaning, not accurate reporting</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb86ce2abb53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PIP and not reading]]></title>
            <link>https://medium.com/@yonichanowitz/pip-and-not-reading-b360dc6f1e2c?source=rss-4b8e5a179142------2</link>
            <guid isPermaLink="false">https://medium.com/p/b360dc6f1e2c</guid>
            <category><![CDATA[noob]]></category>
            <category><![CDATA[pip-install]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[yonichanowitz]]></dc:creator>
            <pubDate>Mon, 25 Apr 2022 17:11:48 GMT</pubDate>
            <atom:updated>2022-04-25T17:11:48.133Z</atom:updated>
            <content:encoded><![CDATA[<p>i have a tendency to learn by doing, so i throw myself into projects, expecting to mess up, then learn from my mistakes. it helps me internalize information better.</p><p>but python is not javascript. i learned this the hard way.</p><p>as any seasoned Python dev will tell you, “always develop in a virtual environment”. heck, one of the default packages included with python helps you do just that.</p><p>but i didn’t read the disclaimer, and i didn’t wonder why (i should have), until i made the big mistake. i installed ALL the packages from ALL the projects i was working on globally.</p><p>for those new to python, python, as of the writing of this article includes pip. pip is a package manager. that means its a program that helps you install other smaller programs to make development easier and faster. it also has this cool thing called ‘package freezing’. if any of you are familiar with npm, its the equivalent of making a ‘packagelock.json’ file.</p><p>if you are so new that you didn’t understand any of that, in short, package managers are programs that 1) download, 2) organize and 3) keep track of other smaller programs that you use for making new software. what’s the point? let’s say you have an app that shows people where their location is relative to the nearest pizza store. to make your app, you find there already exist a geolocation package that does most of the work for you. it would be stupid to write the whole thing from scratch yourself, so you download the package. you then sit for weeks sweating and bleeding, finally making your app that you are ready to release to the world! one little problem, the geolocation package that most of your app relies on to work, changed a class method, that could break your entire app, wasting all your precious time and effort. in swoops package managers. it keeps a record of WHICH SPECIFIC VERSION of the package you were using, and makes sure that when you send the app to production and release it to the world, it will have that exact version, and not the new one, making sure your app still works</p><p>back to my mistake. pip can make a virtual environment, that has a separate pip instance that keeps track of packages in THE SPECIFIC PROJECT you are working on. so, for example, i am working on 3 things right now. 1) a stupid data science project that is for proving i know how to clean data using Jewish peoples opinions of themselves 2) a data science project that predicts housing market trends and 3) a django app that records peoples feelings as colors, which god willing I hope to get to market if i can actually sit down and focus for a few days.</p><p>each of those projects has separate different dependencies, that should be recorded in the individual virtual environments, and saved accordingly. definitely not stored globally. because if you store the packages globally, they will be installed in every python project i am making. a really stupid space wasting thing to do</p><p>which is what i did</p><p>so i had to delete my global instance of pip, and all it’s packages, then i reinstalled pip globally.</p><p>this time i did something smart though. i used pip freeze on my django project to at least save those. so it might be bloated when i send it to production, but i’ll clean it afterwards. first i have to get it working, make a mess, and learn from my mistakes</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b360dc6f1e2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Jewish Awareness Bump]]></title>
            <link>https://medium.com/@yonichanowitz/the-jewish-awareness-bump-7571b0c42aa1?source=rss-4b8e5a179142------2</link>
            <guid isPermaLink="false">https://medium.com/p/7571b0c42aa1</guid>
            <dc:creator><![CDATA[yonichanowitz]]></dc:creator>
            <pubDate>Thu, 17 Feb 2022 17:38:33 GMT</pubDate>
            <atom:updated>2022-02-17T17:38:33.744Z</atom:updated>
            <content:encoded><![CDATA[<p>or “frum hill” for people from my community.</p><p>the concept is, Jewish people can, for lack of a better term, be divided into two groups.</p><p>those who accept the Talmudic Rabbis decisions as godly inspired and requiring reverence,</p><p>and those who believe that the Talmud and Torah should be scrutinized under the modern lens of science and rationalism to apply it to our modern world.</p><p>People on each side of the ‘bump’ can often name at least ten denominations on their side, and maybe 1 or 2 on the other side.</p><p>for instance, on the frum side you would find chasidish, yekish, yeshivish, sphardi, modern-orthodox. and within nthose groups there are several sub groups i could name off to you right now)</p><p>the not frum side would have conservative, reform, reconstructionist, trad-egal, renewal. and many more that i don’t know because i’m on the other side of the bump</p><p>these are boxes and terms we created for ourselves, mostly because Jews want to feel comfortable in our communities, and its hard to feel comfortable in a place where people don’t share lots of things with you, especially customs.</p><p>there are some ideological differences within different groups, but that&#39;s not the main separating factors, it’s mostly customs and comfort. at least for the frum side of the bump. i can’t really speak for the other side, as all i know about people who hang there is what i glean from twitter, which is often a dramatization of reality, and misses important nuance.</p><p>the bump, for meproves one thing.</p><p>after milenia, most jews still can’t agree on a single best way to do things</p><p>and for the most part, that’s okay</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7571b0c42aa1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anaconda for Ubuntu on Windows]]></title>
            <link>https://medium.com/@yonichanowitz/anaconda-for-ubuntu-on-windows-cdc3dc203f3a?source=rss-4b8e5a179142------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdc3dc203f3a</guid>
            <category><![CDATA[anaconda]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[yonichanowitz]]></dc:creator>
            <pubDate>Wed, 12 Jan 2022 19:10:48 GMT</pubDate>
            <atom:updated>2022-01-27T03:34:33.813Z</atom:updated>
            <content:encoded><![CDATA[<p>I screwed up</p><p>but I fixed it. (this feels like my slogan unfortunately)</p><p>i decided to be a smart alec and ignore the Anaconda installations for windows. the Lesson that Flatiron School gives on how ti install Anaconda on a windows environment specifically says to check the ‘add to path’ checkbox, to make sure that I would be able to use BASH commands from A git Bash terminal and have access to Anaconda there.</p><p>i figured out how to add it afterwards, and I THINK I won’t have to remove anaconda and download it again (please god)</p><p>first you have to go to [from the start menu] control panel -&gt; system and security -&gt; system -&gt; , which brings you to the “new” (since windows 8 i think) settings page. at the bottom right side click advanced system settings. the you get the popup</p><figure><img alt="advanced system settings" src="https://cdn-images-1.medium.com/max/845/1*yk_DQx8jAlUVts9_XJbWdg.png" /></figure><p>then click on ‘Environment Variables’ -&gt; then select the path variable line and click ‘Edit’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*S32XkSBOoGJy-dlQKeRleg.png" /></figure><p>you have to add three variables, each on a new line (why, I&#39;m not sure)</p><p>each one begins with C:\Users\{your user name}\anaconda3\ where {your user name} is your computer’s user name. in my case, C:\Users\yonic\anaconda3\</p><p>and they end with [respectively]</p><p>Library\bin ,</p><p>Scripts ,</p><p>condabin.</p><p>so for me those variables were C:\Users\yonic\anaconda3\Library\bin , C:\Users\yonic\anaconda3\Scripts , C:\Users\yonic\anaconda3\condabin</p><p>Jupyter Notebooks works with it, so I&#39;m pretty confident that it’s ok, and i did what i was supposed to</p><p>but i still wanted it working on Ubuntu.</p><p>Linux is like an expensive Japanese kitchen knife, once you start using it, you feel everything else is sub-par [except Linux is free!]</p><p>thankfully, windows 10 and 11 have a downloadable Ubuntu subsystem for windows in their app store. much easier to install and use than before (i had to install windows on top of ubuntu on a different machine, but that&#39;s a story for another time)</p><p>so i tried to install Anaconda on the Ubuntu subsystem, but lo and behold, anaconda wants you to download it with a GUI, and doesn&#39;t give detailed instructions for ONLY using the command line to install it</p><p>with a little Googling, I found this Gist from Emily Kauffman (a life saver!) <a href="https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da">https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da</a> where she explains in detail how to solve my issue</p><p>but the problem didn&#39;t end there. once I had anaconda installed, i needed to test Jupyter notebook (which worked) and I tried pandas (also worked) but i realized, the Jupyter Notebook had no access to my windows files!!! because it’s a virtual machine (which is good because python experimentation is safer in a VM) but i needed it to access CSVs that I downloaded to run experiments on!</p><p>a little more googling, turns out that Ubuntu has access to the whole file system, but it has to poke it’s head up a little. this stack exchange answer helped <a href="https://superuser.com/questions/1066261/how-to-access-windows-folders-from-bash-on-ubuntu-on-windows">https://superuser.com/questions/1066261/how-to-access-windows-folders-from-bash-on-ubuntu-on-windows</a> , sort of.</p><p>Jupyter still needed the full path of my download file.</p><p>Then I remembered the file structure, and confirmed in ubuntu that it had access to the file structure (cd /).</p><p>So, in a Jupyter notebook, that is being served from Ubuntu on windows (I should really buy more RAM) using pandas to access a csv file, i have to tell it to look in:</p><p>“/../mnt/c/Users/yonic/Downloads/UselessCholentInfo”</p><p>(yes that&#39;s the actual name of my spreadsheet, no i will not be explaining it)</p><p>and pandas finds the file, displaying a nice little list with ridiculously long header keys…. because i forgot to clean my data</p><p>lessons learned 1) read the instructions in full, or suffer 2) clean your csv headers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdc3dc203f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>