This is the notebook’s way of telling you that these are Python reserved words. You might be wondering why the words “import” and “as” become green when you type them. Again, “pd” is a standard short form to name pandas when you import it. These two structures enable you to navigate and manipulate your data. As mentioned in the intro post to this series, it stores data as DataFrames and Series. Pandas is also open-source, and stands for “Python Data Analysis Library”. You can technically name numpy anything you want, but it’s standard to use “np” as above. Because of numpy, you can make calculations on columns of data, without writing a program to loop through every value in that column. Numpy is an open-source (free) Python library, which supports scientific computing. First cell of code to import Python libraries for data analysis What are numpy and pandas? For your needs, the two most important ones are numpy and pandas. These are pre-written software packages that have specific purposes. Firstly, you’ll need to import the necessary Python libraries, before you can read or write any files. Your Jupyter notebook will contain cells, where you can type small pieces of code. First things first: Essential Python libraries Furthermore, it tells you about the Python libraries you need for analyzing data. To this purpose, this post discusses how to read and write files into and out of your Jupyter Notebooks. Now that you’ve set up your Jupyter notebook, you can start getting data into it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |