<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Britny</title>
    <description>The latest articles on DEV Community by Britny (@britnysarver).</description>
    <link>https://dev.to/britnysarver</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F922997%2F6b79cf59-6ee5-45e8-aa40-c11f40c5a440.png</url>
      <title>DEV Community: Britny</title>
      <link>https://dev.to/britnysarver</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/britnysarver"/>
    <language>en</language>
    <item>
      <title>Python for Data Analysts: A Random Use Case</title>
      <dc:creator>Britny</dc:creator>
      <pubDate>Fri, 02 Dec 2022 03:14:30 +0000</pubDate>
      <link>https://dev.to/devsatasurion/python-for-data-analysts-a-random-use-case-5ahg</link>
      <guid>https://dev.to/devsatasurion/python-for-data-analysts-a-random-use-case-5ahg</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Let me start out by saying, this is not the post I had planned but it is the post that I am writing because I think it is interesting and potentially useful. In this post I will regale you with the story behind why I decided to use Python to solve my particular problem and how it came about. Following this tantalizing story, I will actually walk you through what I did in Python using a dummy data set that represents what I was exporting from SQL.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Background Story
&lt;/h2&gt;

&lt;p&gt;Let me set the stage for you…&lt;/p&gt;

&lt;p&gt;I am working on creating a new SQL query that will eventually be adopted into views that my team use on a daily basis. I’ve been working on this for a few weeks, and I finally get to the point where I want to output a pivoted summary table of the data so I can do some validation, because looking at hundreds of thousands of rows of data isn’t going to be useful to figure out what I’m looking at.&lt;/p&gt;

&lt;p&gt;I painstakingly write the hundreds of lines of code that I need to write in SQL to “pivot” my data, only to run into a memory issue. I try a variety of optimization techniques, but nothing works! What can I do? &lt;/p&gt;

&lt;p&gt;Well, let’s be honest. I have a lot of options. I can put the SQL into a query in PowerBI and use the power of PowerBI to create my table and many other visuals. I can export the data to Excel and play with it in there. I could have explored other SQL options. Needless to say, I had options; however, my mind thought… “Can Python do this? What are its capabilities? Should I use this opportunity as a chance to explore Python a bit?”&lt;/p&gt;

&lt;p&gt;At first, I thought I should just user PowerBI or Excel because I know them, I am familiar with them, I could probably do what I needed to relatively quickly. After thinking about it though I decided that the potential delay by trying it in Python was worth it because it was a learning opportunity!&lt;/p&gt;

&lt;p&gt;One more quick tidbit of information that may be useful, I am trying, with this code, to create a linear funnel of my data. So, there is a category and then a few categories where the numbers are subtracted from the category above to then create a more directed category. This is repeated a few times to get to the ultimate goal category but outlining along the way why data points are being removed by putting them in categories. This may sound very abstract; I hope this will make more sense once we look at the data and code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Use Case
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Data
&lt;/h3&gt;

&lt;p&gt;First, let’s take a look at the shape of the data. So, my base SQL code was exporting hundreds of thousands of lines of data, but as stated above I was interested in the summary data. SQL couldn’t pivot this summary data; this is the issue I am trying to solve with Python. My summary table has 10 rows and 26 columns. The first three columns are categories that will be used to pivot the data into columns later. The remaining columns are the metrics that I want to view in a linear fashion down a column. For simplicity, and the fact that I could not think of any other potential metric options, I have paired the sample data down to 13 columns.&lt;/p&gt;

&lt;p&gt;Note the following concerning the dataset:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;E_correct_options = A_all_options - B_wrong_color - C_wrong_brand - D_wrong_dimensions&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;H_just_right_options = E_correct_options - F_too_old - G_too_new&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;J_still_want_options = H_just_right_options - I_already_owned&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm3pj4ph1hdnb24ps30c5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm3pj4ph1hdnb24ps30c5.png" alt="Sampel Dataset"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The Code
&lt;/h3&gt;

&lt;p&gt;Now that we have an idea of what the data looks like, let’s get this data into Python. If you have any questions on this part, refer to my &lt;a href="https://dev.to/devsatasurion/python-for-data-analysts-accessing-data-in-excel-14nd"&gt;previous post&lt;/a&gt; on accessing data in Excel.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1:
&lt;/h4&gt;

&lt;p&gt;Import your libraries.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Import Libraries
import pandas as pd
import numpy as np
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 2:
&lt;/h4&gt;

&lt;p&gt;Store your Excel file path in an object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create File Path Object
path = r'C:\Users\britny.sarver\Documents\Python\SampleData\DummyData_RandomUseCase.xlsx'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 3:
&lt;/h4&gt;

&lt;p&gt;Store the data from your Excel file in an object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create Data Frame from Excel File
df = pd.read_excel(path)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 4:
&lt;/h4&gt;

&lt;p&gt;Check the shape of your data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Check the Shape of the Data (rows, columns)
df.shape
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using the provided sample data, you should get an output of &lt;code&gt;(10, 13)&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 5:
&lt;/h4&gt;

&lt;p&gt;Check that you are importing the right data by looking at it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# View the Data in a Table
df
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using the provided sample data, you should get an output that looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdy0ub1sqys4onzmh5kok.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdy0ub1sqys4onzmh5kok.png" alt="Sample Data Output"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 6:
&lt;/h4&gt;

&lt;p&gt;Unpivot the metrics in the table. In order to accomplish this, utilize the &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.melt.html" rel="noopener noreferrer"&gt;&lt;code&gt;melt&lt;/code&gt;&lt;/a&gt; function. This function requires a few inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;col_level&lt;/code&gt;: Allows you to specify the level at which to melt your data.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;id_vars&lt;/code&gt;: A list of columns used as identifiers / categories.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;value_vars&lt;/code&gt;: A list of columns to unpivot the data for.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;var_name&lt;/code&gt;: Give the variable column a specific name.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;value_name&lt;/code&gt;: Give the value column a specific name.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Unpivot the Metrics
df_unpivoted = df.melt(
    col_level = 0
    , id_vars = ['sizes', 'availability', 'price_range']
   ,  value_vars = [
         'A_all_options'
       , 'B_wrong_color'
       , 'C_wrong_brand'
       , 'D_wrong_dimensions'
       , 'E_correct_options'
       , 'F_too_old'
       , 'G_too_new'
       , 'H_just_right_options'
       , 'I_already_owned'
       , 'J_still_want_options'
    ]
    , var_name = 'options_category'
    , value_name = 'number_of_options'
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 7:
&lt;/h4&gt;

&lt;p&gt;Check the shape of the new dataset.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Check the Shape of the Data (rows, columns)
df_unpivoted.shape
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using the provided sample data, you should get an output of &lt;code&gt;(100, 5)&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 8:
&lt;/h4&gt;

&lt;p&gt;Make sure that the Pandas settings will allow you to view all your data. You can do this by setting the max columns and rows to match the results from above. Then, view the new dataset to check it is what you are expecting.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Set Pandas Settings to Display All Data in Table
pd.set_option('display.max_columns', 5)
pd.set_option('display.max_rows', 100)

# View the Data in a Table
df_unpivoted
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using the provided sample data, you should get an output that looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlq58ussz6kzy4ytnmkb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlq58ussz6kzy4ytnmkb.png" alt="Unpivoted Output"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 9:
&lt;/h4&gt;

&lt;p&gt;Create a data frame that contains all of the rows where the size is S (small) and create da data frame that contains all of the rows where the size is L (large). Our goal is to have columns in our final table for each option in size, small and large, overall and for each of the other sub-categories. We will address this in the next step.&lt;br&gt;
These data frames are created using the Pandas feature that allows us to filter rows by selecting a column and specifying the values in that column we want to keep.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create data frames for small and large options
df_s = df_unpivoted[df_unpivoted.sizes.isin(['S'])]
df_l = df_unpivoted[df_unpivoted.sizes.isin(['L'])]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 10:
&lt;/h4&gt;

&lt;p&gt;Create a data frame for small options that are also available by utilizing the above created filtered data frame and the &lt;code&gt;availability&lt;/code&gt; column. Similarly, create a data frame for large options that are also available.&lt;br&gt;
In order to create these data frames, we will utilize the Pandas function &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pivot_table.html?highlight=pivot_table#pandas.DataFrame.pivot_table" rel="noopener noreferrer"&gt;&lt;code&gt;pivot_table&lt;/code&gt;&lt;/a&gt;. For this to work we need a few inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The name of the data frame to pivot.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;values&lt;/code&gt;: The column we want to aggregate.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;index&lt;/code&gt;: The column we want to group by and create rows.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;columns&lt;/code&gt;: The column we want to group by and create columns.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;aggfunc&lt;/code&gt;: The function in which we want to utilize to aggregate the &lt;code&gt;values&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fill_value&lt;/code&gt;: The value in which we want to use if the aggregated value is null.
In order for this to make sense later, I also utilized the Pandas function &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rename.html?highlight=rename#pandas.DataFrame.rename" rel="noopener noreferrer"&gt;&lt;code&gt;rename&lt;/code&gt;&lt;/a&gt; to rename the column created from &lt;code&gt;availability&lt;/code&gt;.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create data frames for Small and Large Available options by option categories
df_s_available = pd.pivot_table(
    df_s
    , values = 'number_of_options'
    , index = ['options_category']
    , columns = ['availability']
    , aggfunc = np.sum
    , fill_value = 0
).rename(columns = {"Available" : "S Available"})

df_l_available = pd.pivot_table(
    df_l
    , values = 'number_of_options'
    , index = ['options_category']
    , columns = ['availability']
    , aggfunc = np.sum
    , fill_value = 0
).rename(columns = {"Available" : "L Available"})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h4&gt;
  
  
  Step 11:
&lt;/h4&gt;

&lt;p&gt;Create a data frame for small options that are also average priced by utilizing the filtered data frames created in step 9 and the &lt;code&gt;price_range&lt;/code&gt; column. Similarly, create a data frame for large options that are also average priced.&lt;br&gt;
Similar to step 10, we will utilize the Pandas functions &lt;code&gt;pivot_table&lt;/code&gt; and &lt;code&gt;rename&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create data frames for Small and Large Average Priced options by option categories
df_s_average = pd.pivot_table(
    df_s
    , values = 'number_of_options'
    , index = ['options_category']
    , columns = ['price_range']
    , aggfunc = np.sum
    , fill_value = 0
).rename(columns = {"Average" : "S Avg Price"})

df_l_average = pd.pivot_table(
    df_l
    , values = 'number_of_options'
    , index = ['options_category']
    , columns = ['price_range']
    , aggfunc = np.sum
    , fill_value = 0
).rename(columns = {"Average" : "L Avg Price"})
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 12:
&lt;/h4&gt;

&lt;p&gt;Create a data frame for small options by utilizing the filtered data frames created in step 9 and the &lt;code&gt;sizes&lt;/code&gt; column. Similarly, create a data frame for large options. Similar to step 10, we will utilize the Pandas function &lt;code&gt;pivot_table&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create data frame for small and large options by option categories
df_s_ = pd.pivot_table(
    df_s
    , values = 'number_of_options'
    , index = ['options_category']
    , columns = ['sizes']
    , aggfunc = np.sum
    , fill_value = 0
)

df_l_ = pd.pivot_table(
    df_l
    , values = 'number_of_options'
    , index = ['options_category']
    , columns = ['sizes']
    , aggfunc = np.sum
    , fill_value = 0
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Step 13:
&lt;/h4&gt;

&lt;p&gt;Finally, combine the data frames created in steps 10 through 12 into one data frame that will display the data as desired. In order to accomplish this we will utilize Pandas &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.concat.html?highlight=concat#pandas.concat" rel="noopener noreferrer"&gt;&lt;code&gt;concat&lt;/code&gt;&lt;/a&gt; function. This requires a few inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A list of data frames we wish to combine, in the order we want to combine them.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;axis&lt;/code&gt;: The column in which to join the datasets on.
I also wanted to make the number output look nice, so I utilized the Pandas function &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.io.formats.style.Styler.format.html" rel="noopener noreferrer"&gt;&lt;code&gt;style.format&lt;/code&gt;&lt;/a&gt; to add thousands separators to the numbers, where appropriate.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Combine into the desired dataframe structure
df_final = pd.concat(
    [
          df_s_
        , df_s_available
        , df_s_average
        , df_l_
        , df_l_available
        , df_l_average
    ]
    , axis = 1
).style.format('{:,}')

# Display the summarized and pivoted data
df_final
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using the provided sample data, you should get an output that looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa7j8j59p3sxhro3jax3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa7j8j59p3sxhro3jax3t.png" alt="Final Pivoted Output"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I by no means am claiming this is the only, nor the best, way to accomplish the goal of formatting the data the way I wanted to see it; however, I found this exercise both interesting and educational. I thought it would be something interesting to share. If anything, maybe it can spark some creativity in all of you to go out and try something outside the box. At least, outside the box for you. I know this was a great experience for me! Hence why I am writing about this instead of my planned topic of cleaning data. Stick around for more posts in this series for some fun and educational posts about getting started with Python as a Data Analyst!&lt;/p&gt;




&lt;h2&gt;
  
  
  Associated Files:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/britny-sarver/python-for-data-analysts/blob/65839a316e808855d67baea4758188438f1a0fae/a-random-use-case/DummyData_RandomUseCase.xlsx" rel="noopener noreferrer"&gt;Data File&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/britny-sarver/python-for-data-analysts/blob/65839a316e808855d67baea4758188438f1a0fae/a-random-use-case/Python%20for%20Data%20Analysts%20-%20A%20Random%20Use%20Case.ipynb" rel="noopener noreferrer"&gt;Jupyter Notebook&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Credits:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.pexels.com/photo/woman-programming-on-a-notebook-1181359/" rel="noopener noreferrer"&gt;Photo by Christina Morillo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python for Data Analysts: Accessing Data on a Website</title>
      <dc:creator>Britny</dc:creator>
      <pubDate>Thu, 10 Nov 2022 23:06:27 +0000</pubDate>
      <link>https://dev.to/devsatasurion/python-for-data-analysts-accessing-data-on-a-website-4ddm</link>
      <guid>https://dev.to/devsatasurion/python-for-data-analysts-accessing-data-on-a-website-4ddm</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Are you a data analyst that has heard of Python, everything it is capable of, and would like to try it but you don’t even know where to get started? Then this article is for you. This is the third in a series of articles to help data analysts get started with using Python. In this article we will cover how to connect to data found on websites. If you do not already have Python installed, check out the first post in this series: &lt;a href="https://dev.to/devsatasurion/python-for-data-analysts-getting-started-20oi"&gt;Python for Data Analysts: Getting Started&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before Accessing Data
&lt;/h2&gt;

&lt;p&gt;Before you can access data, let’s cover a few basic concepts around Python that you need to be aware of before proceeding. This series walks you through getting started with and using Python step-by-step by providing code and Jupyter Notebooks, so you don’t have to be an expert at Python or understand everything to follow along. Take it slow and learn by example.&lt;/p&gt;

&lt;h3&gt;
  
  
  Libraries
&lt;/h3&gt;

&lt;p&gt;Libraries are the bread and butter of Python. You can utilize libraries by importing them. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you followed the tutorial from the &lt;a href="https://dev.to/devsatasurion/python-for-data-analysts-getting-started-20oi"&gt;first post in this series&lt;/a&gt;, then you should already have Anaconda installed. Anaconda by default comes with a lot of useful libraries installed; however, you can also install them. There are a few ways to do this, but in this series, we will focus on accomplishing everything possible from Jupyter Notebooks. In a Notebook you would use the same command as in the Command Prompt, except you put a &lt;code&gt;‘!’&lt;/code&gt; in front of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;! pip install pandas
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more information on the &lt;code&gt;pandas&lt;/code&gt; library, check out the &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/io.html"&gt;official documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Terminology
&lt;/h3&gt;

&lt;p&gt;Below are some key terms used throughout this post, and others in the series, that are important to be aware of. These key terms may or may not be familiar to you, depending on your previous experience with coding and data analysis; therefore, I am including a list of terms used and their definitions in relation to this post so as to aid in your development and understanding.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Object:&lt;/strong&gt; An object is something you assign an entity to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entity:&lt;/strong&gt; An entity is something like a list, table, string, number, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assign:&lt;/strong&gt; You assign entities to objects by using &lt;code&gt;‘=’&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Index:&lt;/strong&gt; In Python, indexes start at &lt;code&gt;0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Function:&lt;/strong&gt; A call to Python to perform an action based on the arguments provided.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arguments:&lt;/strong&gt; Information passed to a function in order for the function to work as intended.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Data on a Website
&lt;/h2&gt;

&lt;p&gt;So, there is a web page with data you want to play with or report on? You can do that with Python! There are many ways to accomplish this, just like with anything in Python. In this post we will be covering how to get this data using the &lt;code&gt;pandas&lt;/code&gt; library.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Notes:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;This method only works with websites written using HTML that also have tables on them.&lt;/li&gt;
&lt;li&gt;The website must be public access, otherwise you will get an error saying you don’t have access.&lt;/li&gt;
&lt;li&gt;For this I am pulling data from a &lt;a href="https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#:~:text=States%20of%20the%20United%20States%20of%20America%20,Feb%2014%2C%201912%20%2015%20more%20rows%20"&gt;Wikipedia&lt;/a&gt; page which contains a table of US States, along with some other tables.&lt;/li&gt;
&lt;li&gt;You can access any public access HTML site you would like; you do not have to use the site I am using.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 1:
&lt;/h3&gt;

&lt;p&gt;In order to get started, import the &lt;code&gt;pandas&lt;/code&gt; library into your Jupyter Notebook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2:
&lt;/h3&gt;

&lt;p&gt;Assign the web page you would like to gather data from to an object. As an example, I am going to pull in a table of US States from Wikipedia.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;url = 'https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#:~:text=States%20of%20the%20United%20States%20of%20America%20,Feb%2014%2C%201912%20%2015%20more%20rows%20'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3:
&lt;/h3&gt;

&lt;p&gt;Using a built-in &lt;code&gt;pandas&lt;/code&gt; function pull in a list of the tables on the web page. This step will create a list and assign it to an object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;website_df = pd.read_html(url)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4:
&lt;/h3&gt;

&lt;p&gt;In order to validate you have read in what you think you have, use the &lt;code&gt;type&lt;/code&gt; function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;type(website_df)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this case you should get the result, &lt;code&gt;list&lt;/code&gt;. We can check how many items are in this list by using the &lt;code&gt;len&lt;/code&gt; function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;len(website_df)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 5:
&lt;/h3&gt;

&lt;p&gt;Since a website can have multiple tables and the &lt;code&gt;pandas&lt;/code&gt; function brings in the tables as a list, it is worth doing some discovery into each item in the list to see which table we want to access.&lt;/p&gt;

&lt;p&gt;In the case of the &lt;a href="https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#:~:text=States%20of%20the%20United%20States%20of%20America%20,Feb%2014%2C%201912%20%2015%20more%20rows%20"&gt;Wikipedia&lt;/a&gt; page above, there are 19 tables in the list. We can see what each of these tables looks like by utilizing the indexing system.&lt;/p&gt;

&lt;p&gt;Checking the first item (&lt;code&gt;index = 0&lt;/code&gt;) we can see it is the header at the top of the page, but if we pull the second table in the list (&lt;code&gt;index = 1&lt;/code&gt;), we will get a table of US States:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;website_df[1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output of this looks something like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0tTfrE5C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w4cp6zvasj4aa3zelng3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0tTfrE5C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w4cp6zvasj4aa3zelng3.png" alt="Python Output - US States" width="880" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this post we have covered how to access data on a website but there are many different locations data can be housed; for example, the &lt;a href="https://dev.to/devsatasurion/python-for-data-analysts-accessing-data-in-excel-14nd"&gt;previous post&lt;/a&gt; in this series covers how to access data housed in an Excel file. Now that we have accessed some data, I’m sure you’re asking, “What can we do with it?” Though we did not answer that question in this post, stick around over the next few posts, and I will provide more information on what you can do with the data that you now have.&lt;/p&gt;




&lt;h2&gt;
  
  
  Associated Files / Resources:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#:~:text=States%20of%20the%20United%20States%20of%20America%20,Feb%2014%2C%201912%20%2015%20more%20rows%20"&gt;Website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/britny-sarver/python-for-data-analysts/blob/0c1503abaf5ebed4c7e19a705e47353958d43030/accessing-data-on-a-website/Python%20for%20Data%20Analysts%20-%20Accessing%20Data%20on%20a%20Website.ipynb"&gt;Jupyter Notebook&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Credits:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.pexels.com/photo/woman-programming-on-a-notebook-1181359/"&gt;Photo by Christina Morillo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python for Data Analysts: Accessing Data in Excel</title>
      <dc:creator>Britny</dc:creator>
      <pubDate>Wed, 02 Nov 2022 20:17:47 +0000</pubDate>
      <link>https://dev.to/devsatasurion/python-for-data-analysts-accessing-data-in-excel-14nd</link>
      <guid>https://dev.to/devsatasurion/python-for-data-analysts-accessing-data-in-excel-14nd</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Are you a data analyst that has heard of Python, everything it is capable of, and would like to try it but you don’t even know where to get started? Then this article is for you. This is the second in a series of articles to help data analysts get started with using Python. In this article we will cover how to connect to data housed in an Excel file. If you do not already have Python installed, check out the first post in this series: &lt;a href="https://dev.to/devsatasurion/python-for-data-analysts-getting-started-20oi"&gt;Python for Data Analysts: Getting Started&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before Accessing Data
&lt;/h2&gt;

&lt;p&gt;Before you can access data, let’s cover a few basic concepts around Python that you need to be aware of before proceeding. This series walks you through getting started with and using Python step-by-step by providing code and Jupyter Notebooks, so you don’t have to be an expert at Python or understand everything to follow along. Take it slow and learn by example.&lt;/p&gt;

&lt;h3&gt;
  
  
  Libraries
&lt;/h3&gt;

&lt;p&gt;Libraries are the bread and butter of Python. You can utilize libraries by importing them. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you followed the tutorial from the &lt;a href="https://dev.to/devsatasurion/python-for-data-analysts-getting-started-20oi"&gt;first post in this series&lt;/a&gt;, then you should already have Anaconda installed. Anaconda by default comes with a lot of useful libraries installed; however, you can also install them. There are a few ways to do this, but in this series, we will focus on accomplishing everything possible from Jupyter Notebooks. In a Notebook you would use the same command as in the Command Prompt, except you put a &lt;code&gt;‘!’&lt;/code&gt; in front of it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;! pip install pandas
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For more information on the &lt;code&gt;pandas&lt;/code&gt; library, check out the &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/io.html" rel="noopener noreferrer"&gt;official documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Terminology
&lt;/h3&gt;

&lt;p&gt;Below are some key terms used throughout this post, and others in the series, that are important to be aware of. These key terms may or may not be familiar to you, depending on your previous experience with coding and data analysis; therefore, I am including a list of terms used and their definitions in relation to this post so as to aid in your development and understanding.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Object:&lt;/strong&gt; An object is something you assign an entity to.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entity:&lt;/strong&gt; An entity is something like a list, table, string, number, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Assign:&lt;/strong&gt; You assign entities to objects by using &lt;code&gt;‘=’&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Index:&lt;/strong&gt; In Python, indexes start at &lt;code&gt;0&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Function:&lt;/strong&gt; A call to Python to perform an action based on the arguments provided.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arguments:&lt;/strong&gt; Information passed to a function in order for the function to work as intended.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Data in Excel
&lt;/h2&gt;

&lt;p&gt;We all have Excel files with data that we want to perform more in-depth analysis on, right? Well let’s talk about how we get that data into Python in the first place. There are many ways to accomplish this, just like with anything in Python. In this post we will be covering how to get this data using the &lt;code&gt;pandas&lt;/code&gt; library.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;u&gt;Notes:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First and foremost, you are going to need the &lt;code&gt;pandas&lt;/code&gt; library. &lt;/li&gt;
&lt;li&gt;For this I am pulling a sample Excel file from &lt;a href="https://www.contextures.com/xlsampledata01.html" rel="noopener noreferrer"&gt;Contextures&lt;/a&gt;, which I will also attach in this post.&lt;/li&gt;
&lt;li&gt;You can utilize your own Excel file if you would like, you do not have to use the sample file I am using.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 1:
&lt;/h3&gt;

&lt;p&gt;In order to get started, import the &lt;code&gt;pandas&lt;/code&gt; library into your Jupyter Notebook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import pandas as pd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2:
&lt;/h3&gt;

&lt;p&gt;Assign the path for the Excel file you would like to gather data from to an object.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;excel_path = r'Path\FileName.FileExtension'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;u&gt;A few notes on the above step:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To test this yourself, replace the path value assigned to &lt;code&gt;excel_path&lt;/code&gt; below with a path that points to your own excel file.
In other words, replace &lt;code&gt;‘Path\FileName.FileExtension’&lt;/code&gt; below with your own path and file name.&lt;/li&gt;
&lt;li&gt;It is important to note that the &lt;code&gt;r&lt;/code&gt; in front of the path is important. It tells Python how to interpret the special characters, such as &lt;code&gt;\&lt;/code&gt; in the path.&lt;/li&gt;
&lt;li&gt;It is also important to note that this will not work if you don’t include both the file name and file extension.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 3:
&lt;/h3&gt;

&lt;p&gt;If your Excel workbook has more than one sheet you need to identify which sheet has the data you want to look at. If your Excel workbook only has one sheet, then you can ignore this step.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;excel_sheet = 'SalesOrders'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4:
&lt;/h3&gt;

&lt;p&gt;Using a built-in &lt;code&gt;pandas&lt;/code&gt; function pull in the data from your Excel workbook into a data frame.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;excel_df = pd.read_excel(excel_path, sheet_name = excel_sheet)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;u&gt;A few notes on the above step:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If your Excel workbook only has one sheet, then you do not need to include the second argument in the function.&lt;/li&gt;
&lt;li&gt;In other words, if your Excel workbook only has one sheet, then delete &lt;code&gt;, sheet_name = excel_sheet&lt;/code&gt; from the code above.&lt;/li&gt;
&lt;li&gt;If your Excel workbook has multiple sheets but you do not specify which sheet should be read, then the function will look at the first sheet in the workbook.&lt;/li&gt;
&lt;li&gt;If you would like to know more about the arguments you can pass into the &lt;code&gt;pandas&lt;/code&gt; &lt;code&gt;read_excel&lt;/code&gt; function, you can check out the &lt;a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html" rel="noopener noreferrer"&gt;documentation&lt;/a&gt; for the function.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 5:
&lt;/h3&gt;

&lt;p&gt;Last, but certainly not least, look at your data.&lt;/p&gt;

&lt;p&gt;excel_df&lt;/p&gt;

&lt;p&gt;If you are using the example dataset, you should get an output that looks like this.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjz6o97lwc6ehuxgrc9k9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjz6o97lwc6ehuxgrc9k9.png" alt="Python Output of Excel Data"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In this post we have covered how to access data housed in an Excel file but there are many different locations data can be housed, with this in mind the next few posts in this series will cover other avenues to access data. However, now that we have accessed some data,&lt;a href="https://dev.tourl"&gt;&lt;/a&gt; I’m sure you’re asking, “What can we do with it?” Though we did not answer that question in this post, stick around over the next few posts, and I will provide more information on what you can do with the data that you now have.&lt;/p&gt;




&lt;h2&gt;
  
  
  Associated Files:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/britny-sarver/python-for-data-analysts/blob/910436ab83ae616b5d6c50774df6fb5983f8098c/accessing-data-in-excel/SampleDataFromContextures.xlsx" rel="noopener noreferrer"&gt;Data File&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/britny-sarver/python-for-data-analysts/blob/910436ab83ae616b5d6c50774df6fb5983f8098c/accessing-data-in-excel/Python%20for%20Data%20Analysts%20-%20Accessing%20Data%20in%20Excel.ipynb" rel="noopener noreferrer"&gt;Jupyter Notebook&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;strong&gt;Credits:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://www.pexels.com/photo/woman-programming-on-a-notebook-1181359/" rel="noopener noreferrer"&gt;Photo by Christina Morillo&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python for Data Analysts: Getting Started</title>
      <dc:creator>Britny</dc:creator>
      <pubDate>Tue, 25 Oct 2022 14:37:00 +0000</pubDate>
      <link>https://dev.to/devsatasurion/python-for-data-analysts-getting-started-20oi</link>
      <guid>https://dev.to/devsatasurion/python-for-data-analysts-getting-started-20oi</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Are you a data analyst that has heard of Python, everything it is capable of, and would like to try it but you don’t even know where to get started? Then this article is for you. This is the first in a series of articles to help data analysts break down the invisible barrier between themselves and Python. In this article we will cover how to install Python via Anaconda.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing Anaconda &amp;amp; Python
&lt;/h2&gt;

&lt;p&gt;There are many ways to go about installing and getting started with Python. This article covers the option that utilizes Anaconda. Anaconda provides a friendly interface to access Python and Jupyter Notebooks, along with other tools. When you install Anaconda, Python will also be installed.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1
&lt;/h3&gt;

&lt;p&gt;To get started, you will need to install Anaconda from their website. Navigate to their downloads page &lt;a href="https://www.anaconda.com/products/distribution#Downloads"&gt;https://www.anaconda.com/products/distribution#Downloads&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2
&lt;/h3&gt;

&lt;p&gt;Choose the appropriate installer for your system. In my case, that is Windows so I will be covering what this looks like in Windows but it is similar on other systems. Click on the installer to download it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sWKqaD8l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/be0w1fbaslshznhbwg24.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sWKqaD8l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/be0w1fbaslshznhbwg24.png" alt="Anaconda Installers" width="681" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3
&lt;/h3&gt;

&lt;p&gt;Once the installer is downloaded, open the file. I am opening mine directly from my browser, but you can also open it from whichever folder you downloaded the file to.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EcnYKXnp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xhc5zg54vp5olmhe79ww.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EcnYKXnp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xhc5zg54vp5olmhe79ww.png" alt="Anaconda EXE" width="378" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4
&lt;/h3&gt;

&lt;p&gt;You should get a pop-up dialog box that says something like &lt;strong&gt;Welcome to Anaconda3 2022.10 (64-bit) Setup&lt;/strong&gt;. Please note that you may see a different version depending on if you are installing this at a later date and/or on a different operating system.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Next &amp;gt;&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5wTmZHxj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4pgev1kth19g093hptur.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5wTmZHxj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4pgev1kth19g093hptur.png" alt="Anaconda Installer" width="504" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;License Agreement&lt;/strong&gt; screen. In order to proceed you will need to read and agree to the License Agreement.&lt;/p&gt;

&lt;p&gt;If you do, click on the &lt;strong&gt;&lt;u&gt;I Agree&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--36BrMQR9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khylmy4xf4zcz076ui6z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--36BrMQR9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/khylmy4xf4zcz076ui6z.png" alt="Anaconda License Agreement" width="504" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 6
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Installation Type&lt;/strong&gt; screen. Select the radial button next to &lt;em&gt;Just Me (recommended)&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Next &amp;gt;&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Pse0GZQZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fb6mr4ds85h49wy58ddi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Pse0GZQZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fb6mr4ds85h49wy58ddi.png" alt="Anaconda Installation Type" width="506" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 7
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Installation Location&lt;/strong&gt; window. Generally, you should leave this as is.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Next &amp;gt;&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y8IODMWg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ugd2q3vxtkvdvi1ju7ay.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y8IODMWg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ugd2q3vxtkvdvi1ju7ay.png" alt="Anaconda Installation Location" width="510" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 8
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Advanced Installation Options&lt;/strong&gt; window. Leave the first box unchecked and make sure the second box is checked.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Install &lt;/u&gt;&lt;/strong&gt;button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SP6TLv78--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wd2q6hsy3n2omxc2e1ly.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SP6TLv78--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wd2q6hsy3n2omxc2e1ly.png" alt="Anaconda Advanced Options" width="506" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 9
&lt;/h3&gt;

&lt;p&gt;Once the install is complete you should see the &lt;strong&gt;Installation Complete&lt;/strong&gt; window.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Next &amp;gt;&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wFV5WZHt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xf70uechaefdrj45clqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wFV5WZHt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xf70uechaefdrj45clqh.png" alt="Anaconda Install Complete" width="506" height="392"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 10
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Anaconda + JetBrains&lt;/strong&gt; window. You can click the link for more information if you like, but for the purposes of this tutorial click on the &lt;strong&gt;&lt;u&gt;Next &amp;gt;&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sZDEU0jp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pigsw8zx9099c74jwd81.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sZDEU0jp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pigsw8zx9099c74jwd81.png" alt="Anaconda + JetBrains" width="509" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 11
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Thank You for Installing&lt;/strong&gt; screen.&lt;/p&gt;

&lt;p&gt;I recommend going through both the &lt;em&gt;Tutorial _and _Getting Started&lt;/em&gt; guides, especially if you aren’t familiar with Anaconda or Python at all; however, this is not required. For the purposes of this tutorial you can either leave the options checked or you can uncheck them.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Finish &lt;/u&gt;&lt;/strong&gt;button.&lt;/p&gt;

&lt;p&gt;Note: If you leave the options checked, tabs will open in your browser to the indicated articles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YlulMEAm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gr9w424oeavtbolhr8ey.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YlulMEAm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gr9w424oeavtbolhr8ey.png" alt="Anaconda Installer Final Screen" width="504" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 12
&lt;/h3&gt;

&lt;p&gt;Now that you have finished installing Anaconda (and Python), you should check that they are working properly. Navigate to your &lt;strong&gt;Start **menu and find the folder titled **Anaconda3 (64-bit)&lt;/strong&gt;, or whatever version you installed for your system, and open it.&lt;/p&gt;

&lt;p&gt;Click on &lt;strong&gt;&lt;u&gt;Anaconda Navigator (Anaconda3)&lt;/u&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Note: This will open Anaconda’s user interface so you can see what other tools you now have access to.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yCBVgHkP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emoxjqpsys2wv78hzq21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yCBVgHkP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emoxjqpsys2wv78hzq21.png" alt="Anaconda Start Folder" width="252" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 13
&lt;/h3&gt;

&lt;p&gt;When you open Anaconda Navigator, be patient it takes a few seconds. Also, note that you may see the command prompt flash a few times along with the Anaconda logo. This is normal.&lt;/p&gt;

&lt;p&gt;Note: The first time you open the Navigator, you may be prompted to update. I recommend updating if you are given the option.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Yes &lt;/u&gt;&lt;/strong&gt;button. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OHvg5dli--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wsdb1n3i5e33f0ja9an7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OHvg5dli--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wsdb1n3i5e33f0ja9an7.png" alt="Anaconda Updater" width="681" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 14
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Quit Application&lt;/strong&gt; window.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Yes &lt;/u&gt;&lt;/strong&gt;button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gl1xMvTS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pi08yfx8hujsomnkk0lh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gl1xMvTS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pi08yfx8hujsomnkk0lh.png" alt="Anaconda Quit Application" width="429" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 15
&lt;/h3&gt;

&lt;p&gt;You should now see the &lt;strong&gt;Anaconda Navigator Updater&lt;/strong&gt; window.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Update now&lt;/u&gt;&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O7encucU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/78j5l7ckmkuqcrsh6qbn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O7encucU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/78j5l7ckmkuqcrsh6qbn.png" alt="Anaconda Update Now" width="580" height="258"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 16
&lt;/h3&gt;

&lt;p&gt;You should now see in the &lt;strong&gt;Anaconda Navigator Updater&lt;/strong&gt; window that the update was &lt;em&gt;successful&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;Launch Navigator&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gdR5bwEq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z5jazn798bm3envh0lea.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gdR5bwEq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z5jazn798bm3envh0lea.png" alt="Anaconda Launch Navigator" width="578" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 17
&lt;/h3&gt;

&lt;p&gt;You should now see &lt;strong&gt;Anaconda Navigator&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;From here you have access to many applications in services, including but not limited to JupyterLab, Jupyter Notebook, and RStudio.&lt;/p&gt;

&lt;p&gt;Click on the &lt;strong&gt;&lt;u&gt;Launch &lt;/u&gt;&lt;/strong&gt;button for &lt;em&gt;Jupyter Notebook&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MmJty1fn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/paudfuqm93dsmwjjiu8f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MmJty1fn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/paudfuqm93dsmwjjiu8f.png" alt="Anaconda Navigator" width="681" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 18
&lt;/h3&gt;

&lt;p&gt;You should be brought to the Jupyter Notebook landing page in your default browser. The default landing page will show you a list of available folders and files that you can access. This includes files on your pc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hooqHGsJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m63fpz8fgwubtapodpl1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hooqHGsJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m63fpz8fgwubtapodpl1.png" alt="Jupyter Notebook Landing Page" width="681" height="134"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to test that python is truly working on your pc, click on the &lt;strong&gt;&lt;u&gt;New &lt;/u&gt;&lt;/strong&gt;button, and then the &lt;strong&gt;&lt;u&gt;Python 3 (ipykernel)&lt;/u&gt;&lt;/strong&gt; option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eEtXyLx2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqvhnbnk6hnibmx4wel1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eEtXyLx2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqvhnbnk6hnibmx4wel1.png" alt="Jupyter Notebook Create New Notebook" width="228" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 19
&lt;/h3&gt;

&lt;p&gt;You should be brought to a new, blank Jupyter Notebook. Since we are only testing if python works on your pc, you do not need to name or save the notebook. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6iuUDetH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8j0d9o5pu7eqd7vtkh3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6iuUDetH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t8j0d9o5pu7eqd7vtkh3.png" alt="Jupyter Notebook New Notebook" width="681" height="127"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the code block you see, type: &lt;code&gt;print ("Hello, Python!")&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UikRlWUs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z317045kznr8rfrl61vt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UikRlWUs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z317045kznr8rfrl61vt.png" alt="Jupyter Notebook Hello Python Code" width="681" height="124"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 20
&lt;/h3&gt;

&lt;p&gt;To run the cell and test your code, you have a few options:&lt;br&gt;
A.  Click on the &lt;strong&gt;&lt;u&gt;Run &lt;/u&gt;&lt;/strong&gt;button.&lt;br&gt;
B.  Press &lt;strong&gt;&lt;u&gt;Ctrl&lt;/u&gt;&lt;/strong&gt; + &lt;strong&gt;&lt;u&gt;Enter &lt;/u&gt;&lt;/strong&gt;(on Windows).&lt;/p&gt;

&lt;p&gt;If your code successfully runs, then you should see&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Hello, Python!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;below your code block as your output.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rPv40iD---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1zj753hzk3umeyxdznv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rPv40iD---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1zj753hzk3umeyxdznv.png" alt="Jupyter Notebook Hello Python Successful" width="681" height="139"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Congratulations! You have successfully installed Anaconda, and therefore Python and Jupyter Notebooks (along with many other tools) as well. Now that you have successfully installed, check out the next post in this series to learn more!&lt;/p&gt;




&lt;p&gt;Note: If you are interested in going straight to Jupyter Notebooks to play with Python and do not want to explore the other tools offered by Anaconda, you can open Jupyter Notebooks directly from your Start menu by clicking on Jupyter Notebook (Anaconda3) in the Anaconda3 (64-bit) folder mentioned in step 12.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yCBVgHkP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emoxjqpsys2wv78hzq21.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yCBVgHkP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/emoxjqpsys2wv78hzq21.png" alt="Anaconda Start Folder" width="252" height="264"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h4&gt;
  
  
  Credits:
&lt;/h4&gt;

&lt;p&gt;Photo by Christina Morillo: &lt;a href="https://www.pexels.com/photo/woman-programming-on-a-notebook-1181359/"&gt;https://www.pexels.com/photo/woman-programming-on-a-notebook-1181359/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>datascience</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
