Python has some fantastic libraries with powerful data analysis tools. can be difficult to install. These are the installation instructions for a Mac.
- You’re going to need to install the version of XCODE that matches your operating system. XCODE comes with the development and command line tools needed for Python. You can find XCODE at https://developer.apple.com/download/more/.
- Homebrew is the best way to install and manage Python so you’re going to need to install this first. In your terminal run: $ ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”. Just copy and paste this code into your command line tool and Homebrew will automatically download and install.
- Install Python 3 using Homebrew by running this command: $ brew install python to install the latest stable version of Python onto your Mac.
Now you’re going to need to install some data science libraries to get going:
- To install Matplotlib, the 2D Python library that can plot bar charts, scatterplots, errorcharts, histograms, and more with just a few lines of code. Past the command pip3 install matplotlib into your command shell.
- To install Pandas, the data analysis and data structure toolkit, us the command pip3 install pandas in your command shell.
There are many more tools available but running is all you need to start doing some serious data analysis.