<jupyter_start><jupyter_text>01. Data Tables, Plots & Basic Concepts of Programming     Doubts? → Ask me in  Discord    Tutorials →  YouTube    Book Private Lessons → @ sotastica<jupyter_code># Define a Variable

> Asign an `object` (numbers, text) to a `variable`.



# The Registry (_aka The Environment_)

> Place where Python goes to **recognise what we type**.



# Use of Functions

## Predefined Functions in Python (_Built-in_ Functions)

> https://docs.python.org/3/library/functions.html



## Discipline to Search Solutions in Google

> Apply the following steps when **looking for solutions in Google**:
>
> 1. **Necesity**: How to load an Excel in Python?
> 2. **Search in Google**: by keywords
>   - `load excel python`
>   - ~~how to load excel in python~~
> 3. **Solution**: What's the `function()` that loads an Excel in Python?
>   - A Function to Programming is what the Atom to Phisics.
>   - Every time you want to do something in programming
>   - **You will need a `function()`** to make it
>   - Theferore, you must **detect parenthesis `()`**
>   - Out of all the words that you see in a website
>   - Because they indicate the presence of a `function()`.

## External Functions

> Download [this Excel](https://github.com/sotastica/data/raw/main/internet_usage_spain.xlsx).
> Apply the above discipline and make it happen 🚀
> I want to see the table, c'mon 👇



## The Elements of Programming

> - `Library`: where the code of functions are stored.
>   - `Function`: execute several lines of code with one `word()`.
>       - `Parameter`: to **configure** the function's behaviour.
>           - `Object`: **data structure** to store information.



## Code Syntax

**What happens inside the computer when we run the code?**

> In which order Python reads the line of code?
> - From left to right.
> - From up to down.
> Which elements are being used in the previous line of code?



## Functions inside Objects

> - The `dog` makes `guau()`: `dog.guau()`
> - The `cat` makes `miau()`: `cat.miau()`
> - What could a `DataFrame` make? `object.` + `[tab key]`



## Conclusion | Types of Functions

> 1. Buit-in (Predefined) Functions
> 2. External Functions from Libraries
> 3. Functions within Objects

# Accessing `Objects`

> Objects are **data structures** that store information. 
> Which **syntax** do we use to access the information?

## Dot Notation `.`



## Square Brackets `[]`



# Filter & Masking<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12084347120843471, 'fraction_numerical': 0.0036496350364963502, 'mean_word_length': 3.5940409683426444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '668090', 'license': 'MIT', 'n_tokens_mistral': 804, 'n_tokens_neox': 729, 'n_words': 316, 'path': '#01. Data Tables & Basic Concepts of Programming/01session-Copy1.ipynb', 'repo_name': 'jesusmartinezprofesor/machine-learning-program', 'size': '2466'}