Inroduction to Python for SAS Programmers
Simply fill in the form below to sign up for our Newsletter:
captcha 
Sign Up for our Newsletter


Foundations - The Language of SAS training at Newtyne, Edinburgh

 

Course Length:

This is a four-day course.

Course Summary:

The Python for SAS Programmers provides delegates with the essential elements of programming in Python to be able to extract data, manipulate data and display data through the use of Python scripts.

It will enable you to transfer your understanding and experience of working with the Language of SAS to develop meaningful programs and achieve the required results in Python. Exploring key concepts of the language to get you up and running including; variables & data types, operators & expressions, conditions & loops, functions, lists, strings, dictionaries, dates, modules, and working with Jupyter notebooks

The course is ideal for those with prior knowledge of the Language of SAS.

What you will be taught:

  • Course Introduction

    • Introduction

    • Course Objectives

    • Course Overview

  • Python History

    • History of Python

    • Python 2 vs Python 3

  • Introducing Jupyter Notebooks

    • What is an IDE?

    • Other Python IDEs

    • Jupyter Notebooks

      • Overview

      • Folders

      • Files

      • Code

  • Some things to unlearn from SAS to Python

    • Variables

    • Data Steps and PROC steps

    • Functions and Macros

    • Indexes

  • Syntax and the print statement

    • Program components

    • Running Python inline and in script

    • Syntax rules

    • The print() statement

  • Variables

    • Naming conventions

    • Data types

    • Creating variables

    • Variable storage
  • Dates
    • Introduction to Python date and datetime objects

    • Creating date and datetime objects

    • Data functions

    • The Timedelta object

  • Introduction to pandas
    • What pandas is

    • The pandas data structure

    • SAS compare to pandas

    • The PDV in Python

    • DataFrame

  • Creating Data in pandas

    • Creating data (SAS code DATALINES, CARDS equivalent)

    • Creating data from existing data (SAS code SET equivalent)

    • Copying DataFrames

  • Data Input/Output in pandas

    • Using pandas.DataFrame.read_xxx syntax

    • Using pandas.DataFrame.to_xxx syntax

  • Understanding pandas metadata

    • Comparison of PROC CONTENTS with DataFrame methods.

  • Understanding data in pandas

    • Previewing Data

    • Descriptive Statistics

  • Querying and updating data in pandas

    • Selecting Data.

    • Labels and Indexes

    • Boolean Indexing.

    • Iterating DataFrames.

  • Everything is Data!
    •  Data

    • What are objects, methods and properties

    • How to access data in objects

    • Some conventions used for objects in Python

  • Lists and Dictionaries

    • List data structure

    • Dictionary data structure

  • Functions

    • Built in functions

    • Character functions

    • Numeric functions

    • User defined functions

    • Lambda function

  • Using help

    • The help function

    • Help in Jupyter Notebook

  • Loops

    • For loops

    • Nested loops

  • Branches

    • If elif else

    • The Ternary operator

  • Modules, numpy and pandas

    • What is a module

    • Using modules

    • The numpy module

    • The pandas module

  • Branching in pandas
    • The where() statement

    • The if _elif_else statement

  • Cleaning data

    • Missing data

    • Checking for missing data

    • Dropping missing data

    • Working with missing data

    • Selecting and dropping columns

    • Selecting and dropping rows

  • Sorting data

    • The sort_values() method

    • Ascending and descending order

    • Sorting by multiple columns

    • Removing duplicate data

  • Combining Data Vertically

    • Using pandas.concat()

    • Using pandas.append()

  • Combining Data Horizontally

    • The pandas.merge() method

    • The how parameter

    • SQL in Python

  • PROC PYTHON and Pandas

    • Inline Python

    • Python scripts

    • Exporting data from SAS code to Python

    • Importing data from Python to SAS code

  • Convert some SAS code to Python

    • The candidate will get the opportunity to convert some SAS to Python

 

 What you should already know;

    • Knowledge of basic Programming concepts

    • Understanding of the Language of SAS including the DataStep topics covered in Foundations – The Language of SAS and DataStep – The Language of SAS or the Fast-Track Base – The Language of SAS.

    • Some previous programming experience in the Language of SAS

 


 

If the dates below do not suit please contact us on +44 (0)131 225 6952 as alternative dates can be arranged.

 


 

Don't Delay - Book Today!

Select a date and click on the button below to register.