The last posts have discussed portfolio performance with a very boring portfolio: one stock! Things get more interesting when there’s more than one stock to compare. Let’s say we have a two stock portfolio now: SPY (as before) and DOCU (Docusign). We’ll combine the two tickers into one dataframe: Now that things are getting moreContinue reading “A multi-stock portfolio: comparing returns”
Tag Archives: pandas
Show me the money: tracking returns
Last post went over building a very simple portfolio tracker to show a portfolio’s performance over time. However, it would be easy to trick myself: “My portfolio value is going up over time, I’m doing great!” But I’m also adding money to my portfolio over time, so that money shouldn’t “count” in terms of performance.Continue reading “Show me the money: tracking returns”
Building a (very simple) portfolio tracker with pandas
All of these graphs were created in Colab. I’ve actually never found a commercial product that does everything I want, so I figured I’d build one up in a series of blog posts. We’ll see how many I get through! 🧵👇 First, we’ll get SPY’s stock history with pandas_datareader. This returns a dataframe that looksContinue reading “Building a (very simple) portfolio tracker with pandas”
Thinking with Pandas
You can see and run all of my work for this blog post at Colabratory. Pandas is a Python library for manipulating data. Wrapping my head around it took a while: I’ve been using it for ~6 months and I’m still learning how to use it “right.” It uses all kinds of syntactic sugar toContinue reading “Thinking with Pandas”