IE 172: Information Systems II - UI/UX, Python, Pandas, and Dash Development

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/57

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering UI/UX design principles, report classification, Python basics, Pandas operations, and Dash web application architecture from IE 172.

58 Terms

1
New cards

User Experience (UX)

All aspects of a person's interaction with a software application, including actions, responses, and feelings.

2
New cards

User Interface (UI)

The set of inputs and outputs that the user interacts with to invoke functions of an application.

3
New cards

User-centered Design

A collection of techniques that place the user at the center of the development process through early focus on users, usability evaluation, and iterative development.

4
New cards

Consistency (Form Design)

The design principle requiring forms within a system to maintain the same look and feel, including consistent use of function keys, shortcuts, control buttons, color, and layout.

5
New cards

Distribution & Order (Form Design)

Arranging related fields into logical groups and placing them in an expected order (such as First, Middle, and Last Names).

6
New cards

Dash Bootstrap Components (DBC)

A library that provides pre-styled Bootstrap UI and layout components (such as cards, navbars, alerts, and grid layouts) focused primarily on visual styling and responsive page layout.

7
New cards

Dash Core Components (DCC)

A library that provides essential interactive controls and data-driven widgets (such as graphs, dropdowns, sliders, and date pickers) focused on functional interactivity and data display.

8
New cards

Detailed Reports

Reports providing specific information on business transactions, such as a list of overdue accounts where each line contains details about an individual account.

9
New cards

Summary Reports

Reports used to recap periodic activity, such as daily or weekly summaries of sales transactions.

10
New cards

Exception Reports

Reports providing details or summary information about transactions or operating results that fall outside of a predefined normal range of values (e.g., parts failing quality control more than 0.2%0.2\% of the time).

11
New cards

Executive Reports

High-level reports used by managers to assess overall organizational health and performance.

12
New cards

Internal Reports

Reports produced specifically for operational and management use within an organization, including detailed, summary, exception, and executive reports.

13
New cards

External Reports

Statements, notices, and other documents that are produced for entities or individuals outside the organization.

14
New cards

Pandas Series

A one-dimensional labeled data structure in Pandas capable of holding data of any type with an associated index.

15
New cards

Pandas DataFrame

A two-dimensional, tabular data structure in Pandas consisting of rows and columns with labeled axes (index and column headers).

16
New cards

df.loc[] definition

A Pandas indexing operator used for label-based selection of rows and columns in a DataFrame.

17
New cards

df.iloc[] definition

A Pandas indexing operator used for integer position-based selection of rows and columns in a DataFrame.

18
New cards

Editor (VS Code)

The primary work area in Visual Studio Code used to view and edit files.

19
New cards

Primary Side Bar (VS Code)

A sidebar panel in Visual Studio Code that displays different views, such as the file Explorer or Source Control, to assist development.

20
New cards

Status Bar (VS Code)

The bottom horizontal bar in Visual Studio Code that displays information about the opened project, active interpreter, and edited files.

21
New cards

Activity Bar (VS Code)

The bar located on the far edge of Visual Studio Code used to switch between primary views and display context-specific indicators.

22
New cards

Python Virtual Environment (venv)

An isolated space on a computer where Python project packages and dependencies are managed separately from the system-wide Python installation.

23
New cards

SQL Injection

A database exploit that occurs when malicious SQL code is input into a user field, which can be prevented by using parameterized queries with placeholders like %s.

24
New cards

Dash Callback

A Python function decorated with @app.callback that automatically updates application components when specific user inputs or page changes occur.

25
New cards

Callback Input

A component property inside a Dash callback decorator that serves as a trigger to execute the decorated callback function whenever its value changes.

26
New cards

Callback Output

A component property specified in a Dash callback decorator defining where the return value of the callback function will be directed and updated.

27
New cards

Callback State

A component property passed into a Dash callback function that allows the function to read current data values without triggering the function execution.

28
New cards

dcc.Location

An invisible Dash Core Component used to track, read, and manipulate the current URL or page pathname for multi-page routing.

29
New cards

dcc.Store

An invisible Dash Core Component that stores data in the user's browser memory, session, or local storage.

30
New cards

rem (Root em)

A relative CSS unit of measurement calculated based on the root font size of the entire webpage.

31
New cards

[Python Data Type] Boolean (bool)

True of False

32
New cards

[Python Data Type] Numeric

Can be an integer (int) or a floating point (float) for numeric values with decimal points

33
New cards

[Python Data Types] Others

String (str), List (list), Dictionary (dict), None Type (none)

34
New cards

Strings

knowt flashcard image
35
New cards

f-strings

knowt flashcard image
36
New cards

Lists

knowt flashcard image
37
New cards

Dictionaries

knowt flashcard image
38
New cards

Different Control Structures

Sequential - normal and basic sequence

Selection/Decision - IF, ELSE, ELIF or the dictionaries

Repetition - while or for loops

39
New cards

Functions

U can make ur own functions by using “def [function name]: [function]”

when u place the function name, itll run the task

40
New cards

Coding Practices

  1. Follow a naming convention for your variables and functions. ‘snake_case’ is usually set for variables while ‘camelCase’ is preferred for functions.

  2. When naming variable or functions, use that opportunity to describe their use of that variable of functions (Helping with readability)

  3. Avoid very long lines of code. Scrolling sideways is not ideal to read code

  4. Write comments for whatever your code does. Can help with remembering what they do


41
New cards

Pandas

Python library that specializes in creating, manipulating, importing, and analyzing data

  • Can organize and modify data into rows and columns similar to a spreadsheet in python

  • Easy and straightforward to use, and it works seamlessly with python

  • Contain functions specializing in data processing, data cleaning, and data analysis

  • Integrates nicely with other data visualization libraries like matplotlib and seaborn

Installing: “pip3 install pandas” then “import pandas as pd”


42
New cards

pd.Series

pd.Series alone - when printing, index is printed as 0, 1, 2 and so on. shows data type

pd.Series([name], index=[x, y, z]) - when printing, will adjust the index accordingly

print(datasetname[‘index’]) - prints out just the value associated with the index in the data set

<p>pd.Series alone - when printing, index is printed as 0, 1, 2 and so on. shows data type </p><p>pd.Series([name], index=[x, y, z]) - when printing, will adjust the index accordingly</p><p>print(datasetname[‘index’]) - prints out just the value associated with the index in the data set </p>
43
New cards

Data Frame

to create a data frame,

name_data = {‘Category 1’: [‘Item 1’, ‘Item 2’, ‘Item 3’], ‘Category 2’: [‘Item 1’, ‘Item 2’, ‘Item 3’]}

name_df = pd.DataFrame(name_data)

<p>to create a data frame, </p><p>name_data = {‘Category 1’: [‘Item 1’, ‘Item 2’, ‘Item 3’], ‘Category 2’: [‘Item 1’, ‘Item 2’, ‘Item 3’]}</p><p>name_df = pd.DataFrame(name_data)</p>
44
New cards

df.loc[] example

better for most tasks, since youre referencing by name. can prevent bugs if dataframe gets reordered

*note: output pictures of last 2 rows r switched

<p>better for most tasks, since youre referencing by name. can prevent bugs if dataframe gets reordered</p><p>*note: output pictures of last 2 rows r switched</p>
45
New cards

df.iloc[] example

better if labels dont matter (ex. just need the first or last row of the dataframe). also works if u dont wanna type the names but know the position of the columns

<p>better if labels dont matter (ex. just need the first or last row of the dataframe). also works if u dont wanna type the names but know the position of the columns</p>
46
New cards

Importing datasets into Pandas

df = pd.read_csv() or pd.read_excel()

Use df.head() to preview first few rows of the data frame. df.tail() for the last few. can input X number of rows but by default it’s 5

47
New cards

[Pandas Data Frames] Display number of null values in each column

df.isna().sum()

48
New cards

[Pandas Data Frames] Handling duplicates

Check using: emp_df.duplicated()

Remove using: df_no_duplicates = emp_df.drop_duplicates(keep=’first’)

49
New cards

[Summarizing datasets] df.info()

Dataset overview

<p>Dataset overview</p>
50
New cards

[Summarizing datasets] df.describe()

summary statistics for numerical data

<p>summary statistics for numerical data</p>
51
New cards

[Summarizing datasets] df.shape

Number of rows and columns

52
New cards

[Summarizing datasets] df.columns

Shows column names

53
New cards

[Summarizing datasets] df.value_counts()

Counts frequency for categorical data

Can constrain to a certain column by doing df[‘Column’].value_counts()

Can count combinations using df.value_counts(subset=[’Column 1’, ‘Column 2’])

54
New cards

[Summarizing datasets] df.nunique()

shows how many unique values re in each column

55
New cards

[Summarizing datasets] df[‘Column’].unique()

lists an array of unique values in a column

56
New cards

[Summarizing datasets] df.sample(n)

randomly selects a configurable amounts of rows in a DF

57
New cards

Dropping rows with null values

knowt flashcard image
58
New cards

Fill NaN with data

df[‘Column’].fillna()