<?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 Gülhan Ünsal on Medium]]></title>
        <description><![CDATA[Stories by Gülhan Ünsal on Medium]]></description>
        <link>https://medium.com/@gulhnrya?source=rss-72944855db00------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9-9BZ-G74bqA8b1c9STmEA.png</url>
            <title>Stories by Gülhan Ünsal on Medium</title>
            <link>https://medium.com/@gulhnrya?source=rss-72944855db00------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:20:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gulhnrya/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[MTA Turnstile Data Analysis for WTWY]]></title>
            <link>https://medium.com/@gulhnrya/mta-turnstile-data-analysis-for-wtwy-e00558eb8814?source=rss-72944855db00------2</link>
            <guid isPermaLink="false">https://medium.com/p/e00558eb8814</guid>
            <dc:creator><![CDATA[Gülhan Ünsal]]></dc:creator>
            <pubDate>Sat, 15 Oct 2022 00:11:42 GMT</pubDate>
            <atom:updated>2022-10-15T00:11:42.048Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone. I will share with you the first project of the <a href="https://www.linkedin.com/search/results/all/?heroEntityKey=urn%3Ali%3Aorganization%3A34758025&amp;keywords=istanbul%20data%20science%20academy&amp;origin=RICH_QUERY_SUGGESTION&amp;position=0&amp;searchId=e6c18f28-be40-41d6-b02d-37cc8ec1173c&amp;sid=6d(">Istanbul Data Sciences Bootcamp</a>, which I attended under the leadership of <a href="https://www.linkedin.com/in/zekeriyabesiroglu/">Zekeriya Beşiroğlu</a>. Although it has been a very short time since I attended the training, I think that they have made a great contribution. Special thanks to Zekeriya Beşiroğlu, <a href="https://www.linkedin.com/search/results/all/?heroEntityKey=urn%3Ali%3Afsd_profile%3AACoAADC1AZABNfC00HGXVqSGeS8iiGoVWUuNyPQ&amp;keywords=ata%20%C3%B6zarslan&amp;origin=RICH_QUERY_SUGGESTION&amp;position=0&amp;searchId=af30255a-9446-4d80-8c19-edc4531191aa&amp;sid=a-*">Ata Özarslan</a> and the Istanbul Data Science team.</p><p>The WTWY (WomenTechWomenYes) team holds an annual gala at the beginning of summer each year and hopes to invite as many interested people as possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lxE_r3Ih-dg1Mm5wbdo2Og.jpeg" /><figcaption><a href="https://unsplash.com/@onevagabond?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Paulo </a><a href="https://unsplash.com/s/photos/nyc-subway?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Silva&#39;nın</a> Unsplash&#39;taki fotoğrafı</figcaption></figure><p><strong>My aim</strong> ; is to ensure that the street teams at the entrances of metro stations reach the maximum number of people.</p><p><strong>My approach ; </strong>for this is to find out on which days of the week and at what time periods of the week the entries and exits of the metro stations are busy by using the MTA metro data.</p><h3><strong>Data </strong>Preprocessing</h3><p>The MTA turnstile data provides us with the subway entrie and exit information on a weekly basis. Analyze turnstile data from the latest week 01/03/22 to 31/06/22. I can use <a href="http://web.mta.info/developers/turnstile.html">this site</a> to download the required data.</p><p>I used pandas, numpy, matplotlib, datetime and seaborn libraries in this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-JOyHhiwgqVXAaHPKSaKg.png" /></figure><ol><li>Each turnstile has a unique combination of ‘UNIT’ and ‘SCP’ number. That’s why Unıt, SCP and C/A columns have been combined into a single column.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*05zFLb6oqzY1jJhiG8rcyg.png" /></figure><p>2. Duplicate and null values were removed from the dataset. Removed leading and trailing spaces from column names.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*H_auOxxktq9cncfDCDkW1w.png" /></figure><p>3. We created a time period column by specifying the time in four-hour periods in order to find the time interval of the day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*zNbRikEKnlqP6ZgkJNF3jA.png" /></figure><p>4. Since each input and output value in the data set is cumulative, the actual values are determined with the diff function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*SMxz_9mwWslCmAPMnoEnOw.png" /></figure><p>5. We observed that some of the actual entry and exit data of the turnstile are negative. We have taken the absolute value of the data in order to avoid data loss in case of counter reading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*9yvqweoWUhCl92tOFFszTg.png" /></figure><p>6. The threshold value was determined as 7200 in four hours, according to the probability of one person passing through the turnstile in two seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*ET7u3Z04AY-pp6A2lr6Z6g.png" /></figure><ul><li>Our dataset after data preprocessing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*a6fG2lKc4rxCMfjh6ZkaYQ.png" /></figure><h3><strong>Results</strong></h3><ul><li>As a result of my research, I determined the 10 stations with the highest density.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoZgHSMUn26I5-lHqEjpYg.png" /></figure><ul><li>-As a result of the analysis by days, it was observed that the total maximum number of entries and exits was concentrated during the week and decreased at the end of the week.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*hQz6kT8Es6G1SLYFyHBjhQ.png" /></figure><ul><li>-As a result of the analysis according to time periods, it was observed that the total maximum number of entries and exits was concentrated between 15:00 and 19:00.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*X_1yM-IYixXhX-9JqFQfmw.png" /></figure><ul><li>Distribution of the 10 stations with the highest entry-exit density by day and time periods.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C3FReaIclKo1R2g6qq077Q.png" /></figure><h3><strong>Conclusion</strong></h3><ul><li>WTWY should focus on sending street teams to the 10 busiest MTA stations.</li><li>At these stations, the afternoon should focus on the time between 07:00 and 19:00 on weekdays.</li><li><strong>Especially</strong> at 34 ST-PENN STA, GRD CNTRL-42 ST, 34 ST-HERALD SQ, TIMES SQ-42 ST stations, where it can get the best efficiency, on Tuesday, Wednesday and Thursday, which is the busiest day, at 15:00 and 19:00, It has the highest human population.</li></ul><p><em>Thank you for reading.</em></p><p>You can find notebook codes at the my <a href="https://github.com/gulhan-67/MTA-Turnstile-Data-Analysis-for-WTWY/blob/main/mta.ipynb">Github</a> address.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e00558eb8814" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>