Learning SPYDER
I still have a lot to learn and understand as a newbie in programming so as a first step, I am trying to learn SPYDER for today
So what is SPYDER?
Spyder stands for Scientific Python Development Environment
Let us get familiar with SPYDER interface
A. The Code Block — This is the place where you are going to write your code.
B. The Current Working Directory — You may change directory by clicking the folder icon or the drop-down button
C. The File Explorer — It shows you the files present in your current working directory
D. Variable Explorer — Shows you variables that are available in your Python environment
E. IPython Console — This is where you see the output of your Python code
Okay not let’s learn how to run codes in Spyder. There are three different ways how:
A. Ctrl + enter
B. Clicking the play button
C. Press F5 (it would prompt you to save your files first)
Note: Please check image captions for directions
Importing Data
1.) Import Panda — Type in import pandas as pd
2.) Read Data — Type in df = pd.read_csv(‘grabdata.csv’)
Cool feature of Spyder: Copy pasting the entire data set in a quick manner
How to make your codes more consistent:
Changing the theme of your Spyder IDE
How to clear variables
Click this button at the top right corned for the IPython Console and click remove all variable
How to clear kernel
Click this button at the top right corned for the IPython Console and click restart kernel
My thoughts after this activity:
These are easy to follow instructions for now and I am sure that things are about to get 1000x harder.
P.S taking screenshots are quite time consuming