by Suf | May 21, 2022 | Finance, Programming, R, Tips
R provides several powerful tools for financial market analysis. This tutorial will go through how to download and plot the daily stock prices from Yahoo! Finance using quantmod. Yahoo finance provides free access to historic stock prices at the time of writing this...
by Suf | May 20, 2022 | Programming, R, Tips
To perform element-by-element multiplication between two matrices X and Y, you must use the * operator as follows: X * Y If you want to perform matrix multiplication between two matrices X and Y, you must use the %*% operator as follows: X * Y This tutorial will go...
by Suf | May 20, 2022 | Programming, Rust, Tips
In Rust iter() returns an iterator of slices, into_iter() returns an iterator from a value, and iter_mut() returns an iterator that allows modifying each value. This tutorial will detail the Iterator and IntoIterator traits and the differences between the three...
by Suf | May 20, 2022 | Programming, Python, Tips
This error occurs when you import the datetime module and try to call the utcnow() method on the imported module. You can solve this error by importing the datetime class using: from datetime import datetime or accessing the class method using:...
by Suf | May 20, 2022 | Programming, Python, Tips
This error occurs when you import the datetime module and try to call the today() method on the imported module. You can solve this error by importing the datetime class using: from datetime import datetime or accessing the class method using:...
by Suf | May 19, 2022 | Programming, Python, Tips
This error occurs when you try to use datetime.fromisoformat with a Python version 3.6 or older. The datetime.fromisoformat method is not present in Python version 3.6 and older. You can solve this error by upgrading your Python version to 3.7 or newer. Alternatively,...