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

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

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)?

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?

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

Create And Index From Returns Pandas

I have the following dataframe where the first two columns are monthly returns (you have to multipl… Read more Create And Index From Returns Pandas

Pandas Pct_change Gives Slightly Different Answers To Manual

Can anyone explain why the pct_change function gives slightly different numbers when using the more… Read more Pandas Pct_change Gives Slightly Different Answers To Manual

Create And Index From Returns PANDAS

I have the following dataframe where the first two columns are monthly returns (you have to multipl… Read more Create And Index From Returns PANDAS

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

Creating New Dataframe Data Slicing Issue

This is my code snippet. The code works however, I am getting the following error: 'A value is … Read more Creating New Dataframe Data Slicing Issue