CC3: Computer Programming 3 EXAM FINALS

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/46

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

47 Terms

1
New cards

function

is a block of organized, reusable code that is used to perform a single, related action, provide better modularity for your application and a high degree of code reusing

2
New cards

parameter

is the variable listed inside the parentheses in the function definition

3
New cards

argument

is the value that is sent to the function when it is called.

4
New cards

*args

If you do not know how many arguments that will be passed into your function, add a * before the parameter name in the function definition. This way the function will receive a tuple of arguments.

5
New cards

**kwargs

If you do not know how many keyword arguments that will be passed into your function, add two asterisk: ** before the parameter name in the function definition. This way the function will receive a dictionary of arguments

6
New cards

Recursion

is a common mathematical and programming concept. It means that a function calls itself. This has the benefit of meaning that you can loop through data to reach a result.

7
New cards

list

is a data structure that's built into Python and holds a collection of items. Lists have a number of important, items are enclosed in square brackets

8
New cards

list

is a most versatile data type available in Python which can be written as a list of comma-separated values (items) between square brackets.

9
New cards

tuple

is a collection of objects which ordered and immutable. are sequences, just like lists, cannot be changed unlike lists and tuples use parentheses,

10
New cards

Dictionaries

are used to store data values in key:value pairs, is a collection which is ordered, changeable and do not allow duplicates.

11
New cards

set

is a collection which is unordered and unindexed, are written with curly brackets.

12
New cards

List

is a collection which is ordered and changeable. Allows duplicate members.

13
New cards

Tuple

is a collection which is ordered and unchangeable. Allows duplicate members.

14
New cards

Set

is a collection which is unordered and unindexed. No duplicate members.

15
New cards

Dictionary

is a collection which is ordered* and changeable. No duplicate members.

16
New cards

OOP

is a programming paradigm that models real-world entities using objects and classes, have a big impact on the result.

17
New cards

OBJECTS

can represent real-world objects and other (living or non-living) entities.

18
New cards

State and Behavior

object has 2 characteristics

19
New cards

class

is a template or a blueprint. An object is an instance of a what.

20
New cards

Class members

are declarations made inside the body of the class.

21
New cards

Fields

Also referred to as attributes. These are data used by the class. They are variables declared inside the class body.

22
New cards

Methods

Also referred to as the behavior(s). These are program statements grouped together to perform a specific function.

23
New cards

init() function

is called automatically every time the class is being used to create a new object.

24
New cards

self parameter

is a reference to the current instance of the class, and is used to access variables that belong to the class.

25
New cards

Constructor

This method called when an object is created from the class and it allow the class to initialize the attributes of a class.

26
New cards

class instantiation

Creating an object out of a class is called?

27
New cards

Pandas

is a Python library used for working with data sets. It has functions for analyzing, cleaning, exploring, and manipulating data

28
New cards

Wes McKinney

created pandas in 2008

29
New cards

Pandas

allows us to analyze big data and make conclusions based on statistical theories, can clean messy data sets and make them readable and relevant. Relevant data is very important in data science.

30
New cards

Data Science

is a branch of computer science where we study how to store, use and analyze data for deriving Information from it.

31
New cards

pip

The most popular package manager for Python, is today the standard tool for installing Python packages and their dependencies in a secure manner.

32
New cards

Pandas Series

is like a column in a table. It is a one-dimensional array holding data of any type.

33
New cards

label

can be used to access a specified value.

34
New cards

DataFrames

Data sets in Pandas are usually multi-dimensional tables, Series is like a column, it is the whole table.

35
New cards

loc attribute

to return one or more specified row(s)

36
New cards

openpyxl

is a Python library for reading and writing Excel 2010 xlsx/xlsm/xltx/xltm files. It's one of the available engines that pandas supports for reading Excel files.

37
New cards

tail() method

returns a specified number of last rows, returns the last 5 rows if a number is not specified.

38
New cards

head() method

returns a specified number of rows, string from the top, returns the first 5 rows if a number is not specified.

39
New cards

describe() method

returns description of the data in the DataFrame, used to generate descriptive statistics of DataFrame columns. It gives a quick summary of key statistical metrics like mean, standard deviation, percentiles, and more.

40
New cards

info() method

also tells us how many Non-Null values there are present in each column, and in our data set

41
New cards

dropna() method

One way to deal with empty cells is to remove rows that contain empty cells. This is usually fine, since data sets can be very big, and removing a few rows will not have a big impact on the result.

42
New cards

fillna() method

allows us to replace empty cells with a value

43
New cards

mean() median() and mode()

methods used to calculate the respective values for a specified column

44
New cards

inplace=True parameter

is used in various DataFrame methods to specify whether the operation should modify the DataFrame in place or return a new DataFrame with the changes applied.

45
New cards

coerce

If the error argument is passed as ______ , then invalid parsing will be set as NaN .

46
New cards

ignore

If the error argument is passed as ______ , then invalid parsing will return the input.

47
New cards