Menu
Task R Python
Changing work directory setwd(‘C:/Directory’) import os as os
os.chdir(r”’C:\Directory”’)
Clearing Workspace rm(list=ls()) %reset -f
Head & Tail Functions

head(data, 5)

tail(data,5)

import pandas as pd
data.head(5)
data.tail(5)
Loading CSV read.csv(‘C:/file.csv’)
or
readr::read_csv(‘C:/file.csv’)
import pandas as pd
file = pd.read_csv(r”’C:\Users\file.csv”’, engine = ‘python’)