From the course: Getting Started with Python for Finance

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Loading data

Loading data

- [Instructor] And this first lesson, we are going to load our data. Let's get started. I'm going to run this cell here. This will do our imports. Let me just go over what these imports are doing. This first import here is loading the dates library from the map plot lib library. We're going to use that later on. We're also importing the pie plot library. This is the general map plot lib plotting library that's used all over the place. We are aliasing that as plt. That's what the as plt does, is make an alias. So when you see plt, it refers to that library. We're also aliasing the NumPy library as NP. We're aliasing the Pandas library as pd and we're aliasing the Y Finance library as YF. People ask whether they should use aliasing. It's not a requirement to do that but I recommend doing it for NumPy and Pandas because those are common conventions that are used all over the place. Okay, let's go to the next cell here…

Contents