Skip to content Skip to sidebar Skip to footer
Showing posts with the label Finance

Return Only The Last Day Of The Year With Pandas?

Made an api get request for the historical close prices of a stock for a specified company from the… Read more Return Only The Last Day Of The Year With Pandas?

Computing Excess Returns

I would like to compute the excess returns of dataframe of stock returns, where excess returns are … Read more Computing Excess Returns

Groupby Id To Calculate Ratios

Objective I have this df and take some ratios below. I want to calculate these ratios by each id an… Read more Groupby Id To Calculate Ratios

How Can I Customize Mplfinance.plot?

I've made a python script to convert a csv file in a candlestick like this using mpl_finance, t… Read more How Can I Customize Mplfinance.plot?

Python: How To Code An Exponential Moving Average?

I want to do calculations on three columns of a dataframe df. In order to do that I want run a pric… Read more Python: How To Code An Exponential Moving Average?

Accessing Nasdaq Historical Data With Python Requests Results In Connection Timeout

I tried to run this snippet of Python code (with the requests library) to retrieve a year's wor… Read more Accessing Nasdaq Historical Data With Python Requests Results In Connection Timeout

Text Scraping (from Edgar 10k Amazon) Code Not Working

I have the below code to scrape some specific word list from the financial statements (US SEC EDGAR… Read more Text Scraping (from Edgar 10k Amazon) Code Not Working

Where And How To Get The Equity Historical Data (at Least Covers 2008)?

I can use the following code to get historical data from Google Finance. But the oldest is from 201… Read more Where And How To Get The Equity Historical Data (at Least Covers 2008)?