<?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 Serap SU on Medium]]></title>
        <description><![CDATA[Stories by Serap SU on Medium]]></description>
        <link>https://medium.com/@su.serap?source=rss-9c5c47b99d55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6IRroGXnMgoGyUFjlFmlJA.png</url>
            <title>Stories by Serap SU on Medium</title>
            <link>https://medium.com/@su.serap?source=rss-9c5c47b99d55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:03:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@su.serap/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[What is PostgreSQL and How to use it?]]></title>
            <link>https://medium.com/@su.serap/what-is-postgresql-and-how-to-use-it-eedd569d6879?source=rss-9c5c47b99d55------2</link>
            <guid isPermaLink="false">https://medium.com/p/eedd569d6879</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Serap SU]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 08:32:03 GMT</pubDate>
            <atom:updated>2022-12-14T08:32:03.085Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*XIMVb4ZQRfSS4ZnI6WfH0Q.jpeg" /></figure><p>PostgreSQL is an open-source SQL database management system. It is designed to handle large databases and has many features, such as advanced SQL support for users, allowing them to easily manage and manipulate the data in their databases. It also offers features such as multi-user support and high security levels.</p><p>To use PostgreSQL, you first need to install it on your computer. After that, you need to create a database and add your data to it. You can then use SQL queries to manage and manipulate the data in your database. PostgreSQL also supports multiple users, allowing multiple users to access and work on the database at the same time.</p><p><strong>How to set up postgresql?</strong></p><p>To set up PostgreSQL, follow these steps:</p><ol><li>First, go to the PostgreSQL download page and download the latest version.</li><li>After the download is complete, run the installation file to start the installation wizard.</li><li>Follow the steps in the wizard to complete the installation.</li><li><a href="https://www.postgresql.org/download">https://www.postgresql.org/download</a> we can go to the address of the registry and select Windows and start downloading it.</li><li>Once we have downloaded PostgreSQL, we open the downloaded exe and complete the installation by clicking on the Next button on the installation welcome screen.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOBna5AkYgoUUBIwcHqzCg.png" /></figure><p>6. then create your password and make sure to write it down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*yGewt4aEWMcAUMcwSEeFKg.png" /></figure><p>Now that you’ve completed all your stages, postgresql is ready to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N6MZkDBbLh6rDCiW97GwKw.png" /></figure><p><strong>PostgreSQL command samples;</strong></p><p>SELECT * FROM users; - This command is used to select all data from the &quot;users&quot; table.</p><p>INSERT INTO users (username, email) VALUES (&#39;name&#39;, &#39;name@gmail.com&#39;); - This command is used to insert a new record into the &quot;users&quot; table.</p><p>UPDATE users SET email = &#39;name@gmail.com&#39; WHERE username = &#39;name&#39;; - This command is used to update an existing record in the &quot;users&quot; table.</p><p>DELETE FROM users WHERE username = &#39;name&#39;; - This command is used to delete an existing record from the &quot;users&quot; table.</p><p>CREATE TABLE orders (id serial PRIMARY KEY, customer_id int, product_id int, quantity int); - This command is used to create a new table called &quot;orders&quot; with the specified columns and data types.</p><p>ALTER TABLE orders ADD COLUMN total_price numeric; - This command is used to add a new column called &quot;total_price&quot; to the &quot;orders&quot; table.</p><p>DROP TABLE orders; - This command is used to delete the &quot;orders&quot; table from the database.</p><p>CREATE INDEX index_name ON orders (customer_id); - This command is used to create an index called &quot;index_name&quot; on the &quot;customer_id&quot; column of the &quot;orders&quot; table.</p><p>SELECT * FROM orders WHERE customer_id = 1; - This command is used to select all data from the &quot;orders&quot; table where the &quot;customer_id&quot; is 1.</p><p>BEGIN; - This command is used to start a new transaction in PostgreSQL.</p><p><strong>In Addition;</strong></p><p>To reset the password for a PostgreSQL user, you can use the ALTER USER command. For example:</p><pre>ALTER USER username WITH PASSWORD &#39;new_password&#39;;</pre><p>This will change the password for the user with the specified username to the new password provided. Keep in mind that this command must be run by a user with the appropriate privileges, such as a superuser.</p><p>Alternatively, you can use the psql command-line interface to reset the password for a user. To do this, you can connect to the database using the psql command and then use the \password command to change the password for a specific user. For example:</p><pre>psql \password username</pre><p>This will prompt you to enter the new password for the user. Once you have entered the new password, the password for the user will be updated.</p><p><strong>Thank you for reading :)</strong></p><p>Serap SU</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eedd569d6879" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploratory Data Analysis with MTA Turnstile Data in NYC]]></title>
            <link>https://medium.com/@su.serap/exploratory-data-analysis-with-mta-turnstile-data-in-nyc-2961760768db?source=rss-9c5c47b99d55------2</link>
            <guid isPermaLink="false">https://medium.com/p/2961760768db</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[nyc]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Serap SU]]></dc:creator>
            <pubDate>Thu, 06 Oct 2022 09:38:10 GMT</pubDate>
            <atom:updated>2022-10-06T09:38:10.416Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*NwZazLKj7MpycArnRBiF3g.jpeg" /></figure><p>The first mounth of the Istanbul Data Science Academy Bootcamp has just concluded. We carried out this project together with teamwork in groups of 4 people. It was really a very useful and productive work for us. Below I detail the first project that we did in that period.</p><p><strong>Tools and Data Source</strong></p><p>We used pandas, numpy, matplotlib and seaborn libraries with jupyter notebook in this MTA project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GKXzn1MQTrgh9Fis_sZiQg.png" /></figure><p><strong>I. Problem Set</strong></p><p>Women Tech Women Yes (WTWY) has an annual gala in New York City (NYC) at the beginning of the summer each year. They try to do double duty with the gala both to fill their event space with individuals passionate about increasing the participation of women in technology, and to concurrently build awareness and reach.</p><p>To this end, they place street teams at entrances to NYC subway stations. The street teams collect email addresses and those who sign up are sent free tickets to their gala.</p><p>Our task was to use subway data from NYC’s Metropolitian Transit Authority (MTA) to help WTWY optimize the placement of their street teams, such that they can gather the most signatures, ideally from those who will attend the gala and contribute to their cause.</p><p><strong>II: The Data</strong></p><ul><li>In order to reach more people for the GALA at the beginning of summer, it is focused previous three months.</li><li>Previous years are eliminated due to pandemic circumtances do not show realistic results</li><li>We can use this site <a href="https://new.mta.info/">https://new.mta.info/</a> to download the required data.</li></ul><p><strong>III. The codes to these project</strong></p><p>First, we pull the library loads and data from the relevant web page and display all the columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITyWuakk1AE-sHa3wKjOIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0oSqtDThVOieTlGM7L05PQ.png" /></figure><p>Since the first 3 columns alone are meaningless, we combine these columns and obtain a single turnstile data. however, we create a new day column and a new traffic column by adding our new entry and exit data and taking the difference of our input and exit data. thus, we make our data a cleaner data that can be processed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGEhKlAu-9BWYBlFl3zW4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*debx2Gt9wQUsJczZpgnzTA.png" /></figure><p>When we examine the data, we can observe that there is a cumulative distribution and that there is a transition through the turnstiles every 4 hours.we can fill the NaN values resulting from this cumulative increment with zeros with the function dx.fillna(0) so that we can remove all null values and examine our data in more detail again.</p><p><strong>IV. Results</strong></p><p>What we want is to strategically determine the regions, so we can list the top 10 stations with the following function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HYTGpD_e0AF8a3bEAj7VMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNCp1f-q-6yItKBRZ_Dgrg.png" /></figure><p>We observe that 34-ST-PENN station is the busiest station. Accordingly, we can observe the distribution according to the days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UTrNxyvTWxATEU5cF9P-Yg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*mmAX0aHGpTN5A7ZcUzEz9g.png" /></figure><p>Thank you for reading.</p><p>Serap SU</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2961760768db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>