<?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 Shenghong Zhong on Medium]]></title>
        <description><![CDATA[Stories by Shenghong Zhong on Medium]]></description>
        <link>https://medium.com/@shenghongzhong?source=rss-c6babf37a429------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g-7Fu9T-k-Z5XSpiL00RrA.jpeg</url>
            <title>Stories by Shenghong Zhong on Medium</title>
            <link>https://medium.com/@shenghongzhong?source=rss-c6babf37a429------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:10:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shenghongzhong/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[The 3 Amazing Things I Learned While Working At Jovian.ai]]></title>
            <link>https://shenghongzhong.medium.com/top-3-things-i-learned-while-working-at-jovian-7be584d2c23e?source=rss-c6babf37a429------2</link>
            <guid isPermaLink="false">https://medium.com/p/7be584d2c23e</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mindset]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[work]]></category>
            <dc:creator><![CDATA[Shenghong Zhong]]></dc:creator>
            <pubDate>Mon, 07 Mar 2022 11:50:00 GMT</pubDate>
            <atom:updated>2022-03-12T06:44:28.430Z</atom:updated>
            <content:encoded><![CDATA[<h4>Professional Development — Start-up Mentality</h4><h4>Things that excite me to get out of bed every morning!</h4><figure><a href="http://jovian.ai/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bis5TdPKoQT09xcnXeRVsQ.jpeg" /></a><figcaption>An infographic of Jovian.ai</figcaption></figure><p>Once upon a time, I visited Foyles bookshop on the Charing Cross Road by bus. It seemed everyone went out for the lovely weather in London. I could hardly find an available seat upstairs, but there was an empty seat next to a woman. I sat down, and I immediately regretted it. The woman stared at me, “Didn’t you see I’m sitting here?” I couldn’t understand what she talked about in a thick cockney accent. “Sorry. What did you say?” I looked around, and the surrounding people waved hands that I should not have spoken to her and just left her alone. While I was standing up, she shouted at me, “If you don’t understand anything, just get a job!”</p><p>Years later, I found out that she was right. Getting a job can help you gain a deep understanding of many things.</p><p>I worked closely with business owners as a data science consultant to analyze and determine strategies for business development at Jovian, an e-learning tech start-up. Each day I opened my laptop to “send” in Slack after writing my daily standup while having my first coffee in the morning. Recently, it has been my first month of working remotely at Jovian. Aakash said I should write a blog about what I learned. “Sure, not a problem.” I wrote to Aakash in Slack and gave a thumbs-up emoji.</p><h3>1. When I realized I’m the “Mr. Stupid”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zP4WmAu9lSPcWy7T" /><figcaption>Dunning Kruger effect</figcaption></figure><p>Jovian aims to eliminate education inequalities and populate data science education to all who have brilliant minds and are curious about data. Working at Jovian has given me a substantial impact on working with data analysis for data science.</p><p>Data science is a fast-evolving field in which you have to accumulate your knowledge all the time. I learned the <a href="https://www.britannica.com/science/Dunning-Kruger-effect">dunning-kruger effect</a> somewhere else. The theory describes a person who knows very little tends to overestimate knowledge and competence until they make tons of mistakes and realize they know nothing. The theory names those people with overflow confidence as Mr/Miss Stupid.</p><p>It’s tough to believe I was Mr. Stupid, too. Having completed 600+ hours and graduated from a 6-month data science boot camp at Jovian, I thought I would have smashed any tasks coming to me. I was wrong. I had mysterious confidence in my data science skills until working at Jovian.</p><blockquote>“I know that I know nothing” — Socrates</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gCzfzAOEwyBiy9OKJMfFRw.jpeg" /></figure><p>To speed up the growth, you need to embrace mistakes and listen to others’ advice. I appreciate that I can work with Aakash and Siddhant, the founders of Jovian. Aakash had weekly meetings with us. He has an empathetic heart for my abilities because sometimes, I find it challenging to interpret charts and extract insights. He would tell me better ways to do this, “it’d probably be better to point out here and there….” Somehow, the interaction strengthened my understanding.</p><h4>Be Comfortable With The Uncomfortable</h4><p>In data analysis, we often deal with many abstract problems and convert abstracts into concrete business questions as the first step. You have to constantly stand from the perspective of business owners to think about why this is important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7TZPo-pKuxWxoVb0Ec8Pg.jpeg" /><figcaption>Solving Business Problems is the key.</figcaption></figure><p>Jovian as a platform cares about user growth. It’s like a person needs to gain weight, and therefore they may track specific food that gives the most effects. That’s the value data analyst can discover and contributor to the organization. I often joke about data analysis/data science as not a job with data but people. Because we need to let decision-makers understand certain things and promote the strategies as we see data in detail, I learned that I would overcommunicate anything to make sure they overcame the decision-makers’’ pressures and put data insights in use.</p><p>70% of time should be spent in data analysis, whether you are a data analyst or data scientist. My main tasks were getting familiar with tables in databases and understanding core business. I asked many questions about what this column is. Siddhant was patient with my questions and answered me one by one. I had a fantastic time wrangling data. Working with abstract problem statements is quite challenging. It’s frustrating to spend lots of time analyzing data but finding no insights.</p><p>Being Mr. Stupid doesn’t matter, but what I have learned from those mistakes helps. Gradually, I’d be better at what I’m doing and understand why I’m doing what I’m doing. As time goes by, knowledge and work experience will increase my confidence. It’s a matter of time. Time is not the essential part and work experience because it depends on how you perceive and turn mistakes into learning opportunities.</p><h3>2. Mistakes were my biggest assets</h3><blockquote>Don’t Repeat Your Mistakes</blockquote><p>Work experience matters because of mistakes you have accumulated. Siddhant and I both agree that there are always small gaps that we have to fill in through our work, despite the fact that we have learned many things in schools and boot camps.</p><p>It’s something that no one can teach you but work itself. They are mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qan_y0e38UHDsflmQZ3sEA.jpeg" /><figcaption>Mistakes are power, baby!</figcaption></figure><p>Often some companies would specifically say they don’t want coding monkeys. I didn’t know why until I became one. I was trying to plot many charts to report ( In fact, data accuracy cost most of my time.) I neglected that I should have spent more time interpreting and making sense of data by telling stories.</p><h4>Don’t Waste Your Mistakes</h4><p>A good data analyst should have a few numbers in mind, such as average, median, total number, maximum and minimum, the description of the time for a metric to double. I.e., the user growth is doubled every six weeks. More importantly, data analysts should master the art of communication, such as communicating with stakeholders on problems that should be alarmed, progress that should be celebrated, and the future they should be looking forward to.</p><p>I’d have thought I mastered the knowledge of statistics. I didn’t know I needed to report the growth rate, although I learned in our lessons at boot camp. I didn’t have a deeper understanding of the metric growth. I spent hours studying this metric, and finally, I had a concrete example. I knew this metric, but I didn’t have a practical example from work.</p><p>I thought I understood distributions until I found it hard to describe in words. I was doing an analytic project at Jovian, and I found they weren’t the normal distribution that we learned. Aakash told me that I should describe central tendencies when reporting distributions.</p><h3>3. My tryst with “Extreme Ownership”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LASA8nrOsZq4a4cINcAbeg.jpeg" /><figcaption>Imagine you’re planting a tree in your career</figcaption></figure><h4>Time can’t make you great, but outcomes do!</h4><p>Output is the key because counting hours won’t guarantee your outputs. Business owners care about how long a project would take and outcomes accordingly in the professional world. My first boss often mentioned we should always remind ourselves of what values we could add to clients. The principle works anywhere. I first counted hours rather than outputs, and lately, I realized this way of thinking might be the root cause because it doesn’t give any value to organizations I worked for.</p><p>It would help if you constantly remind yourself of values. What values you could contribute to the company you’re working at, the society you’re in, the community you’re participating in. Unlike regular jobs, the hours of sitting at a desk don’t show your values, but the output does.</p><h4>Fail Fast, Fail Often</h4><p>Of course, you may argue that we shouldn’t focus on outcomes because this gives stresses and challenges. Well, this point is exactly like what a student would say. One of my friends is a struggling musician. He prioritized lots of time creating content on social media. I asked him about his goals of followers each month. He said, “he wouldn’t make any numerical goals for the number of followers, but I just need to make these videos and publish’. If you don’t set a goal of numerical growth, you are, of course, unbeatable. But the critical thing is the output, and finding the reasons you don’t get what you want is even more important than success. In this way, you’re managing and preparing for increasingly challenges when they arrive. My friend should set up a goal, gradually reduce the expectations, and modify strategies accordingly.</p><p>Working at start-ups is good because you can do many things at once. That increases my chances of making mistakes. On the other hand, it also results in fast growth in my personal development. Since Aakash and Siddhant are open to what they are doing, they are generous towards their time and knowledge despite being insanely busy managing the fast-growing company.</p><h4>You Own Your Career (Not Your Boss)</h4><p>My time was flexible; once I knew what I should be doing, I would go for it and wrangle our data to see better insights. In the past, I was often scared to show what I thought because some companies have a strict culture and zero tolerance toward mistakes. There wasn’t room for making mistakes, at least the culture isn’t allowing people to make mistakes. I often have the feeling if I screw this up, I’ll be going to be in big trouble. However, this is not the case at Jovian. Aakash would listen to my thoughts and provide instant feedback to improve immediately next time. It’s an agile approach bound in the gene of Jovian. You start with the planning, then design &amp;develop codes. Next, you test everything you produce to get some feedback. You understand feedback and improve incrementally next time.</p><p>I remembered I wasn’t supposed to scrape data from Youtube, but having seen the massive success after the data, I was hooked to find out about the essential factors. I was asking data, “Why in this certain period was Jovian performing really well?” I didn’t want to eat until I found out the reasons. And the platform data couldn’t explain it sufficiently. I need to find out the “WHY” because I instinctively felt this would be useful for Jovian.</p><p>I reflected on how I knew Jovian. It was one of the videos on Youtube. I decided to use my web scraping skills to gather the Jovian Youtube channel data. I spent an afternoon and reported to Aakash at a meeting from planning to executing. Aakash was listening to my reasoning. I thought the analysis would live inside a notebook, but he told us that Jovian would implement the strategy from the data insights I showed this year. At that point, I was pleased. Because I never heard back from stakeholders that they would take any action from many of my career analyses. Meanwhile, I found out that it’s the value of data analysis.</p><p>Once you understand you own your career, you won’t just report your hours to get paid. You will try all your best to get to outcomes because you believe this will make a difference for organizations, society, and countries. That’s how I called it, extremely ownership.</p><h3>Future</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iuNUtMysHMcIaxyHozuaIQ.jpeg" /><figcaption>The action you take these days/weeks/months/years will determine your future.</figcaption></figure><p>I want to end this article with a message I received from a Jovian student. He appreciated my consistency and commitment in learning data science and asked me if I had magic tricks that kept me going.</p><blockquote>“There are no shortcuts. If you’re not willing to do the work, take the pain, then probably expecting any results and rewards is delusional.”</blockquote><p>If you do anything in life that requires work, and you accept that this is how life functions to get the results you want, you can’t think of learning as any different.”</p><p>Thank you for reading!</p><blockquote>You can find me here: <a href="https://twitter.com/ShenghongZhong">Twitter:@ShenghongZhong</a> , <a href="https://www.linkedin.com/in/shenghongzhong/">LinkedIn:@David Zhong</a><br><a href="https://www.instagram.com/davidzhongg/">Instagram:@davidzhongg</a>, <a href="https://www.youtube.com/channel/UCAFemIoWYNu7PBJ1JZVRyAw">YouTube: Thedatum</a><br><a href="https://jovian.ai/shenghongzhong">Jovian:@Shenghongzhong</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7be584d2c23e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Mistakes You Can Avoid for Exploratory Data Analysis]]></title>
            <link>https://shenghongzhong.medium.com/4-mistakes-you-can-avoid-for-exploratory-data-analysis-426c4f681de5?source=rss-c6babf37a429------2</link>
            <guid isPermaLink="false">https://medium.com/p/426c4f681de5</guid>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[mistakes]]></category>
            <dc:creator><![CDATA[Shenghong Zhong]]></dc:creator>
            <pubDate>Fri, 18 Jun 2021 12:28:41 GMT</pubDate>
            <atom:updated>2021-06-18T12:28:41.184Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>“The teacher learns more than the student. The author learns more than the reader. The speaker learns more than the attendee. The way to learn is by doing.”</blockquote><p>I completed my project002 exploratory data analysis about the UK housing market over 12 years this week. In case you’re interested, you can read my post:<a href="https://davidshenghongzhong.medium.com/10-insights-you-should-know-about-the-uk-housing-market-853aea6ee054"> <strong>10 Insights You Should Know About the UK Housing Market</strong></a><strong>. </strong>Wait, you don’t have time? You can watch my presentation on YouTube — <a href="https://youtu.be/UGo6rzSrDQU">here</a></p><p>What’s the behind the scene of my project? The term, <strong>Behind the Scene,</strong> was from a workshop I attended 2 years ago. It’s called <em>“Nail Your Personal Brand”. </em>I booked it without thinking twice.</p><p>On the day, the instructor saw me shockingly when I entered the room. I didn’t feel weird until being surrounded by only women in the workshop. More obviously, the content and discussion were tailored for females. I pretended to be carelessly concentrating, and quickly glanced at the description for the workshop on my phone.</p><p>Fantastic. The workshop was for female entrepreneurs, specifically.</p><p>However, I learned a lot of principles in the workshop. Of which, summarizing mistakes would encapsulate those invaluable experience for future self. Thus, I’d love to talk about 4 mistakes while doing my EDA project .</p><h3>Mistake 1: The Thought — “I spent 105 hours”</h3><p>You might wonder why this is a mistake. Before my explanation, I’d encourage you to ask yourself:</p><ul><li>Have I always reading books/articles/blog posts about how to save time, organize time, squeeze more out of time?</li><li>Have I always looked for time-management techniques to maximize productivities?</li><li>Have I always bought courses/workshops/videos by new gurus appearing on the Internet promising “the solutions”?</li></ul><p>I’m not sure if that’s you, but it was me years ago. I read somewhere saying <strong>“time is a finite resource; time is money.”</strong> Hence, I must maximize every space moment of productive capacity. I even hired a productivity guru to help me out. With tons of money spent, I did get better at it. I have my own system to organize time and files. I can get any files in 10 minutes. But one thing I was missing could destroy my career life, possibly.</p><p>I often have no ideas about time estimation. Seconds are slipping away making me nervous. I’ve been searching for good methods to estimate my time spent. I constantly asked myself:</p><ul><li>Is this really the best way to spend my time?</li><li>Isn’t there something more productive that I could be doing?</li><li>Shouldn’t I check my e-mail, review task lists, or watching online courses?</li></ul><p>It felt good when I ticked off tasks because I’ve spent in the right place. It felt bad when I wrongly predicted the time spent on tasks. Because losing the game wasn’t acceptable. Whenever I failed to do what’s needed, I accumulated debts that I’d never pay them off. More and more, I unwittingly became a slave to tasks.</p><blockquote>Whenever I failed to do what’s needed, I accumulated debts that I’d never pay them off.</blockquote><p>The lightbulb moment was when I realized<strong> what’s driven this insecurity is the hidden premise: time is a finite resource</strong>. It’s tricky to recognize that the assumption is a statement. It’s a factual statement that mixed the fact with opinions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*vNix687q9w5aAeOfTbd0QQ.png" /><figcaption>Time is a perpetual motion machine</figcaption></figure><p>No matter what happens, time is like a machine, a perpetual motion machine. however manage them well, squeeze them, save them, time is going away from your hands.<strong> But the false belief led me to another mode: the slot machine mode.</strong></p><h4>The Slot Machine Addition</h4><p>We put money in a slot machine hoping that the next pull of the lever will pay off. The more coins we gamble, the closer we think we’re getting to a big winning, but in fact, the probabilities of the game remain the same. 100 pulls, 1000 pulls, ∞ , chances are we will nearly always lose our money staying the same. Of course, some outcomes may occur — just like small jackpots that keep you pumping coins into the machine — but this kind of game only drains my energy bank account over time.</p><p>On the other hand, I started to understand I should shift my mindset into an investor&#39;s mind. An investment mindset is focused on the long term. I know that I wouldn’t see an immediate return on my investment. But I believe I will see significant returns over time if I work the plan out. Like this article you’re reading, it’s my investment for the future.</p><p>Your superman productivities and time management system aren’t priorities.</p><p>Your actions are your real priorities.</p><h3>Mistake 2: Vague Goals Lead to Linear Work</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kohf4in352Q9SOejBBVOKg.png" /></figure><p>Linear work has another fancy name, <a href="https://www.wikiwand.com/en/Waterfall_model#:~:text=The%20waterfall%20model%20is%20a,to%20a%20specialisation%20of%20tasks.">Waterfall Model</a>. Some may know the difference between waterfall workflow and agile workflow. Linear work refers to a project divided by different phases and activities, with a state that everything needs to be done properly.</p><p>Why is this approach less good for my case? In Python, tools for data visualization are Matplotlib, Seaborn and Plotly, ggplot, Bokeh, pygal, Folium etc. The list can go long endlessly. Some would think, <strong>“Okay, I have to learn these packages properly so that I can complete projects</strong>” Then, it was exciting at the beginning and they’re super motivated because they can do all kinds of cool stuff after learning properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*lgj5gzfm2rZKirEAVYlxEw.png" /><figcaption>Our Changing Motivation</figcaption></figure><p>Next, many go into the rabbit hole of Matplotlib, colours, best way to write codes, size of figures, etc. In the middle, worse results may happen — give up or burn out. As the deadline is approaching, they start doing projects again under the pressure, cramming until getting things done.</p><p>What a relief, right? At least, the project is done. That’s okay if this is your first time. That’s fine if it’s for self-learning as no one evaluates your work. But the habit you unconsciously created may affect your wellbeing at future work.</p><p>Let’s look at the goal, “ <strong>I want to learn X properly</strong>.”</p><p><strong>I’d ask a question — what does “properly” mean? </strong>You may suddenly feel difficult to elaborate on specific activities and details. That’s a right feeling. Because many fall into the trap of being perfect and too vauge.</p><p>A friend always stays up late. worked on projects over time. He thought whatever projects are, he could finish tasks eventually, even if he needed to work on the weekend. The only difference is he wanted everything to be perfect.</p><p>Okay, that’s fair. I asked him to explain how he planed. “ I’d finish this first, and then complete that second.” What he said sounded right but in fact, he always looked through all websites to get all information before the first draft, often unclear with what he wanted except being perfect. In his mind, with a lot of time spent, being perfect could be achieved.</p><p>It wasn’t being perfect is bad. However, how long it would take, I’m afraid, remains a question. Furthermore, what if <strong>perfect is a moving target?</strong> What if you never be able to reach the aim of being perfect within a short time, considering no one pushes you but you?</p><p>It’s human nature to announce vague goals. I’d like to hear how you’ve been doing your New Year Resolutions? (If you had made them)</p><p>A limit is like an unattainable goal. You get closer and closer to it, but you can never get all the way there. Perfect is the limit. Getting a project perfectly done without time-bound is a vague goal.</p><p>The vague goals lead to the start of linear work.</p><ul><li>Linear work tricked your mind to think that you can spend much time without thinking of the risks of burning out.</li><li>Linear work tricked your mind to think that you can be comfortable by thinking “If I learn it properly, then I’m unstoppable.”</li><li>Linear work tricked your mind to think you’re safe as long as you can get fancy features, and it is going to blow people mind if they can see cool stuff.</li></ul><p>All in all, the value of our work to companies is not measured by how much time you spent but determined by what we create. However, we could do it better using the iterative work mode</p><h3>Mistake 3: Unclear Minds with Must Have and Good to have</h3><blockquote>“Too often, we fall into an all-or-nothing cycle with our habits.The problem is not slipping up; the problem is thinking that if you can’t do something perfectly, then you shouldn’t do it at all.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*mvSva9-3OnxDMv4woOORHQ.png" /></figure><p>On the other hand, our brains like to be “lazy” because science explains the brain wants to save energies. However, this doesn’t mean we can’t think strategically. There is a better way to approach the project — plan for bare requirements for the completion.</p><blockquote>“Planning and preparation are useful until they become a form of procrastination.Is this task enhancing my actions or substituting for them?”</blockquote><p>How do we thrive? We use tools. Human use tools to survive for thousands of years. How to use fire would be perhaps the best example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*dsNe56qtqcw4ZYbRJv7c_Q.png" /></figure><p>The tool is using 2 columns <strong>Must have and Good to have</strong> to divide the project. What’re the bare requirements that I can still complete eventually, even if a natural disaster like an earthquake happens?</p><p>However, I made a mistake here. As analyzing the housing market in the UK, it’s inevitable to encounter location data. Initially, I thought it’d be very cool to see a map with different colours representing volumes of house sales data on the UK map. I can use the package Folium in Python. I didn’t realize how challenging it was, and I put it into<strong> </strong>the <strong>Must-Have </strong>basket.</p><p>Firstly, my familiarity with the library Folium is relatively new. I know some basics and went through some examples by reading the documentation. But examples are using the US map rather than the UK map. I have to figure out how to hook the UK map. I thought it was easy to replace with parameters. It turned out I was naive.</p><p>This led me to another problem with a shadow understanding of UK geography. Because I’m from China. There is way too much difference in geographical definitions and systems between the UK and China. I spent hours reading Wikipedia pages and articles to understand how the UK uses terminologies. To date, I still can’t really say I master the knowledge though. But I’m getting there.</p><p>What would I do to make it better if restarting the project?</p><p>I’d learn to make micro-decisions to change items from must-have to good-have.</p><h3>Mistake 4: You Have to Make Mirco-decisions</h3><p>What does it mean by micro-decisions? I put visualizing information geographically into the Must-have basket. because I overestimated my ability in using the unfamiliar library. It’s the moment where I should say, “Let’s put it aside and come back to it later.”</p><p>I didn’t. I chose to defeat this monster at that moment. I did.</p><p>Well done I’d say to myself but it’s not smart.</p><p>Why?</p><p>My reflection was visualizing information geographically wasn’t necessary to my questions in the project. What’s more, <strong>the devil is in the details.</strong></p><p>Because I encountered a problem many data analysts absolute hate. That is text data cleaning. When merging data from another dataset, you’d be most likely to clean data. What I encountered was a few rows didn’t match but they refer to the same thing. For example, the dataset for the project contains a row,<strong> “ City of Bristol”, </strong>whereas another dataset has a row, <strong>“Bristol, City of”.</strong> I spot on this situation and cried inside. I frustratedly tweeted.</p><h3>Shenghong Zhong on Twitter: &quot;Ppl ask me what they should do to be a data scientist.I said, DON&#39;T DO IT.#data #DataScientist #datascience / Twitter&quot;</h3><p>Ppl ask me what they should do to be a data scientist.I said, DON&#39;T DO IT.#data #DataScientist #datascience</p><p>Then, I chose manually check. However, I converted the text all into lower cases so I checked 45% of data rather than 100%. But it’s still time-consuming and pains in the neck.</p><p>Another good thing is that I’m aware of this problem When I read blog posts from this blog, I found the solution. It’s going to be my plan to learn for it. I found that in Python you can use <a href="https://recordlinkage.readthedocs.io/en/latest/about.html">Python Record Linkage Toolkit</a> , <a href="https://github.com/RobinL/fuzzymatcher">fuzzymatcher</a> or <a href="https://pypi.org/project/fuzzywuzzy/">fuzzywuzzy</a>. At that time, I think it’d take me more time than I planed if I let myself explore them.</p><h3>Conclusion</h3><h4>More time doesn’t mean good qualities</h4><p>I did spend 105 hours on this project, but it involved data selection, asking questions, finding the best chart to answer, making slides, practising the speech for presenting, proofreading my writing again.</p><h4>Mistakes are learning points</h4><p>Next time I would know if I improve or not. The next project would be better.<br>I challenged myself for 22million records and the experience of dealing with a massive dataset is valuable.</p><h4>Data science is a field for lifelong learning</h4><p>In data science, every day is a school day. In the future, I’d ask for feedback., read others’ analysis, seek inspirations.</p><p>Keep learning, keep coding!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JF6AjlpL5g2FYmAaNN4KnQ.jpeg" /></figure><h4>About the author</h4><p>Shenghong(David) Zhong is an aspiring data scientist, amateur comedian, Indian food enthusiast based in London, the United Kingdom. Artificial Intelligence is changing humanities. Then he made the decision to see if he can be parts of the big movement.</p><h4><a href="https://twitter.com/ShenghongZhong">Twitter:@ShenghongZhong</a></h4><h4><a href="https://www.linkedin.com/in/shenghongzhong/">LinkedIn:@David Zhong</a></h4><h4><a href="https://www.instagram.com/davidzhongg/">Instagram:@davidzhongg</a></h4><h4><a href="https://www.youtube.com/channel/UCAFemIoWYNu7PBJ1JZVRyAw">YouTube: Thedatum</a></h4><h4><a href="https://jovian.ai/shenghongzhong">Jovian:@Shenghongzhong</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=426c4f681de5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Insights You Should Know About the UK Housing Market]]></title>
            <link>https://shenghongzhong.medium.com/10-insights-you-should-know-about-the-uk-housing-market-853aea6ee054?source=rss-c6babf37a429------2</link>
            <guid isPermaLink="false">https://medium.com/p/853aea6ee054</guid>
            <category><![CDATA[price-analysis]]></category>
            <category><![CDATA[housing-market]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[exploratory-data-analysis]]></category>
            <dc:creator><![CDATA[Shenghong Zhong]]></dc:creator>
            <pubDate>Mon, 14 Jun 2021 18:04:29 GMT</pubDate>
            <atom:updated>2021-06-30T08:40:23.800Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I presented my insights reports a few days ago. You can have a look if you want. — <a href="https://www.youtube.com/watch?v=UGo6rzSrDQU">Link</a></blockquote><h4>Introduction</h4><p>When the pandemic happened unexpectedly, the UK housing prices were soaring, followed by the increasing stock prices. I was very intrigued by the phenomena.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*Gepc_yb9gUUY3m3DNQesqA.png" /></figure><p>Some said increasing housing prices could be the “cheap money” floated into deflationary assets, as governments printed money to tackle the public health crisis in the short term. Others said more demands than supplies for nice houses as many companies were implementing ‘Working From Home’ policies. I started to ask why but the best way to study is to analyze historical patterns.</p><p>The real estate economy plays a vital role in a country. My father runs a real estate developing company. He told me how the real estate industry affects China economy. For example, the upper stream in the industry would be manufacturers for building materials, construction companies, etc, while the downstream is marketing&amp;sales companies, etc. If a construction project started, everything runs like a vehicle moving forwards. More construction projects mean more job supplies. More employees gain incomes from their labours, investors achieve returns from the investment, governments have extra funds by involving legal regulations and taxation. The real estate industry is an important part of gross domestic product(GDP) in many countries.</p><p>My initial intention was to see how housing markets can reveal economic growth. However, this quest would cost too much time to reach the aim. Instead, the main focus of this project is data visualization regarding the UK housing market 12-year data analysis.</p><h4>Data selection</h4><p>I spared efforts into the dataset selection on Kaggle, a website for data science practitioners to explore open datasets and publish notebooks. I summarized what I thought about datasets into a tweet thread.</p><h3>Shenghong Zhong on Twitter: &quot;Yesterday, I had a discussion with @aakashns about datasets for our EDA project. Here is a thread about my selection for the top 10 open datasets. You can have a look and get some ideas to do your own research.#datascience #EDA #data #66daysofdata #100DaysOfCode / Twitter&quot;</h3><p>Yesterday, I had a discussion with @aakashns about datasets for our EDA project. Here is a thread about my selection for the top 10 open datasets. You can have a look and get some ideas to do your own research.#datascience #EDA #data #66daysofdata #100DaysOfCode</p><p>Having gone through the selection, I picked up <a href="https://www.kaggle.com/hm-land-registry/uk-housing-prices-paid"><strong>UK Housing Price Paid data, from 1995 to 2017</strong></a><strong>.</strong></p><p>In this article, I’d try a different approach to demonstrate a few insights I concluded in this project. For a more structured method, you can check out my notebook. <a href="https://jovian.ai/shenghongzhong/exploratory-data-analysis-uk-housing-price">https://jovian.ai/shenghongzhong/exploratory-data-analysis-uk-housing-price</a></p><h3>Understanding data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SIFw7ulm1Ja7xX4B6qah3w.png" /></figure><p>As for this dataset, we have 11 columns such as Transaction Unique Identifier, Price, Date of Transfer, Property Type, Old/New, Duration, Town/City, District, County, PPDCategory Type, Record Status — monthly file only.</p><p>Since this is a blog post, I won’t spend too much ink describing columns individually. To find out more, you can have a look at <a href="https://jovian.ai/shenghongzhong/exploratory-data-analysis-uk-housing-price">my notebook </a>on jovian.ai.</p><p>I’d love to demonstrate some interesting learning points about the dataset:</p><h4>Processing date</h4><p>Data scientists often process data-wise data in the real world. <strong>Time</strong> is an important factor. Whenever we start a project, our boss would ask a question <strong>How much time can you get it done?</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D24-25&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D24-25&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/602c37f0cdb11d247d6841f35b63f5ee/href">https://medium.com/media/602c37f0cdb11d247d6841f35b63f5ee/href</a></iframe><p>In general, we would create 4 extra columns to indicate year, month, day, weekday for further use, which is helpful to filter data by specifying year, month, day to use memory efficiently. In this case, we won&#39;t use day and weekday to save more RAM.</p><h4>Property type</h4><p>In the UK, 5 common types are shown in the slide. Since I’m not from here, I have done basic research about the dataset given by Kaggle.</p><p>According to<a href="https://www.kaggle.com/hm-land-registry/uk-housing-prices-paid"> the description </a>on Kaggle, we have 5 property types. To demonstrate in a better way, I gathered the information into one slide.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*iGymlbV2A8gnEylFl3WxXg.png" /><figcaption>Property types in the UK</figcaption></figure><h4>Price</h4><p>It’d be ridiculous if we didn’t discuss house prices. The sale prices of properties were stated on the transfer deed. I didn’t know the transfer deed until this project. It’s something like a contract approved by HM Land Registry, the department in the UK .It looks like this picture.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fimgur.com%2FR3ffHXJ%2Fembed%3Fpub%3Dtrue%26ref%3Dhttps%253A%252F%252Fembed.ly%26w%3D764&amp;display_name=Imgur&amp;url=https%3A%2F%2Fimgur.com%2FR3ffHXJ&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=imgur" width="764" height="1288" frameborder="0" scrolling="no"><a href="https://medium.com/media/44b0db52cb448765643d6292aa478206/href">https://medium.com/media/44b0db52cb448765643d6292aa478206/href</a></iframe><h4>Mean V.S. Median housing prices</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D46%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D46%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f0c236873a5d84d15697bd23ee814d3/href">https://medium.com/media/8f0c236873a5d84d15697bd23ee814d3/href</a></iframe><p>I learned that price is a continuous type, which means we can use a box plot to understand the distribution of prices. In the financial world, outliers are inevitable. Asset prices are varying and fluctuating in the market. Some properties in London could be ridiculously expensive, whereas some in rural areas in the UK could be unbelievably cheap.</p><p>It is less accurate to represent housing prices with the mean price. Note, the <a href="https://jovian.ai/matcha-coding/zero-to-data-statistics-measures-of-central-tendency/v/1#C43">Michael Jordan Fallacy</a> affects the mean prices. Bear in mind, we’re analyzing the housing market in the whole UK. Some properties could be sold at very high prices in London, whereas some properties might be sold at 1 pound in Liverpool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*eHID_WT28SdljrUbYMuiXw.png" /><figcaption>Random sampling, a boxplot for price</figcaption></figure><p>To detect outliers, we use the box plot using the random sampling technique. We look at the population by using this sampling technique as long as each sample has an equal chance to be picked up. By the random sampling technique, we can roughly understand the shape of the whole dataset.</p><p>In our case, we randomly selected 10% out of our dataset, which is 2 million samples out of 22 million data points of housing prices.</p><p>As we can see from the screenshots, the statistics from 10% samples are as follows:</p><ul><li>Max = £98.9 million</li><li>Min = £1</li><li>𝑄3 = £412.5K</li><li><strong>Median = £130K</strong></li><li>𝑄1 = £75K</li><li>𝐼𝑄𝑅 = £337.5</li></ul><p>After the random sampling, we aimed to grab a basic sense of the population for the dataset.</p><p>We know the maximum value is £98.9 million and the minimum value is £1. However, this doesn’t mean there is only 1 data point for £98.9 million. Multiple house prices could be equal to £98.9 million.</p><p>Next, we know the third quartile is £412.5K. This means in the sample dataset, 75% of housing prices are below £412.5K. In contrast, the first quartile is £75K meaning 25% of housing prices is below £75k.</p><h4>Location</h4><p>Notice: the dataset does not contain any information about Scottland, Northern Ireland.</p><p>As I’m from China, I taught myself geography knowledge about the UK. In China, we don’t use the term “country”. Instead, we say “province” to refer to “country”.</p><p>Britain consists of four countries: England, Scotland, Wales and Northern Ireland. England is divided into 48 ceremonial counties. Scotland was divided into 33 counties, Wales has 22 counties, and Northern Ireland has 6 counties.</p><p>Each county has their cities and towns. On Wikipedia, places had been granted city status by letters patent or royal charter. There are currently a total of 69 such cities in the United Kingdom: 51 in England, 7 in Scotland, 6 in Wales, and 5 in Northern Ireland.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fimgur.com%2Fa%2F9cGqgvi%2Fembed%3Fpub%3Dtrue%26ref%3Dhttps%253A%252F%252Fembed.ly%26w%3D900&amp;display_name=Imgur&amp;url=https%3A%2F%2Fimgur.com%2Fa%2F9cGqgvi&amp;image=https%3A%2F%2Fi.imgur.com%2FU3ZGLgq.jpg%3Ffb&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=imgur" width="900" height="686" frameborder="0" scrolling="no"><a href="https://medium.com/media/6cd6e8f811f04711c0b404c468153d16/href">https://medium.com/media/6cd6e8f811f04711c0b404c468153d16/href</a></iframe><p>It’d be interesting to see house sales data matching on the UK map. At the beginning of the project, I was concerned that the dataset was too tidy to practice data cleaning. Whenever you have a dataset outside you would certainly have chances to practice.</p><h4>Tidying data for merging</h4><p>One of the tricks I learned is to convert all location data into the same format. i.e. lower cases. This trick can save you lots of time but yet you should expect to clean data manually for text data. For example, You may encounter a location in your dataset, “City of Bristol”, whereas the dataset you attained somewhere else contained data like “Bristol, the city of.” This happened to me and I had to clean up manually due to the limited time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*IpGSG1a0brFz1sLKlS4kOg.png" /></figure><p>Here is a screenshot for the output because the dataset is too large to render in Google Colab.</p><p>Other columns such as Duration, Old/New type, Record Status, PPDCategory Type, Record Status are not included in this post. However, you can check out them in my notebook to see how I explore them. <a href="https://jovian.ai/shenghongzhong/exploratory-data-analysis-uk-housing-price">My notebook: Analyzing 12-year Housing Prices in the United Kingdom</a></p><h3>Insights</h3><h4>House sales were driven by political and financial events</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*m9Dv3RJrkOIvvR4IBEolLw.png" /></figure><p>Looking at monthly house sales, it’s easy to spot on swings during the <strong>financial crisis of 2007–08</strong>, also called the <strong>subprime mortgage crisis. </strong>In a nutshell, people were buying overvalued houses and investment banks designed Mortgage-Backed Securities (MBS) for reselling those debts. the financial instrument designed by the Wall Street drove the world into a panic mode. There were lots of discussions about the global financial crisis in this post on Reddit. Give a read if you want — <a href="https://www.reddit.com/r/explainlikeimfive/comments/j2mei/explain_us_2008_financial_crisis_like_im_5/?utm_source=share&amp;utm_medium=web2x&amp;context=3">Link</a></p><p>Another spike in house sales was around March 2016. My inference is <strong>Brexit</strong>. British people started to vote for leaving the EU or not around March, 2016. Here is what I think: The announcement of Brexit created an uncertain expectation towards the future of the United Kingdom. The business was planning to relocate and European businessmen sold properties for returning home countries. To some level, it explains why the spike happened.</p><h4>50% house sales in the North of England</h4><p>The first thing you might think is London is definitely the top 1 house sales city.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F131%26cellId%3D94&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F131%26cellId%3D94&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2F848f9112b28740aa90c47334114af38b%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a4b8612050f266b660af4b65d3e3534/href">https://medium.com/media/6a4b8612050f266b660af4b65d3e3534/href</a></iframe><p>Yep, you’re right. London is the top 1 house sales city. Besides London, there were cities like Manchester, Bristol and Birmingham following with London. My educated guess would be policies in those cities attracted people for migration or cheaper expenses of living.</p><p>Another interesting point is out of the top 10 cities, 5 places are in the North of England, i.e. Nottingham, Leeds, Liverpool, Sheffield, Leicester. I’m intrigued to know the population growth over years in these places. It could be my next project!</p><h4>The popular property type depends on locations</h4><p>Without data, we would probably guess flats or terraced houses, as many make conclusions based on the living experience. However, they are both right and wrong. It depends on where we are taking about.</p><p>According to the <a href="https://www.kaggle.com/hm-land-registry/uk-housing-prices-paid">description</a>, we have 5 types as follows:</p><ul><li>D = Detached</li><li>S = Semi-Detached</li><li>T = Terraced</li><li>F = Flats</li><li>O = Others</li></ul><h4>The total number of house sales by property type in the UK</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F131%26cellId%3D41&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F131%26cellId%3D41&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2F8d819699e08d4638b7eed26f1090255a%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/553a9e074bfcf449783e3e9b6b26af45/href">https://medium.com/media/553a9e074bfcf449783e3e9b6b26af45/href</a></iframe><p>In the whole dataset, we can see the terraced house type is the most popular in the UK, but it’s a different scenario when it comes to London.<strong> Hence, where we are talking determines our answers to the most popular property type.</strong></p><h4>The total number of house sales by property type in London</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F131%26cellId%3D98&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F131%26cellId%3D98&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2F848f9112b28740aa90c47334114af38b%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb469cf186fcf3a2f7a0ad12d5c8281c/href">https://medium.com/media/bb469cf186fcf3a2f7a0ad12d5c8281c/href</a></iframe><p>From 1995 to 2017, flat had been sold the most in London. For this chart, my experience told me that I can trust this data. Because the population in London involves immigrants and other young people. Flat type is a good solution to the high intensity of population.</p><h4><strong>Old properties were more popular than new properties</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D111%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D111%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f11dcfd418fc7593f31ca3f2b230591c/href">https://medium.com/media/f11dcfd418fc7593f31ca3f2b230591c/href</a></iframe><blockquote><strong>Note</strong> that the dataset only provided data to the date of June 30th 2017</blockquote><p>The stacked bar chart shows the total number of house sales by the old&amp;new type across years.</p><p>Between 1995 to 2007, house sales were fluctuating in general and remained high at around 1.2 million house sales.</p><p>Next, this followed by a big drop in 2008. One of the explanations was the UK housing market was affected by the global financial crisis. In 2008, the house sales were decreased by 48% in house sales compared to 2007. Next, house sales in the UK market was levelled off between 2010 to 2012. Gradually, the housing market recovered as the house sales went up since 2013.</p><h4><strong>The Financial Crisis hit the UK housing market during 2008–2012</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D114%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D114%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0be6d28ebc971157194cb2957574926/href">https://medium.com/media/d0be6d28ebc971157194cb2957574926/href</a></iframe><p>The colours of house sales from 2008 to 2013 are very dark regarding the heatmap. It suggests that during the global financial crisis, a few people participated in selling properties. From June 2008 to June 2009, the dark colour revealed that the financial crisis was in the middle.</p><p>Also, seemly there may be a pattern where January seems not a good month to selling houses.</p><p>Let’s reflect on the price trend chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*PeeQxVRoEdYAiz4YxiSDAQ.png" /></figure><p>The line chart of housing prices shows, Since 1995, the housing prices in the UK went up and reached the highest point in 2007. Next, it followed by a slight drop in housing prices affected by the global financial crisis in 2008, it fell steadily but still similar to the level in 2006, then the price was bottom out in 2012.</p><p>I think it’s safe to say the downturn in housing prices paused people’s action in selling properties.</p><h4><strong>Not a year new properties being sold than new property</strong></h4><blockquote><strong>Note: </strong>this excludes the incomplete data in the year of 2017 as the dataset didn’t include housing prices after June 2017.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D117%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D117%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6928152d40a6bf3d81a3308d6c5110b2/href">https://medium.com/media/6928152d40a6bf3d81a3308d6c5110b2/href</a></iframe><p>The short answer is no. There is no single year the number of new properties more than old properties regarding the dataset.</p><p>In the bar chart, I grouped new old property sales instead of stacking them to compare whether the new property sales had a better sale performance.</p><p>However, the chart told us that every year there were old property sales more than new property sales.</p><h4>Counties surrounding London were preferable</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D120%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D120%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdcbd7b5910e4d77211546e45d286be4/href">https://medium.com/media/cdcbd7b5910e4d77211546e45d286be4/href</a></iframe><blockquote>Using a log scale enable us to see changes over years clearly.</blockquote><p>House sales by counties over years gave us another picture, using a log scale could allow us to see yearly changes clearly.</p><p>Kent is the county close to London as many people commute to London for work and live outside London. Kent has been a popular place as we can see the level of house sales in the heatmap.</p><p>Also, we can see the popularity of Greater Manchester had been increasing. I noticed the property sales performance in Yorkshire had been very strong over years. I was wondering if this was something associated with the population growth?</p><h4><strong>The minimum&amp;maximum prices, the sky and the floor</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D124%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D124%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/142217dce459b1498ecddafe0966efa4/href">https://medium.com/media/142217dce459b1498ecddafe0966efa4/href</a></iframe><p>From the chart, we can see the minimum price could vary. They are £1 and £100. However, we see the maximum price reached the highest point of £98.76 million.</p><h4>£100 million property</h4><p>Having googled, I found out the most expensive property in 2016 was the mansion located in central London. <a href="https://themovemarket.com/tools/propertyprices/76-maida-vale-london-w9-1pr">Link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*VmsWWf_n3udmvSoXAx8RgA.png" /><figcaption>100 million pound mansion</figcaption></figure><p>It’s easy to understand why it was very expensive. Because the mansion is in central London with massive space, swimming pools, etc. My friend said it could be someone from Dubai. However, “what’s the data? ”, I asked.</p><h4>£1 houses</h4><p>I don’t know about you, but I was very intrigued by one pound houses. My first reaction was <strong>“ What? £1 for a property in the UK??” </strong>It couldn’t be wrong anymore.</p><p>“£1 must be a mistake.” I thought and plotted a bar chart for those house sold at £1.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D127%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D127%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/025571d9c1076c932ecca5c16c731870/href">https://medium.com/media/025571d9c1076c932ecca5c16c731870/href</a></iframe><p>This can’t be mistaken, I said surprisingly. Since we have statistics for the one pound houses, there were quite many one pound houses. I started to brainstorm before my investigation.</p><h4>Parents’ gifts</h4><p>I heard lots of parents in the UK gave gifts to their children. Maybe they sent a house to their children.</p><h4>Divorce</h4><p>I heard the divorce rate in the UK was quite high. So I wouldn’t be surprised for this reason.</p><h4>Companies bankrupt</h4><p>Running a business is hard and the biggest risk is to lose the company. When the company went bankrupt, they would sell some properties to somewhere else or bank if they loaned money from banks with collaterals.</p><h4>Avoiding taxes</h4><p>Possible. But I believe UK GOV would have sort of systems, experts to recognize unfavourable economy behaviour.</p><h4>Mistakes</h4><p>It happened sometimes. Humans make mistakes in data entry.</p><h4>Always check the data source</h4><p>While I exhausted all reasons, I started to find the data source on the UK GOV. <a href="https://www.gov.uk/guidance/about-the-price-paid-data#data-excluded-from-price-paid-data">https://www.gov.uk/guidance/about-the-price-paid-data#data-excluded-from-price-paid-data</a></p><p>All my assumptions were defeated after examing the description of how UK GOV processed the dataset I used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*XvT-S0_RyF05ZMRBsIHVNg.png" /></figure><h4>Continue Researching the myth of £1 houses</h4><p>I was hooked by these 1 pound houses. Why were there houses sold at £1?</p><p>Besides those reasons I listed, this would never happen in China in my opinion. Chinese people see properties as the most valuable investment, the hardest assets. Also, in the current marriage market, males have to own a property to be married. They would rather hold them and put properties aside until the housing market becomes a bull market.</p><p>Having continued my investigation, I found out actually the GOV in Liverpool tried to solve the housing crisis by launching the <strong>One Pound House Scheme</strong> years ago.</p><p>Furthermore, they made documentary films! <a href="https://www.channel4.com/programmes/the-1-houses-britains-cheapest-street/episode-guide/">The £1 Houses: Britain’s Cheapest Street</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5mYMrC8yiT1xWVAahNeXBA.png" /><figcaption>Lunchtime shows</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*x-Ulmy6XPvVCid5hONJErQ.png" /></figure><blockquote>The one-pound ($1.25) homes program run by Liverpool City Council — the subject of a new TV documentary — is one of a handful of schemes by cities across Britain and Europe searching for innovative ways to solve housing crises. Selling homes for token sums has become a popular, last-ditch strategy for towns, cities and villages fighting depopulation and decay.</blockquote><h4><strong>House sales in Manchester and Bristol were potential</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D132%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D132%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c050a308a31e510c6ee9fe24052c64ff/href">https://medium.com/media/c050a308a31e510c6ee9fe24052c64ff/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D133%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D133%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc737e74a4183fca8db184dc4c9ab068/href">https://medium.com/media/fc737e74a4183fca8db184dc4c9ab068/href</a></iframe><p>The pie chart shows the most popular property type is flat in the top 10 house sales cities, whereas terraced houses are being sold the most for England&amp; Wales.</p><p>I was wondering if there was a correlation between the population of England and Wales and the top 10 cities.</p><p>We could look at flat sales if we consider the property investment for the purpose of reselling in the future.</p><p>On the other hand, detached houses were accounting for 10.5%, whereas semi-detached houses are 21.2%. I wonder if the price can be the main factor for this difference, as prices for detached houses are generally more expensive.</p><h4>Detached houses were more expensive than Semi-detached</h4><p>You might think the statement here is pointless. <strong>Bigger house = Higher price.</strong> However, being a data scientist involves asking “stupid” questions and “smart” questions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D135%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D135%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9b264b869920ec212682d3c29187f03/href">https://medium.com/media/f9b264b869920ec212682d3c29187f03/href</a></iframe><p>In the box plot, we can see clearly the median price of detached houses is higher than the semi-detached house. It’s not that surprising because a detached house is in general bigger than a semi one. However, knowing the price range is very helpful. At least, we can answer a specific question <strong>“How large is large?”</strong></p><p>Let’s look at the Q3.</p><p>Semi-detached had Q3 of £187K, comparing with the detached house having Q3 of £285K. That’s a 52% difference. That’s much large.</p><h4><strong>In terms of property type flat, what’s the ratio for new/old flats among the top 6 flat sales cities?</strong></h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D139%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D139%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/61a47b3a9115ea69f26e7e5bdbbc0ec0/href">https://medium.com/media/61a47b3a9115ea69f26e7e5bdbbc0ec0/href</a></iframe><p>First, we need to find out what the top 6 flat sales cities are.</p><p>If we exclude London, we can see actually the new flat sales in cities like Bristol, Leeds, Liverpool accounting for 5% ish over 12 years. The statistics about the capital city is weighted too much. My guess is the population in London could be larger than any other place in the UK. Somehow, this reveals an increasing demand for properties to live in London.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D143%26hideInput%3Dtrue&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2Fexploratory-data-analysis-uk-housing-price%2Fv%2F134%26cellId%3D143%26hideInput%3Dtrue&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2Ffecf2078697b4d559be848f534554c68%2Fpreview%2Fb5ca6dc9b432430eb39d6f27b68449db%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8006d31cb8538792ac120ea4605c4345/href">https://medium.com/media/8006d31cb8538792ac120ea4605c4345/href</a></iframe><p>The chart demonstrates that Manchester is the second city where flats was sold the most, accounting for almost 12%.</p><p>I’m not surprised to see this increase. London is becoming more and more expensive so that many young people consider moving to Manchester. North England has been attracting young people for job opportunities and promising futures.</p><p>The second following city is Bristol which is in the west of England. It’s a good place for young families. I have friends moving into Bristol after having a baby. Yet, it’s my personal experience and it could be biased. Also, I’d love to live in one day!</p><h3>Summary</h3><h4>1. London is a unique case from anywhere</h4><p>Terraced type property was a popular choice in the UK over years, accounting for 30%(6.6 million) of 22 million house sales across England and Wales over 12 years. However, it depends on different locations. In London, house sales in flat were the most, accounting for 64.93% (1.1 million) out of 1.7 million all house sales in London.</p><p>We need to be careful to validate statistics. Because there are various differences in populations and land resources across England and Wales. It determines the price behavior in the housing market and hard to generalize one-shoes-fit-all conclusions.</p><h4>2. The use of median value for financial assets should be cautious</h4><p>As mentioned earlier, the mean value is not a good example for representing financial assets. However, the price as an indicator can show the general trend over years and helped us to explore the underlying relationships between house prices and other features such as old/new, property types, etc.</p><p>We also discover the housing market was pessimistic during the global financial crisis, no matter what metrics we can use.</p><h4>3. Paying attention to global financial structures and the local political climates</h4><p>Besides the global financial crisis, the housing market is also sensitive to regional politics. When the announcement of voting for Brexit the house sales were soaring. The underlying trigger could be many businesses and people started to plan for relocating if Brexit happened unexpectedly ( In fact, it happened).</p><p>We should pay attention to political news, new policies, etc. Do not wait until it becomes a post-truth. In the financial world, the speed of acquiring information determines a portfolio’s profit margins, due to information asymmetry.</p><h4>4. Some underdeveloped areas are awaiting transformation in the UK</h4><p>The most interesting in this project is when I discovered one pound houses. It’s an unbelievable event. I was so curious about the reasons why there were properties sold at £1. Yet, I believe the house crisis is a real problem in any place in the world.</p><p>One pound houses scheme was an attempt for the house crisis in Liverpool, but I believe the long-term vision should be conducted by us together. We should echo to the government and support them. Maybe more young people are willing to take the challenges to transform societies. Then we can create a bright future for our young generations.</p><h3>Future work</h3><ol><li>You can exclude London for deep regional analysis. People say London is entirely different from any other places in the UK and also can’t represent the whole UK. Many immigrants gathered in London for job opportunities and education. It makes sense if we can exclude London in future work to reach a generalized conclusion.</li><li>I’d recommend you to use the population data from 1995 to 2017. This can help us to form a clear picture of the price behavior.</li><li>I’d recommend narrowing down 10 regions with respects to the desired time period. i.e. (2007–2012) This can generate more interesting insights.</li><li>I’d recommend studying the UK economy and gather data from the banking sector to uncover the correlation between housing prices/sales and the interest rate/mortgage/GDP. You can check out on the site — the Office for National Statistics</li><li>I’d recommend doing a second project based on the UK Housing Price Paid dataset to train a model with machine learning techniques. You can follow instructions of chapter 2 on <strong>Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow</strong> where Géron analyzed the housing price in California.</li></ol><p>Thank you for your time!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JF6AjlpL5g2FYmAaNN4KnQ.jpeg" /></figure><p><a href="https://twitter.com/ShenghongZhong">Twitter:@ShenghongZhong</a></p><p><a href="https://www.linkedin.com/in/shenghongzhong/">LinkedIn:@David Zhong</a></p><p><a href="https://www.instagram.com/davidzhongg/">Instagram:@davidzhongg</a></p><p><a href="https://www.youtube.com/channel/UCAFemIoWYNu7PBJ1JZVRyAw">YouTube: Thedatum</a></p><p><a href="https://jovian.ai/shenghongzhong">Jovian:@Shenghongzhong</a></p><h3>Reference</h3><p>[1] HM Land Registry. UK Housing Price Paid, 2017 . <a href="https://www.kaggle.com/hm-land-registry/uk-housing-prices-paid">https://www.kaggle.com/hm-land-registry/uk-housing-prices-paid</a></p><p>[2] Osbornep. UK House Price Analysis: Part 1.1, 2018. <a href="https://www.kaggle.com/osbornep/uk-house-price-analysis-part-1-1">https://www.kaggle.com/osbornep/uk-house-price-analysis-part-1-1</a></p><p>[3] Aakash N S. Analyzing Tabular Data with Pandas, 2021. <a href="https://jovian.ai/aakashns/python-pandas-data-analysis">https://jovian.ai/aakashns/python-pandas-data-analysis</a></p><p>[6] Aakash N S. Data Visualization using Python Matplotlib and Seaborn, 2021. <a href="https://jovian.ai/aakashns/python-matplotlib-data-visualization">https://jovian.ai/aakashns/python-matplotlib-data-visualization</a></p><p>[7] Aakash N S. Advanced Data Analysis Techniques with Python &amp; Pandas, 2021. <a href="https://jovian.ai/aakashns/advanced-data-analysis-pandas">https://jovian.ai/aakashns/advanced-data-analysis-pandas</a></p><p>[8] Aakash N S. Interactive Visualization with Plotly, 2021. <a href="https://jovian.ai/aakashns/interactive-visualization-plotly">https://jovian.ai/aakashns/interactive-visualization-plotly</a></p><p>[9] Jaramillo,J. Mapping the UK and navigating the post code maze, 2020. <a href="https://focaalvarez.medium.com/mapping-the-uk-and-navigating-the-post-code-maze-4898e758b82f">https://focaalvarez.medium.com/mapping-the-uk-and-navigating-the-post-code-maze-4898e758b82f</a></p><p>[10] Zhong, SZ. Geography Discovery In the United Kingdom , 2021. <a href="https://jovian.ai/shenghongzhong/the-geography-of-the-uk">https://jovian.ai/shenghongzhong/the-geography-of-the-uk</a></p><p>[11] Plotly Documentation. <a href="https://plotly.com/python/">https://plotly.com/python/</a></p><p>[12] the R graph gallery. Parallel Coordinates chart, 2018. <a href="https://www.r-graph-gallery.com/parallel-plot.html">https://www.r-graph-gallery.com/parallel-plot.html</a></p><p>[13] Aakash N S. plotly-line-chart, 2021. <a href="https://jovian.ai/aakashns/plotly-line-chart">https://jovian.ai/aakashns/plotly-line-chart</a></p><p>[14] Nussbaumer Knaflic, Cole. Storytelling with Data, 2015</p><p>[15] Tufte,Edward. Visual Explanations, 1997.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=853aea6ee054" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web scraping tutorial for beginners]]></title>
            <link>https://shenghongzhong.medium.com/a-comprehensive-web-scraping-tutorial-385a2ac27107?source=rss-c6babf37a429------2</link>
            <guid isPermaLink="false">https://medium.com/p/385a2ac27107</guid>
            <category><![CDATA[beautifulsoup]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-analyst]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Shenghong Zhong]]></dc:creator>
            <pubDate>Mon, 26 Apr 2021 21:58:33 GMT</pubDate>
            <atom:updated>2021-07-08T14:59:59.281Z</atom:updated>
            <content:encoded><![CDATA[<p>Since I’m a foreigner living in the UK, I can tell you that it isn’t enough to speak English with a good accent. A language involves lots of sub-cultures under the wood. I’d say I never truly understand Britain until I came here to study, eat and hanging out with people.</p><blockquote>When in Rome, Do as the Romans Do</blockquote><h3>Shenghong Zhong on Twitter: &quot;I made a mistake of thinking book learning help understand.Totally wrong. Understanding a culture involvesEating food.Listening to a music.Walking around on streets.Watching TV.Talking with people.Visiting local museums.joining meetups.Committing to a church.clubbing / Twitter&quot;</h3><p>I made a mistake of thinking book learning help understand.Totally wrong. Understanding a culture involvesEating food.Listening to a music.Walking around on streets.Watching TV.Talking with people.Visiting local museums.joining meetups.Committing to a church.clubbing</p><p>I drink English breakfast tea, eat English breakfast, listen to Grime/Drill, crawl pubs before lockdown. Interestingly, I reckoned that small talk is a big part of the British culture.</p><p><strong>“Watching movies with you” </strong>is the phrase my mate often uses to answer my question about what to do in the evening. Another good data source to get more good entertaining contents is local friends. So I asked my British friends on Instagram.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*9FPjmlfBagzmwrwH0AHtDA.png" /><figcaption>Asking British friends what British TV shows to watch</figcaption></figure><p>I was happily waiting for friends&#39; recommendation and I could just bingle watch over Friday nights. Unfortunately, I didn’t get many answers and attention from my friends. Well, probably my friends were too busy. Yes, it must be.</p><p>One of the things I learned from my previous job is to think about what YOU can OFFER, rather than keep ASKING people for what you WANT. Hence, why not scrape a website where there are tons of information about movies and TV programs. Then I can be VERY popular in small talks.</p><p>People won’t be silent when I said: “<strong>I’m a data scientist.” </strong>in upcoming home parties in June (Trust me, many think I’m a nerd). But I hope they can agree with the saying — “ <strong>Data scientist is the sexist job in 21 century.</strong>” when I convince them what to watch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*sCfw-_xE8wrYsjtwH6dWGg.png" /><figcaption>Data science is sexy!</figcaption></figure><blockquote>A disclaimer before beginning, many websites restrict or outright bar scraping of data from their pages. Users may be subject to legal ramifications depending on where and how they attempt to scrape information. Many sites have a devoted page to noting restrictions on data scraping at <strong>**www.[site].com/robots.txt**</strong>. Be extremely careful if looking at sites that house user data — places like facebook, linkedin, even craigslist, do not take kindly to data being scraped from their pages. When in doubt, please contact with teams at sites.</blockquote><h3>Popular TV shows listed on TMDB (themoviedb.org)</h3><p>data source:<a href="https://www.themoviedb.org/"> TMDB website</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*uKPJCl7sBUb2SAYLQUE5xg.png" /><figcaption>Web scraping at themoviedb.org</figcaption></figure><p>The Movie Database (TMDB) is a community-driven website about movies and television shows database. Every piece of data has been added by the community since 2008. Users can search for their desired topics and discover what they like after browsing a large amount of data. Users can also contribute to the TMDB community by giving reviews and their scores to certain shows for benefits of the community. In summary, TMDB is an excellent website for someone like me who wanted to practice web scraping skills.</p><p>For the purpose of this project, we will retrieve information from the page of <strong>’ Popular TV Shows’ </strong>using <em>_web scraping_</em>: a process of extracting information from a website programmatically. Web scraping isn’t magic, and yet some readers may grab information on a daily basis. For example, a recent graduate may copy and paste information about companies they applied for into a spreadsheet for job application management.</p><p>The project goal is to build a web scraper that withdraws all desirable information and assemble them into a single CSV. The format of the output CSV file is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*r6RjDmNHfCCVmT1T0rYWOQ.png" /></figure><h3>Web Scraping</h3><p>We’re going to use Requests library, Beautiful Soup library, Pandas library.</p><p>Before we dive into the web scraping stuff, I’d love to talk about the beginning of the Internet — World Wide Web.</p><h3>World Wide Web</h3><p>Before we explain what requests library is, we have to ask a question about why. This leads to the story of the World Wide Web. Since 1989, <a href="https://en.wikipedia.org/wiki/Tim_Berners-Lee">Tim Berners-Lee</a> proposed the concept of the <a href="http://info.cern.ch/hypertext/WWW/TheProject.html">World Wide Web</a> as an open platform where users can share information easily and locate it from anywhere in the world. This enables all scientists to continue their research without going back to their home countries at that time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*-jp1ISgjf1KYwKFF_JX_sg.png" /><figcaption>Thank you the father of web</figcaption></figure><h3>Three key components</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*Fw_AuWJan5ef9ONRtICwEw.png" /><figcaption>3 key components of WorldWideWeb</figcaption></figure><h3>HTML</h3><p>We can break down the web into three key things. The first one is the HyperText Markup Language, short for HTML. It’s the standard markup language for documents designed to be displayed in web browsers. What HTML does is to present content, just like a World document which describes paragraphs of texts, images, tables of data.</p><h3>URL</h3><p>The second one is the URL. It stands for Uniform Resource Locator, which is what you enter into your address bar of Chrome every day. What a URL does is to take you to the same page every single time. It’s approximately what your phone number does. If someone phones your telephone number, they’re always going to contact you.</p><h3>HTTP</h3><p>Last but at least, HTTP is a part of the web. It’s an invisible layer underneath the surface that is doing the communication with a server and your browser. For example, when you log into Twitter, you’ll type in your username and passwords. Then, you hit the button “Submit” and those details would be sent using an HTTP request to Twitter servers. Next, the servers will send an HTTP response after processing if the username and passwords are correct.</p><p>In a nutshell, HTTP is the fundamental way that websites communicate with servers which are just giant computers.</p><h3>What is requests library?</h3><p>Requests is a Python HTTP library that allows us to send HTTP requests to servers of websites, instead of using browsers to communicate the web.</p><p>We use pip, a package-management system, to install and manage software. Since the platform we selected is <strong>Google colab</strong>, we would have to type a line of code as shown:</p><p>Requests is a Python HTTP library that allows us to send HTTP requests to servers of websites, instead of using browsers to communicate the web.</p><p>We use pip, a package-management system, to install and manage softwares. Since the platform we selected is <strong>Google colab</strong>, we would have to type a line of code !pip install to install requests. You will see lots codes of !pip when installing other packages.</p><p>When we attempt to use some prewritten functions from a certain library, we would use the import statement. e.g. When we would have to type import requests after installation, we are able to use any function from requests library.</p><pre>!pip install requests --upgrade --quiet<br>import requests</pre><p>Since we focused on popular TV shows, the URL we’re landing on is https://themoviedv.org/tv. Having analyzed the URL structure, I found out a trick that you can access to the specific page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*llr236jCuby3YoDOha6zNg.png" /><figcaption>URL structure analysis</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*LztsVLmJT58zUPKlIq1dyg.png" /><figcaption>URL structure analysis</figcaption></figure><p>In order to download a web page, we use requests.get() to send the HTTP request to the TMBd server and what the function returns is a response object, which is the HTTP response. Since URL can always lead us to a certain page and how TMDb structures its website, I assigned the variable base_url to a value of https://themoviedb.org and tmbd_url to a value of https://themoviedb.org/tv?page=5. To be explicit, I named the variable response to be assigned to the HTTP response containing page contents and other information.</p><p>Later on, I intend to design a function that asked people to input any page they wanted and pass the input value to replace the number 5. Using this design thinking, people can achieve the outcome for either one page of data or X pages of data at TMDb.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D13&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D13&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2Fa1244ba754a04625a62653eabc62cda4%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/18310078a0574d7f6b9c2f8910305759/href">https://medium.com/media/18310078a0574d7f6b9c2f8910305759/href</a></iframe><p>Another thing here is that we have to check if we successfully send the HTTP request and get an HTTP response back on purpose, since we’re not using browsers which we can’t get the feedback straightforwardly.</p><p>In general, the method to check out if the server sent an HTTP response back is the <strong>status code</strong>. In requests library, requests.get returns a response object, which contains the page contents and the information about the status code indicating if the HTTP request was successful. Learn more about HTTP status codes here: <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">https://developer.mozilla.org/en-US/docs/Web/HTTP/Status</a>.</p><p>If the request was successful, response.status_code is set to a value between 200 and 299.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D17&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D17&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F2854b06fc0ff4f80bca3156868fbeb1b%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/978c93697621996acf48df931681bc80/href">https://medium.com/media/978c93697621996acf48df931681bc80/href</a></iframe><p>So we can write a helper function to get the page when we pass the value of page numbers.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D28&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D28&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F20506ff19a3d4c3ca2ed6764364c2566%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/94de599b5cf7907052a3d8f7fee0d0bb/href">https://medium.com/media/94de599b5cf7907052a3d8f7fee0d0bb/href</a></iframe><h3>Parse the HTML source code using the Beautiful Soup library</h3><h4>What is Beautiful Soup?</h4><p>You might wonder what BeautifulSoup(response.text) is as you look at each line of codes for my last helper function get_page(). It was a hint for this section.</p><p>Beautiful Soup is a Python package for parsing HTML and XML documents. Simply, Beautiful Soup enables us to get data out of sequences of characters. It creates a parse tree for parsed pages that can be used to extract data from HTML. It’s a handy tool when it comes to web scraping. You can read more <a href="https://jovian.ai/outlink?url=https%3A%2F%2Fwww.crummy.com%2Fsoftware%2FBeautifulSoup%2Fbs4%2Fdoc%2F%23getting-help">here</a></p><p>To extract information from the HTML source code of a webpage programmatically, we can use the Beautiful Soup library. Let’s install the library and import the BeautifulSoup class from the bs4 module.</p><h4>Inspecting the HTML source code of a web page</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*_amcS0Ci1O-uYKiSJChRHg.png" /><figcaption>Inspecting the HTML source code</figcaption></figure><h4>HTML basics</h4><p>Before we dive into how to inspect HTML, we should know the basic knowledge about HTML.</p><p>In the late 1980s, a British scientist Tim Bereners-Lee invented HTML, which stands for HyperText Markup Language, while working at a CERN laboratory in Switzerland. He didn’t want to make the page contents displayed on the web just regular text files. In order to increase communication efficiency and liberate people’s creativity, he tried to let authors have the ability to define each part of the texts. Hence, the content displayed on web pages is written in HTML.</p><p>Tim wanted authors to let whoever was viewing the site know that a particular part of the text was a heading and that another part was a paragraph. The solution he designed was to surround the text with things called <strong>‘tags’</strong>. He wanted to start the header at one place and finish it at another.</p><p>In Beautiful Soup library, we can specify html.parser to ask Python to read components of the page, instead of reading it as a long string.</p><p>We can use &lt;title&gt; tag as an example to demonstrate what <strong>`tag&#39;</strong> is in HTML.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UKT57sHtE6adTbJQ6Z52dw.png" /><figcaption>an example of a tag in HTML</figcaption></figure><h3>Common tags and attributes in HTML</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*kiEUlGQ5hRJVItbVd1J5dg.png" /><figcaption>common HTML tags</figcaption></figure><p>There are around 100 types of HTML tags but on a day to day basis, around 15 to 20 of them are the most common use, such as &lt;div&gt; tag, &lt;p&gt; tag, &lt;section&gt; tag, &lt;img&gt; tag, &lt;a&gt; tags.</p><p>An HTML tag comprises of three parts:</p><ol><li><strong>Name</strong>: (html, head, body, div, etc.) Indicates what the tag represents and how a browser should interpret the information inside it.</li><li><strong>Attributes</strong>: (href, target, class, id, etc.) Properties of tag used by the browser to customize how a tag is displayed and decide what happens on user interactions.</li><li><strong>Children</strong>: A tag can contain some text or other tags or both between the opening and closing segments, e.g., &lt;div&gt;Some content&lt;/div&gt;.</li></ol><p>Of many tags, I wanted to highlight &lt;a&gt; tag, which can contain attributes such as href (hyperlink reference), allowing users to click and go to another site. That&#39;s why the name of &lt;a&gt; tag is ‘<strong>anchor’</strong>.</p><p>Each tag supports several attributes. Following are some common attributes used to modify the behaviour of tags</p><ul><li>id</li><li>style</li><li>class</li><li>href (used with &lt;a&gt;)</li><li>src (used with &lt;img&gt;)</li></ul><h3>Building the scraper components</h3><p>In this section, we are starting to build pieces of components for our scraper to extract movie titles, released date and detailed URL. As mentioned earlier, the outcome we want is a CSV file containing as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*r6RjDmNHfCCVmT1T0rYWOQ.png" /></figure><h3>Inspecting HTML in the Browser</h3><p>To view the source code of any webpage right within your browser, you can right-click anywhere on a page and select the “Inspect” option. You access the “Developer Tools” mode to see the source code as a tree. You can expand and collapse various nodes and find the source code for a specific portion of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*fXBbk5nWpxZ-0-P40Ousnw.png" /><figcaption>Inspect HTML structure by the developer tool</figcaption></figure><p>As shown in the photo above, I’ve cursored over one of the TV programs to display how the entire content was presented. I found out the data on each page <em>is</em> held within a &lt;div&gt; tag with the attribute class=&quot;page_wrapper&quot;. Its children tags is another &lt;div&gt; tag including the class=&quot;content&quot;. That&#39;s a good sign. we will not need to know every attribute of every tag to extract our information, but it is helpful to analyze the structure of HTML source code.</p><p>As of writing this, I&#39;m reminded of one episode from my favourite podcast called <a href="https://darknetdiaries.com/">Darknet Diaries</a> where it was about a people hacker named Jenny, who is paid to break into buildings and test their security, sometimes paid to get an essential notebook. The first thing she would do is to analyze the building structure and make strategies to implement it. Here I made a similar plan to “break” into the “house” to get data. Nah, she is more challenging.</p><p>Since I’ve pulled a single page, and return to a BeautifulSoup object, we can start to use some function from Beautiful Soup library to withdraw the piece of information we want.</p><p>By looking at the page, there must be 20 tv programs on one page. Therefore, each function I write to withdraw a piece of information should yield 20 different items. If my output provides fewer than the total number of 20, it indicates something went wrong and refers back to the page itself to debug the code.</p><h3>1. Movie titles</h3><p>As noted above, the entire tv program is nested under &lt;div class=&quot;content&quot;&gt; tags. Having looked it into details, I could see that movie titles are listed under &lt;a&gt; tags with the attribute title= &quot;[THE MOVIE TITLES]&quot;, Here are the texts for &lt;a&gt; tags are the same as values of title attributes.</p><p><a href="https://jovian.ml/shenghongzhong/210424-project001-web-scraping-tmbd/v/29&amp;cellId=54">https://jovian.ml/shenghongzhong/210424-project001-web-scraping-tmbd/v/29&amp;cellId=54</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D56&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D56&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F78f955e383fe4228a807ed4433b78e52%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b6210904d9fd5c74dcbcdf7e6344fc3/href">https://medium.com/media/6b6210904d9fd5c74dcbcdf7e6344fc3/href</a></iframe><h3>2. Released date</h3><p>The data about the release date is actually living in the same tag &lt;p&gt; tag.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttp%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D58&amp;dntp=1&amp;display_name=Jovian&amp;url=http%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D58&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/00cc7a096c25ab7737348b040f8dd49e/href">https://medium.com/media/00cc7a096c25ab7737348b040f8dd49e/href</a></iframe><p>You might not notice here is a small <strong>issue</strong> with the date. Since our output is a CSV file, and CSV stands for Comma-separated values. It is a delimited text file that uses <strong>a comma</strong> to <strong>separate values</strong>. Each line of the file is a data record.</p><p>In this case, we will mess up if we don’t think of ways to clean up the data. Fortunately, we have <strong>a module</strong> called datetime to help us. Also, I developed if/else statement to avoid some tv programs with NO released date. AKA, no value to be found.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D61&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D61&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F53bd8138e5384e748d39cf48636dfe3f%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/52df257438cbda74a39e2dc83b6c7a5a/href">https://medium.com/media/52df257438cbda74a39e2dc83b6c7a5a/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D63&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D63&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F81a33793e49d43dfa0d7ba3b7c8a7d3c%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/27ea05f816b1c2a5712ea4c129299f04/href">https://medium.com/media/27ea05f816b1c2a5712ea4c129299f04/href</a></iframe><h3>3. User score</h3><p>User score is located under the &lt;span&gt; tags. Initially, I tried the method of getting the &lt;div&gt; tag with the attribute date-percent=&quot;79.0&quot;. You can find find the value of a tag&#39;s attribute with tag[&quot;attribute&quot;]. But I decided to go with &lt;span&gt; tag simply because it makes my job easier.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D68&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D68&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F853a69b1484c42d7b52d95118e0b5589%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ec00dba334060e1ce4c8f84e2a521a3/href">https://medium.com/media/8ec00dba334060e1ce4c8f84e2a521a3/href</a></iframe><h3>4. Image link</h3><p>Images were a bit tricky. Since it is housed in different types of tags under the &lt;div class=&quot;paper_wrapper&quot;&gt;, we have to modify it. So we create a variable a_tags_for_imgs to capture all &lt;a&gt; tags containing the images.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D77&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D77&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F90e6eea905bc40faadc86f6bef20f433%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/c443dfb1d526b368a7dc27025f9f8c51/href">https://medium.com/media/c443dfb1d526b368a7dc27025f9f8c51/href</a></iframe><p>As said eariler, our <strong>intention</strong> is to get the <strong>URL</strong> for the <strong>image</strong>. Having examined the tag strucure, we could find out that <strong>the value of attribute </strong><strong>src</strong> can help us to get the image. But we have to concatenate it with our base_url which is <a href="http://themoviedb.org./">http://themoviedb.org</a>.</p><p>If we got 20 as the total number of image tags, it means we’re successful to capture the information.</p><p>On the other hand, we have to consider one situation where the site did not have the image for a tv program. I developed if/else statements to avoid this situation. Anyway, let’s wrap this up into a function.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D78&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D78&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2Ff456381cf8aa4b238929e197bc00eda7%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/03f9da2d79d16de293e32b34eaeef02e/href">https://medium.com/media/03f9da2d79d16de293e32b34eaeef02e/href</a></iframe><h3>5. Detailed page</h3><p>For the detail page, I’ve tried many methods to figure out how to get this URL. It turns out each TV program has its unique identifier. Each identifier actually lives within &lt;a&gt; tags. It&#39;s reasonable to see how it functions. Because visitors usually click on images to find out more.</p><p>The attribute href stands for ‘<strong>hyperlink reference</strong>’ and usually comes with &lt;a&gt; tags.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D83-85&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D83-85&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2Fc1da9660129b4023bd748f86ef7367b8%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa75eb9478b96c28fc7f9145733c6b20/href">https://medium.com/media/aa75eb9478b96c28fc7f9145733c6b20/href</a></iframe><h4>Summary</h4><p>In this section, we know how to extract information from the HTML document using Beautiful Soup library.</p><ul><li>We have learned HTML basics</li><li>We have analyzed the HTML structure and contents</li><li>We have successfully extracted information about movie titles, released date, image URLs, details URL, user scores.</li><li>We have written some helper functions such as parse_images(), convert_date()</li></ul><h4>Let’s wrap it up into a function</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D87&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D87&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F5288b7bc24374708bc4ef881b0afdce1%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/41e32e3e2914965f3cf53d96bd275222/href">https://medium.com/media/41e32e3e2914965f3cf53d96bd275222/href</a></iframe><h3>Compile extracted information into Python list and dictionaries</h3><h4>Dictionary Concatenation</h4><p>So far we have successfully captured information from one single tag in a data structure that is ‘dictionary’.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D90-94&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D90-94&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2Fbff6f945c066458eb2c15a651d16537c%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/284692f85a09f51a9c696f7c470d0e51/href">https://medium.com/media/284692f85a09f51a9c696f7c470d0e51/href</a></iframe><p>Let’s wrap this up into a helper function. Whenever we pass content_tags, img_tags which is what parse_content() and parse_image() return, we can get a list of dictionary data.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D95&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D95&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2Fb3b831a8fb0b499186f25ad9480a1ffa%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/e77c86768a13932c3a87788ee9d8f6fd/href">https://medium.com/media/e77c86768a13932c3a87788ee9d8f6fd/href</a></iframe><h3>Write information to CSV files</h3><p>We aim to get the CSV file. We can write a simple function to get this outcome into a CSV file.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D99&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D99&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F2607c38bbf1c4f61a8af3ffb576eaec3%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/f71c595e7f28d6a4de9482a0f27bacd5/href">https://medium.com/media/f71c595e7f28d6a4de9482a0f27bacd5/href</a></iframe><h3>Summary</h3><p>In this section, we have written functions such as</p><ul><li>get_page() for an HTTP request and returning with Beautiful Soup</li><li>parse_content() for parsing all contents such as movie title, released date, detailed page, user scores on the web page.</li><li>convert_date() for cleaning date data into a nice format</li><li>parse_image() for parsing one image tag into a dictionary</li><li>all_contents() for concatenating two outputs from parse_content() and parse_image() into a list that comprises of elements in the data structure of dictionary</li><li>get_one_page() is a nice function we designed to combine with all_content() and get_page() as well. It returns a list of dictionary</li><li>write_csv() and read_csv() for write a list of dictionary as an output of all_contents()</li></ul><p>Now, every piece of the scraper has assembled together. We need to write a function to help us to get one single page of data and output a CSV file.</p><h3>One page web scraper</h3><p>So far, we can combine all pieces of scraper components into a single function to get one page of data if we specify a page number.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D102&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D102&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F6c02c9f4058e40839a4dd9d57f98230a%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/716a23fac1ce4739da62776d2dbd82eb/href">https://medium.com/media/716a23fac1ce4739da62776d2dbd82eb/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D104-107&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D104-107&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2F61138402739143e0a41df5c4d381ee74%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/90e5c8533ba66ec2da90c28770dd675e/href">https://medium.com/media/90e5c8533ba66ec2da90c28770dd675e/href</a></iframe><h3>Extract and combine data from multiple pages</h3><p>Since we can get one page of data, we can simply write another function on top of the helper function. I named it ultra_scraper().</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fjovian.ai%2Fembed%3Furl%3Dhttps%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D109-112&amp;dntp=1&amp;display_name=Jovian&amp;url=https%3A%2F%2Fjovian.ai%2Fshenghongzhong%2F210424-project001-web-scraping-tmbd%2Fv%2F29%26cellId%3D109-112&amp;image=https%3A%2F%2Fjovian.ai%2Fapi%2Fgist%2F8b11169c3d8f415aa77ee39baec0b19f%2Fpreview%2Fd32eb57d0943427da2f834726dcef6d8%3Fsize%3Dl&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=jovian" width="800" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/7046266b859e64b33c2e793787a3e02c/href">https://medium.com/media/7046266b859e64b33c2e793787a3e02c/href</a></iframe><p>Now we can get 20 pages of data, which is very exciting!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BT2SRN2_UuzknaHxSA4uYA.png" /></figure><h3>Future work</h3><p>It was an interesting project. It reminded me of the time at my previous job as a research associate. I was involved in the innovation project about building a data pipeline from Weibo, a Twitter-like Chinese social media platform. Also, the regular activities I did at previous work are collecting all kinds of data from the Internet. I remembered my boss and CTO were calculating the limit rate and how quickly we can get all data ready. The CTO often mentioned “farming”. I love this word to describe how we collect data from the digital world.</p><p>Web scraping is the first step to get real data from the real world. It’s absolutely exciting. For the limit of time, I wasn’t able to do some analysis. However, good questions are better than meaningless action. I remember there is one day I showed my data visualization work to my boss. He messaged me back, “ that’s cool. but what is the insight for our clients?”</p><p>As for future work, if any of you is interested in it, you can develop my code to get more data such as cast, crew and comments to answer these questions as follows:</p><ul><li>Which year do we have the most TV shows?</li><li>What TV shows do users at TMBd comment on the most? If there wasn’t sufficient comments, we can collect comments from another site like Rotten Tomatoes, <a href="https://www.rottentomatoes.com/">https://www.rottentomatoes.com/</a> or Reddit, or Twitter using API if neccessary</li><li>Which factors( the number of black actors, female actors, genres) can determine those users to comment?</li></ul><h3>Some ideas about new projects</h3><h4>Looking for aspiring artists on foundation.app</h4><p>As for my future project, I’m interested in doing something with Bitcoin as I’m a big fan of cryptocurrency. As the writing of this, the NFTs (Non-fungible tokens)is a hit topic. An artist called Beeple sold his digital artwork at the price of 6.6 million dollars. People started to realize this is going to be a big thing. In summary, NFTs could be the Internet of Intellectual Property. However, some started to question if NFTs actually solve the problem. What if a person screenshotted someone’s digital artwork? Besides, it’s interesting to think of the value of the original work comparing with fake. What’s the real difference between Mona Lisa and fake Mona Lisa?</p><p>My opinion is quite simple and just answer key questions like</p><ol><li>Who created?</li></ol><p>This is because the original Mona Lisa is created by Leonardo da Vinci.</p><p>2. How long are they active in the market?</p><p>Do you know how long Leonardo da Vinci spent painting Mona Lisa? It took him 16 years to finish.</p><p>NFTs provides us with a new way to support artists. Wait, How on earth can I know who has the potentials for those upcoming artists?</p><p>So my idea is to get data from those platforms where artists hang out and sell their artwork. You can simply create multiple profiles for those aspiring artists.</p><h4>Correlation between inflation&amp;corruption rate and volumes on localbitcoin.com</h4><p>I went to a small gathering for bitcoiners in London 2 weeks ago. It was nice weather in Hydepark. One of the people I met was interested in my skills in data science and we are thinking of getting a project done together. It could be my next project.</p><p>It’d be interesting to know some factors drive people to trade bitcoins.</p><p>However, the first step would be always to collect data.</p><h4>Frontline reports for e-commerce business</h4><p>You might know Kickstarter or Indiegogo. What about we can provide some sort of service for e-commerce business owners? For example, once we found something that is similar to their products, they got notification. It could be helpful for them to develop their next product planning.</p><p>Yet, the first step is to get data!</p><p>All right, thank you for reading here.</p><p>Complete notebook is available here — <a href="https://jovian.ai/shenghongzhong/210424-project001-web-scraping-tmbd">Jovian</a>.</p><p>You can follow me on Twitter <a href="https://twitter.com/ShenghongZhong">@ShenghongZhong</a>, or on Linkedin <a href="https://www.linkedin.com/in/shenghongzhong/">David Zhong</a>, or on Instagram <a href="https://www.instagram.com/davidzhongg/">@Davidzhongg</a>. I also run my weekly vlogging on <a href="https://www.youtube.com/channel/UCAFemIoWYNu7PBJ1JZVRyAw">Youtube channel.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*0PoDwhPjqWrQM0ZKVyrJdQ.png" /><figcaption>David Zhong business card</figcaption></figure><h3>References</h3><h3>References</h3><p>[1] Python offical documentation. <a href="https://docs.python.org/3/">https://docs.python.org/3/</a></p><p>[2] Requests library. <a href="https://pypi.org/project/requests/">https://pypi.org/project/requests/</a></p><p>[3] Beautiful Soup documentation. <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/">https://www.crummy.com/software/BeautifulSoup/bs4/doc/</a></p><p>[4] Aakash N S, Introduction to Web Scraping, 2021. <a href="https://jovian.ai/aakashns/python-web-scraping-and-rest-api">https://jovian.ai/aakashns/python-web-scraping-and-rest-api</a></p><p>[5] Salmon. M (2017 , Web Scraping Job Postings from Indeed. <a href="https://medium.com/@msalmon00/web-scraping-job-postings-from-indeed-96bd588dcb4b">https://medium.com/@msalmon00/web-scraping-job-postings-from-indeed-96bd588dcb4b</a></p><p>[6] Lazar. D(2020), Scraping Medium with Python&amp; Beautiful Soup. <a href="https://medium.com/the-innovation/scraping-medium-with-python-beautiful-soup-3314f898bbf5">https://medium.com/the-innovation/scraping-medium-with-python-beautiful-soup-3314f898bbf5</a></p><p>[7] Arif Ul Islam(Ron), How to Become a Pro with Scraping Youtube Videoes in 3 minutes. <a href="https://medium.com/brainstation23/how-to-become-a-pro-with-scraping-youtube-videos-in-3-minutes-a6ac56021961">https://medium.com/brainstation23/how-to-become-a-pro-with-scraping-youtube-videos-in-3-minutes-a6ac56021961</a></p><p>[8] Hoekstra.D(2020), How to Scrape Wikipedia Articles with Python, <a href="https://www.freecodecamp.org/news/scraping-wikipedia-articles-with-python/">https://www.freecodecamp.org/news/scraping-wikipedia-articles-with-python/</a></p><p>[9] Macaraeg.R(2020), Web Scraping Yahoo Finance. <a href="https://towardsdatascience.com/web-scraping-yahoo-finance-477fe3daa852">https://towardsdatascience.com/web-scraping-yahoo-finance-477fe3daa852</a></p><p>[10] Mohan.M(2020), Web Scraping Python Tutorial — How to Scrape Data From A Website. <a href="https://www.freecodecamp.org/news/web-scraping-python-tutorial-how-to-scrape-data-from-a-website/">https://www.freecodecamp.org/news/web-scraping-python-tutorial-how-to-scrape-data-from-a-website/</a></p><p>[11] Pandas library documentation. <a href="https://pandas.pydata.org/docs/">https://pandas.pydata.org/docs/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=385a2ac27107" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>