wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# yes yes
source ~/.bashrc
rm Miniconda3-latest-Linux-x86_64.sh
# to ensure WSL can start normally without an active conda env
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Le Minh Tam", | |
"label": "Finance Business Partner", | |
"image": "https://media.licdn.com/dms/image/v2/D5603AQGPCm_1KLCRtA/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1720943163807?e=1748476800&v=beta&t=v9G6U8PnmHqR5Bdo4kbs8vLgt_QerBMPTWZAIFVnBUQ", | |
"email": "tamle.fpa@gmail.com", | |
"phone": "0963639979", | |
"url": "www.linkedin.com/in/tamlefpa", | |
"summary": "Results-driven FP&A specialist delivering actionable financial insights that guide strategic decision-making and drive business growth. Skilled in budgeting, forecasting, and financial modeling, transforms complex data into clear, impactful reports. Proficient in Excel with foundational Python and VBA skills for process automation, and a strong communicator in English who effectively conveys critical information to management and leadership.", | |
"location": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = "https://raw.githubusercontent.com/gahoccode/Datasets/main/myport2.csv" | |
df = pd.read_csv(url) | |
print(df.head()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def generate_stock_returns(stocks_list, begin_date, end_date): | |
prices = pd.DataFrame() | |
for stock in stocks_list: | |
df_ = investpy.get_stock_historical_data(stock=stock, | |
country='Vietnam', | |
from_date=begin_date, | |
to_date=end_date).Close | |
df_.rename(stock, inplace=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import investpy | |
country_of_choice = "vietnam" | |
data_frequency = "Daily" | |
# initializing the final dataframe | |
stocks_df = pd.DataFrame() | |
# looping through each entries in our stock list to get data | |
for i in range(len(tickers)): | |