diff --git a/lectures/pandas.md b/lectures/pandas.md index ddd0511..7a12a82 100644 --- a/lectures/pandas.md +++ b/lectures/pandas.md @@ -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 diff --git a/lectures/python_by_example.md b/lectures/python_by_example.md index a986235..797e415 100644 --- a/lectures/python_by_example.md +++ b/lectures/python_by_example.md @@ -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 ചെയ്യാനുമുള്ള പല വഴികൾ നമുക്ക് താഴെ കാണാം. @@ -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