Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lectures/pandas.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ Anaconda-യിൽ ഉള്ളവ കൂടാതെ, ഈ lecture-ന് താ
```{code-cell} ipython3
:tags: [hide-output]

!pip install --upgrade wbgapi
!pip install --upgrade yfinance
!pip install wbgapi
!pip install yfinance
```

## Overview
Expand Down
13 changes: 8 additions & 5 deletions lectures/python_by_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,20 @@ sqrt(4)

### Random Draws

White noise plot ചെയ്യുന്ന നമ്മുടെ program-ലേക്ക് തിരികെ വരാം. Import statements കഴിഞ്ഞുള്ള ബാക്കി മൂന്ന് lines ഇവയാണ്:
White noise plot ചെയ്യുന്ന നമ്മുടെ program-ലേക്ക് തിരികെ വരാം. Import statements കഴിഞ്ഞുള്ള ബാക്കി നാല് lines ഇവയാണ്:

```{code-cell} ipython
rng = np.random.default_rng()
ϵ_values = rng.standard_normal(100)
plt.plot(ϵ_values)
plt.show()
```

ആദ്യത്തെ line, 100 (quasi) independent standard normals-നെ generate ചെയ്ത്, `ϵ_values`-ൽ store ചെയ്യുന്നു.
ആദ്യത്തെ line, `rng` എന്ന ഒരു random number generator create ചെയ്യുന്നു.

രണ്ടാമത്തെ line, 100 (quasi) independent standard normals-നെ generate ചെയ്ത്, `ϵ_values`-ൽ store ചെയ്യുന്നു.

അടുത്ത രണ്ട് lines plot generate ചെയ്യുന്നു.
അവസാനത്തെ രണ്ട് lines plot generate ചെയ്യുന്നു.

ഈ plot configure ചെയ്യാനും improve ചെയ്യാനുമുള്ള പല വഴികൾ നമുക്ക് താഴെ കാണാം.

Expand Down Expand Up @@ -390,9 +393,9 @@ plt.plot(ϵ_values)
plt.show()
```

Indentation ഉപയോഗിച്ച് delimit ചെയ്തിരിക്കുന്ന while loop-ന്റെ code block, (```i < ts_length```) എന്ന condition satisfy ആകുന്നത് വരെ execute ചെയ്ത് കൊണ്ടേയിരിക്കും.
Indentation ഉപയോഗിച്ച് delimit ചെയ്തിരിക്കുന്ന while loop-ന്റെ code block, (`i < ts_length`) എന്ന condition satisfy ആയിരിക്കുന്നിടത്തോളം execute ചെയ്ത് കൊണ്ടേയിരിക്കും.

ഈ case-ൽ, ```i``` ```ts_length```-ന് equal ആകുന്നത് വരെ program ```ϵ_values``` list-ലേക്ക് values add ചെയ്ത് കൊണ്ടേയിരിക്കും:
ഈ case-ൽ, `i` `ts_length`-ന് equal ആകുന്നത് വരെ program `ϵ_values` list-ലേക്ക് values add ചെയ്ത് കൊണ്ടേയിരിക്കും:

```{code-cell} python3
i == ts_length #the ending condition for the while loop
Expand Down
Loading