Setting Up Python for Data Analysis

Setting Up Python for Data Analysis

If you read my last article, I am sure you are excited to have come this far in this data analysis thing. We are going to look at what you require and how to actually go about installing python for data analysis. Python is a high-level programming language. This means that it enables a programmer to write programs that are more or less independent of any particular type of computer. It is a general-purpose language but I am going to tell you how to set it up for data analysis.


As usual, I will not want to bore you with anything that you will not need. However, if you do not remember any other thing about the python programming language, remember that it was created by Guido van Rossum. The design philosophy, like I already hinted at before is emphasis on code readability. With it you express concepts in fewer lines of code than would be possible in languages such as C++ or Java.


Learning about python, almost every tutorial I came across presumed I already had python setup to go. It was frustrating to learn the beginner tips on a browser or read it up without having a single idea how to actually start some coding of your own.


Housekeeping.

Python is opensource. This means that you do not need any license before or after installation to use it. The source code is open so developers and groups of developers have been able to supplement functionality for varying purposes. Because of this, there are so many applications that have python put together in such a way that all the necessary tools are packed into one place for some specific purposes. I will come back to this point in a minute.


Requirements

A computer that has internet connection is all you need to start. Initially at least, as you will have to download the initial setup files. I am going to guide you through downloading and setting up your MS Windows computer. This choice is informed by a predominance of Windows around us here in Nigeria at least. However, deployment is still very possible in other operating systems. Matter of fact, nowadays many Linux and UNIX distributions include a recent Python. Even some Windows computers (notably those from HP) now come with Python already installed. 


Installation

Navigate to the official python downloads and grab the latest stable vision. As I write, 3.7 is it. Choose between the two executable installers with x86-64 and x86 in their name for 64 and 32bit Windows respectively. If you are unsure of which you are running, head to your desktop, right-click on This PC, Computer or My Computer (depending on the Windows version you are running) and click on properties. Under System, find your System type.


Once your download finishes, open the downloaded file and follow the installation wizard: reading and accepting the terms as well as going with the default installation location suggested. If for any reason your anti-virus raises an alarm ignore or identify as a false positive. Installation is complete. Easy right? Hopefully this setup went smoothly; otherwise let me know.


Testing

We need to make sure everything installed correctly. To do this, open a command prompt by hitting the key on your keyboard that has the windows logo on it or clicking on the start button and typing cmd. Click on Command Prompt to open it. Type python and hit enter. You should see something like:

"Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>>"

You probably have 3.7. It doesn't matter. You are setup and good to go!


I earlier mentioned how developers have built suites of python packed with some extensive and cool features put together for use. With the installation you just did you can run any python script on your computer. You can also use it to follow along all the tutorials you learn as a beginner. You will notice one thing however: once you are done, you have no way of saving your work. Sucks right? Well, that's definitely not what we want. This is where the packages I talked about earlier come in handy.


One of my favorite text editors that provides a space that highlights python syntax as well as suggests and auto-completes codes on the go for you is atom. There are other interactive text editors out there too. Then, if you are going to do data analysis with python, you will have to get anaconda, the self acclaimed "Most Popular Python Data Science Platform". Get it here for Windows. If you are not able to get atom, anaconda will also provide you a text editor where you can write, run/execute and save your work.

I hope to tell you a few more things about these packages which will help you know and decide when to use which. 

Adeola Juliet Odumeru

Data Quality Assistant @ National Population Commission | Power Bi Certificate

6 å¹´

Hello....I want to learn about python prog

Rachel Boluwatife Adekoya

Project Management | PMO Analyst

6 å¹´

This is useful, thank you!!

要查看或添加评论,请登录

Paschal Chukwuemeka Amah的更多文章

  • MI - ETLx: Incremental Extract and Load Module for Python

    MI - ETLx: Incremental Extract and Load Module for Python

    Overview MI-ETLx (Mongo Incremental Extract Transform and Load) is a Python module designed for both Extract, Load…

    6 条评论
  • Nigerian Loan Companies: The Elephant in the Room (?)

    Nigerian Loan Companies: The Elephant in the Room (?)

    Last month, for some little miscalculation, me and my personal finance manager, my wife, decided that we are going to…

    3 条评论
  • Information Management and Development: The Difference Between Developed and Developing Countries. Pt. 1

    Information Management and Development: The Difference Between Developed and Developing Countries. Pt. 1

    When we look at developed countries, we often wonder why there is so much order. On the contrary, developing countries…

  • How to start learning to code.

    How to start learning to code.

    If you read my last article you will see how I struggled to teach myself how to code. I have been told that it is a fun…

    26 条评论
  • (How) I Taught Myself to Code.

    (How) I Taught Myself to Code.

    One of the hottest skills for the future of work has computer programming or coding somewhere at the top. Computers…

    42 条评论
  • Twitter Sentiment Analysis: Major Candidates of the 2019 Nigeria Presidential Elections.

    Twitter Sentiment Analysis: Major Candidates of the 2019 Nigeria Presidential Elections.

    Sometime in October 2018, I was thinking about the frontiers of data science and how it is so cool to talk of data…

    7 条评论
  • Why Twitter Sentiment Analysis?

    Why Twitter Sentiment Analysis?

    If you have followed my posts, you will realize that I am a big fan of Twitter. It has not always been so.

    5 条评论
  • Social Media Influence in Nigeria: Numbers and Implications Pt1.

    Social Media Influence in Nigeria: Numbers and Implications Pt1.

    About a decade ago in Nigeria, if you didn’t have that bulky 1.6-8 or at least 2.

    1 条评论
  • Working with Python for Beginners

    Working with Python for Beginners

    If you read my last post Setting up Python for Data Analysis, you might be wondering what next after the installation…

    4 条评论
  • How You Can Do Data Analysis

    How You Can Do Data Analysis

    Intro: If you read my last article What’s Involved in Data Analysis, by now you must have a pretty good idea what it is…

    5 条评论

社区洞察

其他会员也浏览了