Four pandas moves finance notebooks actually use after work: price panels, returns, resample, and clean joins. Educational only. Not investment advice.
You searched for pandas tutorial for finance. After a full day of work, you do not need a 400-page manual—you need a why-first path that fits one evening: understand the angle (finance table hygiene: prices → returns → resample → join), run a tiny example, and know what not to claim.
This hub article is educational only. Not investment advice. It will not pick stocks, size positions, or promise edge.
Tool focus: pandas.
import pandas as pd
import numpy as np
idx = pd.date_range("2024-01-02", periods=40, freq="B")
px = pd.DataFrame({
"AAPL": 180 + np.cumsum(np.random.default_rng(0).normal(0, 1, len(idx))),
"MSFT": 370 + np.cumsum(np.random.default_rng(1).normal(0, 1.2, len(idx))),
}, index=idx)
rets = px.pct_change().dropna()
weekly = px.resample("W-FRI").last()
print(rets.tail(2), weekly.tail(2), sep="\n")
Run it in a throwaway venv. If an import is missing, install only what you need for tonight—do not boil the ocean.
You can explain finance table hygiene: prices → returns → resample → join in two sentences, show one chart or printout, and list one risk. That is enough progress for an after-work session.
Tomorrow, connect this tool to the adjacent skill (data hygiene, validation, or a simple dashboard)—still educational, still not investment advice.
Educational only. Not investment advice.
pip show) so you can reproduce tomorrow.scratch/ folder; do not mix experiments with production paths.