top of page
bear and bull.png

Ch.1a Getting Started
 

Using Command Prompt on a PC

Installing Python on Windows

Installing  Python Packages on a PC 

Running Your Script on a PC 

Using Terminal on a Mac 

Installing Python on a Mac

Installing Python Packages on a Mac

Running Your Script on a Mac

CSV file to Python

We use pandas to develop an app that uses CSV data with file name testdata.csv. Save that CSV file in your computer directory C:\Users\Yourname\Pycharmprojects\3530. You should now see the file on the left-hand side of the PyCharm screen.

Type the following script in the script editor then save the script as testdata.py.

​import pandas as pd

df = pd.read_csv("testdata.csv")
print(df)
print(df['Data1'].describe())

testdata.jpg
bottom of page