<?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 Valeria Rozenbaum on Medium]]></title>
        <description><![CDATA[Stories by Valeria Rozenbaum on Medium]]></description>
        <link>https://medium.com/@valeria.rozenbaum?source=rss-7e4c47bd7855------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NlV03DJEhacZLAIgJbDrRA.jpeg</url>
            <title>Stories by Valeria Rozenbaum on Medium</title>
            <link>https://medium.com/@valeria.rozenbaum?source=rss-7e4c47bd7855------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:12:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@valeria.rozenbaum/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[Dataviz with Bokeh: A Short Guide]]></title>
            <link>https://medium.com/@valeria.rozenbaum/exploring-data-with-bokeh-a-short-guide-3e324b0898c4?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e324b0898c4</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[bokeh]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Wed, 24 May 2017 13:50:53 GMT</pubDate>
            <atom:updated>2017-05-24T15:28:06.157Z</atom:updated>
            <content:encoded><![CDATA[<p>A little while ago, I was tasked with doing a code along on visualizing data with a tool my class wasn’t familiar with. Doing some research on what’s new in the Python viz world, I came across a ton of great libraries that I had no idea existed.</p><p>While they all looked like phenomenal tools, one that stood out in particular was Bokeh.</p><p>Bokeh is an interactive visualization tool for Python that is made up of two components:</p><ul><li>Javascript library(BokehJS)that handles all the user interaction and rendering</li><li>Python library that generates the JSON objects that the Javascript library takes as inputs to create “scenegraphs”</li></ul><p>Bokeh has 2 primary uses:</p><ul><li>In browser interactive visualization — front end &gt; immediate output</li><li>Server environment — back end &gt; updating and manipulating data in order to update the hosted visualization</li></ul><p>What’s cool is that Bokeh allows you to create informative and interactive visualizations relatively easily. There’s a ton of functionality available “out of the box” and it interacts with the data directly from Python.</p><p>There’s a good amount of pros when it comes to Bokeh. For one, the API is easy to use. Most importantly though, the amount of tutorials and documentation that the developers provide is amazing.</p><p>When it comes to the cons, it’s important to consider that Bokeh is a new library and is constantly being developed AKA changes are unexpected and can break your code.</p><p>If you’re interested in seeing more, feel free to check out my <a href="http://nbviewer.jupyter.org/github/vrozenbaum/Bokeh-Exploration/blob/3816f9b79718e7a8dd15f7808b2522c9739fd0e8/VRozenbaum%20-Bokeh%20Presentation.ipynb">code-along</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e324b0898c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feeding the Data Monster]]></title>
            <link>https://medium.com/@valeria.rozenbaum/feeding-the-data-monster-ec44531c4912?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec44531c4912</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[open-data]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Wed, 24 May 2017 13:24:38 GMT</pubDate>
            <atom:updated>2017-05-24T13:24:38.542Z</atom:updated>
            <content:encoded><![CDATA[<p>Even before my Data Science Immersion Program, I had the *almost* unhealthy habit of hoarding data and dataset resources. Below is a list of sites I’ve found over the last couple of years that are chock full of data.</p><ul><li><a href="https://snap.stanford.edu/data/">Stanford Large Network Dataset Collection</a></li><li><a href="https://www.reddit.com/r/datasets/">r/datasets</a></li><li><a href="https://www.opendatanetwork.com/">Open Data Network</a></li><li><a href="http://www.equality-of-opportunity.org/data/index.html#college">The Equality of Opportunity Project</a></li><li><a href="http://www.nber.org/data/">Data</a></li><li><a href="http://www.icpsr.umich.edu/icpsrweb/ICPSR/">Find Data</a></li><li><a href="https://www.kaggle.com/datasets">Find Open Datasets for AI and Research | Kaggle</a></li><li><a href="http://academictorrents.com/browse.php?cat=6">Academic Torrents</a></li><li><a href="https://data.humdata.org/">Humanitarian Data Exchange | Find &amp; Use Crisis Data | HDX</a></li><li><a href="https://datahub.io/">DataHub</a></li><li><a href="https://deeplearning4j.org/opendata">Open Datasets for Deep Learning &amp; Machine Learning - Deeplearning4j: Open-source, Distributed Deep Learning for the JVM</a></li><li><a href="https://docs.google.com/spreadsheets/d/12aptaQdVrd37QH40nbT2YpTZqd2fWe-V8NQXRsU0Leo/edit#gid=0">Open data platforms, catalogues and reports: resources from OpenDataMonitor</a></li><li><a href="https://docs.google.com/spreadsheets/d/1wZhPLMCHKJvwOkP4juclhjFgqIY8fQFMemwKL2c64vk/edit#gid=0">Data Is Plural - Structured Archive</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec44531c4912" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Technical Interviews: The String Compression Problem]]></title>
            <link>https://medium.com/@valeria.rozenbaum/mastering-technical-interviews-the-string-compression-problem-e2b778971f2b?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2b778971f2b</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Sun, 21 May 2017 18:30:52 GMT</pubDate>
            <atom:updated>2017-05-21T18:30:52.410Z</atom:updated>
            <content:encoded><![CDATA[<p>In order to prepare for the technical interviews that are in our not so distant future, my Data Science Immersion classmates and I have been practicing solving the most common problems our instructors have been given.</p><p>Below are a couple of the solutions we came up with for the frequently asked string compression problem.</p><h3>Challenge 3: String Compressor</h3><p>Implement a method to perform basic string compression using the counts of repeated characters. For example, the string ‘aabcccccaaa’ would become a2b1c5a3. If the “compressed” string would not become smaller than the original string, your method should return the original string. You can assume the string has only uppercase and lowercase letters (a-z).</p><pre><em>#Brendan Bailey</em></pre><pre><strong>def</strong> string_compressor(word):<br>    compressed_word = &quot;&quot;<br>    count_letter = &quot;&quot;<br>    count = 0<br>    <br>    <strong>for</strong> letter <strong>in</strong> word:<br>        <strong>if</strong> letter == count_letter:<br>            count += 1<br>        <strong>else</strong>:<br>            <strong>if</strong> count &gt; 0:<br>                compressed_word += count_letter + str(count)<br>            count_letter = letter<br>            count = 1<br>    compressed_word += count_letter + str(count)<br>    <br>    <strong>if</strong> len(compressed_word) &lt; len(word):<br>        <strong>return</strong> compressed_word<br>    <strong>else</strong>:<br>        <strong>return</strong> word<br><br><strong>print</strong> string_compressor(&#39;aabcccccaaa&#39;)<br><br><strong>print</strong> string_compressor(&#39;cat&#39;)</pre><p>My classmate Jenny Doyle was also able to implement a solution using different approach.</p><pre><strong>#Jenny Doyle</strong></pre><pre><strong>def</strong> compressed_string(string):<br>    compressed = &#39;&#39;<br>    <strong>if</strong> len(string) != set(string):<br>        <strong>for</strong> i <strong>in</strong> set(string):<br>            count = 0<br>            <strong>for</strong> j <strong>in</strong> list(string):<br>                <strong>if</strong> i == j:<br>                    count += 1<br>            compressed += i+str(count)<br>        <strong>return</strong> compressed<br>    <strong>else</strong>:<br>        <strong>return</strong> string</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2b778971f2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Technical Interviews: The Unique Characters Problem]]></title>
            <link>https://medium.com/@valeria.rozenbaum/mastering-technical-interviews-the-unique-characters-problem-588be78be236?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/588be78be236</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Sun, 21 May 2017 18:15:15 GMT</pubDate>
            <atom:updated>2017-05-21T18:16:16.520Z</atom:updated>
            <content:encoded><![CDATA[<p>Like with most other things, when it comes to coding, practice makes perfect… and efficient and readable and clean.</p><p>In order to prep for the technical interviews that are in our inevitable future, my Data Science Immersion cohort have been tackling the most common programming problems our instructors have been asked to solve.</p><p>Below is a crowd sourced compilation of solutions to the very common unique character function.</p><h3>Challenge 4: Unique Characters</h3><p>Implement an algorithm to determine if each character in a string is unique.</p><pre>#Valeria Rozenbaum</pre><pre><strong>def</strong> is_unique(string):<br>    char_dict = {}<br>    <strong>for</strong> char <strong>in</strong> string:<br>        <strong>if</strong> char_dict.get(char):<br>            <strong>return</strong> False<br>        <strong>else</strong>:<br>            char_dict[char] = True<br>    <strong>return</strong> True</pre><p>My classmate Brendan took a couple of really creative shots at the problem.</p><pre><em>#Brendan Bailey</em></pre><pre>#Solution 1</pre><pre><strong>def</strong> unique_characters(word):<br>    unique_set = set([])<br>    unique_phrase = &quot;All characters are unique&quot;<br>    <strong>for</strong> letter <strong>in</strong> word.lower():<br>        <strong>if</strong> letter <strong>in</strong> unique_set:<br>            unique_phrase = &quot;Not all characters are unique&quot;<br>        <strong>else</strong>:<br>            unique_set.add(letter)<br>    <strong>print</strong> word, &quot;:&quot;, unique_phrase</pre><pre><br>#Solution 2</pre><pre><strong>def</strong> unique_characters1(word):     <br>    unique_dict = {}     <br>    unique_phrase  = &quot;All characters are unique&quot;     <br>    <strong>for</strong> letter <strong>in</strong> word.lower():         <br>        <strong>try</strong>:             <br>            unique_dict[letter] +=1             <br>            unique_phrase = &quot;Not all characters are unique&quot;             <br>            <strong>break</strong>         <br>        <strong>except</strong> <strong>KeyError</strong>:             <br>            unique_dict[letter] = 1     <br>   <strong>print</strong> word, &quot;:&quot;, unique_phrase</pre><p>Brian Austin also took a great approach that was very different from my own.</p><pre><strong>#Brian Austin</strong></pre><pre><strong>def</strong> unstr_1(string):<br>    letter_counter = {}<br>    unique = True<br>    <strong>for</strong> i <strong>in</strong> string:<br>        <strong>if</strong> i <strong>not</strong> <strong>in</strong> letter_counter:<br>            letter_counter[i]=1<br>        <strong>else</strong>:<br>            letter_counter[i]+=1<br>    <strong>for</strong> i <strong>in</strong> letter_counter:<br>        <strong>if</strong> letter_counter[i]&gt;1:<br>            <strong>print</strong> &quot;Letter&quot;,i,&quot;is in the string&quot;,letter_counter[i],&#39;times&#39;<br>            unique =False<br>    <strong>if</strong> unique == True:<br>            <strong>return</strong> &quot;All letters unique&quot;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=588be78be236" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Technical Interviews: The Fizz Buzz Problem]]></title>
            <link>https://medium.com/@valeria.rozenbaum/mastering-technical-interviews-the-fizz-buzz-problem-58b686beda86?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/58b686beda86</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[technical-interview]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Sun, 21 May 2017 17:57:50 GMT</pubDate>
            <atom:updated>2017-05-21T17:57:50.995Z</atom:updated>
            <content:encoded><![CDATA[<p>While preparing to graduate from General Assembly’s Data Science Immersion Program, my class has been practicing our programming skills by implementing solutions to the most common programming problems instructors have been asked to solve at technical interviews. Apparently, the Fizz Buzz problem tends to be a favorite, so having a good understanding of what it’s asking and implementing the solution in code is great practice. Below are a couple of Fizz Buzz solutions we came up with.</p><h3>Challenge 2: Fizz Buzz</h3><p>Write a program that prints all the numbers from 1 to 100. For multiples of 3, instead of the number, print “Fizz”, for multiples of 5 print “Buzz”. For numbers which are multiples of both 3 and 5, print “FizzBuzz”.</p><pre><em>#Elias Brockman</em><br><br><strong>for</strong> x <strong>in</strong> range(0,101):<br>   <strong>if</strong> (x % 3 == 0) <strong>and</strong> (x % 5 == 0):<br>       <strong>print</strong> &quot;FizzBuzz&quot;<br>   <strong>elif</strong> x % 5 == 0:<br>       <strong>print</strong> &quot;Buzz&quot;<br>   <strong>elif</strong> x % 3 == 0:<br>       <strong>print</strong> &quot;Fizz&quot;<br>   <strong>else</strong>:<br>       <strong>print</strong> x</pre><p>Elias’ approach was very similar to my own below.</p><pre><strong>#Valeria Rozenbaum</strong></pre><pre><strong>for</strong> number <strong>in</strong> xrange(1,101):<br>   <strong>if</strong> number % 3 == 0:<br>       <strong>if</strong> number % 5 == 0:<br>           <strong>print</strong> “FizzBuzz”<br>       <strong>else</strong>:<br>           <strong>print</strong> “Fizz”<br>   <strong>elif</strong> number % 5 == 0:<br>       <strong>print</strong> “Buzz”<br>   <strong>else</strong>:<br>       <strong>print</strong> number</pre><p>As typical with these problems, the solutions are numerous and you can get very creative with how to approach them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58b686beda86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Technical Interviews: Project Euler Problem #4]]></title>
            <link>https://medium.com/@valeria.rozenbaum/mastering-technical-interviews-project-euler-problem-4-13a420d33caa?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/13a420d33caa</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[project-euler]]></category>
            <category><![CDATA[technical-interview]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Sun, 21 May 2017 17:39:06 GMT</pubDate>
            <atom:updated>2017-05-21T17:39:06.652Z</atom:updated>
            <content:encoded><![CDATA[<p>Project Eueler is a website that provides numerous mathematical and programming problems to anyone interested in sharpening their problem solving skills. They’ve also become quite popular in technical interviews for Data Scientist jobs, so if you think a job search is on the horizon, it’s a good idea to become familiar with them.</p><p>Now that my Data Science Immersion Program at General Assembly is wrapping up, we’ve been going over some of the most common Project Euler problems our instructors have been asked to solve in interviews. Below is a crowd sourced compilation of Project Eueler solutions to problem #4 from my class.</p><h3>Challenge 1.1: Largest Palindrome</h3><p>A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two 3-digit numbers</p><pre>#Rowan Langford</pre><pre>numbers = []<br>palindromes = []<br><strong>for</strong> i <strong>in</strong> range(900,1000):<br>    <strong>for</strong> j <strong>in</strong> range(900,1000):<br>        numbers.append(i*j)<br>    <br><strong>for</strong> number <strong>in</strong> numbers:<br>    <strong>if</strong> str(number) == str(number)[::-1]:<br>        palindromes.append(number)<br>        <br><strong>print</strong> max(palindromes)</pre><p>When it comes to Project Eueler problems, there are usually a ton of ways of getting to the solution.</p><pre><em>#Brian Austin</em></pre><pre><strong>def</strong> palindrome_check(num):<br>    stringnum = str(num)<br>    <strong>if</strong> stringnum == stringnum[::-1]:<br>        <strong>return</strong> True<br>    <strong>else</strong>:<br>        <strong>return</strong> False<br><br><strong>def</strong> prod_pal(b,e):<br>    nums1 = [i <strong>for</strong> i <strong>in</strong> range(b,e)]<br>    nums2 = [j <strong>for</strong> j <strong>in</strong> range(b,e)]<br>    pal_products = []<br>    <strong>for</strong> i <strong>in</strong> nums1:<br>        productlist = [i*j <strong>for</strong> j <strong>in</strong> nums2]<br>        <strong>for</strong> x <strong>in</strong> productlist:<br>            <strong>if</strong> palindrome_check(x) == True:<br>                pal_products.append(x)<br>    maxp = 0<br>    <strong>for</strong> y <strong>in</strong> pal_products:<br>        <strong>if</strong> y&gt;maxp:<br>            maxp = y<br>    <strong>return</strong> maxp<br><br>prod_pal(100,1000)</pre><p>It’s always fascinating to see how different someone’s approach may be to your own.</p><pre><em>#Michael Sanders</em> </pre><pre>result = 0 <br><strong>for</strong> i <strong>in</strong> range(100, 1000):     <br>    <strong>for</strong> n <strong>in</strong> range(100, 1000):         <br>        num = i * n         <br>        str_num = str(num)         <br>        rev_str = str_num[::-1]          <br>            <strong>if</strong> str_num == rev_str:             <br>                <strong>if</strong> num &gt; result:                 <br>                    result = num <strong>print</strong> result<br>print(n)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13a420d33caa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Analysis: Data Scientist Salaries Across the USA]]></title>
            <link>https://medium.com/data-science/exploration-analysis-data-scientist-salaries-across-the-usa-9e38aeb1e71a?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e38aeb1e71a</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[salary]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Mon, 01 May 2017 14:14:27 GMT</pubDate>
            <atom:updated>2017-05-01T14:54:59.300Z</atom:updated>
            <content:encoded><![CDATA[<p>In my previous <a href="https://medium.com/@valeria.rozenbaum/data-scientist-salaries-across-the-usa-4d089f09522d">post</a>, I talked about scraping Indeed.com for Data Scientist jobs across the United States. While I was able to scrape a little over 10,500 listings, few of them contained salary data and many of the salaries were hourly, monthly or weekly. After running a massive clean up on the data, I was left with 493 salaries to use for the modeling. The median salary was $100K with 236 of the listings being above the median and 257 below. I was excited to get to the modeling. However, before jumping to the grand finale, I wanted see what other insights I could gain from the data. This task called for me to pull one of my favorite data exploration tools from my data scientist toolbox — Tableau!</p><p>When, I loaded the data into Tableau, I was most interested in gaining an understanding of how Data Scientist salaries varied by location and which locations had the highest number of unique job listings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*DJjkNs9X_Qebf9urDwotZA.png" /></figure><p>Here we have a heat map of the average salary by State, with the darker hues representing a higher salary and the lighter ones showing the lower salaries. As we can see from the map, the state of Virginia seems to have the highest Data Scientist salaries with an average of $182K. At the bottom of the spectrum, we have Florida, with an average salary of $57,253.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*m_edtXSB5FvGklbdCbeVyg.png" /></figure><p>I was able to break down the numbers even further by looking at how average salaries fared by city. In the highest paying state of Virginia, the cities of McLean, Reston and Ambler took the leads with average salaries being $196K, $190K and $175K respectively. Out in the West Coast, San Francisco was following close behind with an average salary of $171,245. Looking at the lower range, Dania Beach, Florida sat at bottom with $30k. However, the other salaries from Florida managed to pull their numbers up a bit, with $51,311 and $91,000 in Coral Gables and Miami respectively.</p><p>With such a large range in salaries, I wanted to see what kind of job numbers I was really working with. After all, Virginia was at the top, but how many unique job listings was my sample actually working with. A small number of listings is not a lot to go by when you consider that other locations had many more vacancies to fill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwgoSLpElUOM08uhDVcjjg.png" /></figure><p>Above, we have a map sized by the number of unique job listings by state and colored by average salary. The colors range from dark red to dark green, with the darkest greens signifying the highest salaries and the darkest reds signifying the lowest. Here our previous numbers are put into perspective. While Virginia may have had the highest salaries, we were only looking at 3 unique jobs listings, this actually puts Virginia towards the bottom when it comes to opportunities. California seemed to stay true to its previous marks with 33 distinct job titles from 24 different companies and an average salary of $125K. Moreover, while New York and Illinois may not be the highest paying states(115k isn’t a number I’d complain about), they did have the largest amount of opportunities, with 55 and 37 unique job openings respectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e38aeb1e71a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/exploration-analysis-data-scientist-salaries-across-the-usa-9e38aeb1e71a">Exploratory Analysis: Data Scientist Salaries Across the USA</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Scraping for Data Scientist Salaries Across the USA]]></title>
            <link>https://medium.com/@valeria.rozenbaum/data-scientist-salaries-across-the-usa-4d089f09522d?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d089f09522d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Mon, 24 Apr 2017 14:18:57 GMT</pubDate>
            <atom:updated>2017-05-01T00:42:21.229Z</atom:updated>
            <content:encoded><![CDATA[<p>Our third project consisted of web scraping data scientist jobs from Indeed.com and creating a model that is able to predict whether a job’s salary will be above or below the median by the title.</p><p>I began by separating the scraper into 4 different functions that focused on scraping individual parts of each listing: Location, Salary, Company and Job Title.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*nKSODVuOD-eHHlcjSE1_xA.png" /><figcaption>The function that extracts the Company name from the listing</figcaption></figure><p>I then tied the whole scraper together using the previously created functions. The complete scraper looked for jobs in 17 states including the District of Columbia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*-6GDMcYGYsVntxdESJ17TA.png" /><figcaption>The full web scraper used the 4 previously created functions to extract listing information across 17 states</figcaption></figure><p>The results were then added to a data frame with the individual fields under their own columns. I would then run an a custom EDA function on the data frame to see what the results brought in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*yUagcpTS-eLjcK6rRoDKMg.png" /><figcaption>My last scrape of indeed.com brought in a total of 5,168 listings.</figcaption></figure><p>There was a lot of clean up that needed to be done on the salary data. For this, I used regex to get rid of symbols like dollar signs and commas. Unfortunately, I found that the majority of the job listings on Indeed did not contain salary information and when they did, the salaries were usually in ranges. So in order to gain as much salary data as possible, I ran my scraper every night until I accumulated a little over 10,500 results. Aside from just being missing or in ranges, there were a good amount of salaries that were hourly, monthly and even weekly. It would have been possible to take these salaries and get the yearly income for each, but that would have also required me to make a rather large assumption about the type of jobs these were. Instead, I decided to focus on just the job listings with yearly salaries and drop the rest from the data frame.</p><p>In order for the yearly salary ranges to be useful, I created a custom function that took the average of the individual ranges and appended them to a newly created column. In the end, the final data frame consisted of 493 job listings with the median coming out to be 100k.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*lsXgwMLxsQlccf-TR1uDRw.png" /></figure><p>To be able to run a model on the data, I needed a way to distinguish which salaries were above and below the median. In order to do this, I created a new column in the data frame called ‘Salary_Above_Median’ and then customized a function which ran through all the salaries and stamped a 1 in the new column if the salary was above the median and a 0 if the salary was below. Overall, the data showed that the salaries were relatively close, with 236 listings being above the median and 257 below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*hBtNHiE4Z77OmC5J9vKMGQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d089f09522d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 2 Day 1- Data Science Journey]]></title>
            <link>https://medium.com/@valeria.rozenbaum/week-2-day-1-data-science-journey-36165e9bc6e9?source=rss-7e4c47bd7855------2</link>
            <guid isPermaLink="false">https://medium.com/p/36165e9bc6e9</guid>
            <dc:creator><![CDATA[Valeria Rozenbaum]]></dc:creator>
            <pubDate>Mon, 13 Mar 2017 14:11:46 GMT</pubDate>
            <atom:updated>2017-03-13T14:11:46.797Z</atom:updated>
            <content:encoded><![CDATA[<p>Week 2 Day 1- Data Science Journey</p><p>Hello world… this blog will document a self professed arithmophobe’s journey into the world of data science.</p><p>Now that the emotion roller coaster of Week 1 is behind us, lets circle back.</p><p>Here we have a dataset called Dictionary of movies</p><pre>movies = [<br>{<br>“name”: “Usual Suspects”, <br>“imdb”: 7.0,<br>“category”: “Thriller”<br>},<br>{<br>“name”: “Hitman”,<br>“imdb”: 6.3,<br>“category”: “Action”<br>},<br>{<br>“name”: “Dark Knight”,<br>“imdb”: 9.0,<br>“category”: “Adventure”<br>},<br>{<br>“name”: “The Help”,<br>“imdb”: 8.0,<br>“category”: “Drama”<br>},<br>{<br>“name”: “The Choice”,<br>“imdb”: 6.2,<br>“category”: “Romance”<br>},<br>{<br>“name”: “Colonia”,<br>“imdb”: 7.4,<br>“category”: “Romance”<br>},<br>{<br>“name”: “Love”,<br>“imdb”: 6.0,<br>“category”: “Romance”<br>},<br>{<br>“name”: “Bride Wars”,<br>“imdb”: 5.4,<br>“category”: “Romance”<br>},<br>{<br>“name”: “AlphaJet”,<br>“imdb”: 3.2,<br>“category”: “War”<br>},<br>{<br>“name”: “Ringing Crime”,<br>“imdb”: 4.0,<br>“category”: “Crime”<br>},<br>{<br>“name”: “Joking muck”,<br>“imdb”: 7.2,<br>“category”: “Comedy”<br>},<br>{<br>“name”: “What is the name”,<br>“imdb”: 9.2,<br>“category”: “Suspense”<br>},<br>{<br>“name”: “Detective”,<br>“imdb”: 7.0,<br>“category”: “Suspense”<br>},<br>{<br>“name”: “Exam”,<br>“imdb”: 4.2,<br>“category”: “Thriller”<br>},<br>{<br>“name”: “We Two”,<br>“imdb”: 7.2,<br>“category”: “Romance”<br>}<br>]</pre><p>The code below defines a function (grabber) that takes our dataset of movies and returns the names of all the movies with an IMDB score that is higher than 5.5</p><pre># Write a function that returns a list of movies <br># with an IMDB score above 5.5.</pre><pre>## Practice pseudocode:<br>## create empty list (above_five)<br>## define function(grabber) with the input value(movie)<br>## for every object(i) in this list(movies):<br>## if the name is equal to the object(i)name <br>## if the object(i) rating(imdb) is higher than 5.5:<br>## append the name to above_five list<br>## print out the above_five list using the grabber function</pre><pre># return statement will need to be a list — in list comprehension you dont need to declare a list above the function<br># movie from a list of movies with score above 5.5</pre><pre>def grabber(movie): <br> above_five = [i[“name”] for i in movies if i[“imdb”] &gt; 5.5]<br> return above_five</pre><pre>print grabber(movies)</pre><p>Notice all the comments? While they’re not pretty, they have been incredibly helpful in allowing me to breakdown what exactly I’m trying to do. Since I’m still learning the syntax and overall code structure, breaking down the problem this way allows me to recognize patterns of how a properly structured function looks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36165e9bc6e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>