Changes in Office Hours
R programming
The R language is available as a free download from the R Project website at:
RStudio
RStudio offers a graphical interface to assist in creating R code:
Excel
Anaconda
Spyder IDE
If Spyder IDE from Anaconda is lagging, consider installing it additionally.
To install Spyder IDE in addition to Anaconda, go to the following download page:
While installing the tools, click and take the following survey:
Submit the survey before the class ends.
Spyder Environment
Spyder Environment
Spyder Environment
Some materials for data
Finding the path name of the file
\
) with double-backslash(\\
) in the path name.\
) with slash(/
) in the path name.\
) with double-backslash(\\
) in the path name.\
) with slash(/
) in the path name.Code and comment style
The two main principles for coding and managing data are:
The #
mark is Spyder's comment character.
#
indicates that the rest of the line is to be ignored.Consider using block commenting for separating code sections.
#%%
defines a coding block in Spyder.Break down long lines and long algebraic expressions.
Shortcuts
Mac
Windows
Step 1. Find the path name for the file, car.data.csv
, from the sub-folder, 'UCICar', in the folder, 'PDSwR2-main'.
Step 2. In the code below, replace 'PATH_NAME_FOR_THE_FILE_car.data.csv' with the path name for the file, car.data.csv
.
Step 3. Run the following Python code:
import pandas as pdpath = 'PATH_NAME_FOR_THE_FILE_car.data.csv'# reading datauciCar = pd.read_csv(path)
Changes in Office Hours
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
o | Tile View: Overview of Slides |
Esc | Back to slideshow |
Changes in Office Hours
R programming
The R language is available as a free download from the R Project website at:
RStudio
RStudio offers a graphical interface to assist in creating R code:
Excel
Anaconda
Spyder IDE
If Spyder IDE from Anaconda is lagging, consider installing it additionally.
To install Spyder IDE in addition to Anaconda, go to the following download page:
While installing the tools, click and take the following survey:
Submit the survey before the class ends.
Spyder Environment
Spyder Environment
Spyder Environment
Some materials for data
Finding the path name of the file
\
) with double-backslash(\\
) in the path name.\
) with slash(/
) in the path name.\
) with double-backslash(\\
) in the path name.\
) with slash(/
) in the path name.Code and comment style
The two main principles for coding and managing data are:
The #
mark is Spyder's comment character.
#
indicates that the rest of the line is to be ignored.Consider using block commenting for separating code sections.
#%%
defines a coding block in Spyder.Break down long lines and long algebraic expressions.
Shortcuts
Mac
Windows
Step 1. Find the path name for the file, car.data.csv
, from the sub-folder, 'UCICar', in the folder, 'PDSwR2-main'.
Step 2. In the code below, replace 'PATH_NAME_FOR_THE_FILE_car.data.csv' with the path name for the file, car.data.csv
.
Step 3. Run the following Python code:
import pandas as pdpath = 'PATH_NAME_FOR_THE_FILE_car.data.csv'# reading datauciCar = pd.read_csv(path)