Skip to Content
Hands-On Financial Trading with Python
book

Hands-On Financial Trading with Python

by Jiri Pik, Sourav Ghosh
April 2021
Intermediate to advanced
360 pages
6h 24m
English
Packt Publishing
Content preview from Hands-On Financial Trading with Python

Chapter 3: High-Speed Scientific Computing Using NumPy

This chapter introduces us to NumPy, a high-speed Python library for matrix calculations. Most data science/algorithmic trading libraries are built upon NumPy's functionality and conventions.

In this chapter, we are going to cover the following key topics:

  • Introduction to NumPy
  • Creating NumPy n-dimensional arrays (ndarrays)
  • Data types used with NumPy arrays
  • Indexing of ndarrays
  • Basic ndarray operations
  • File operations on ndarrays

Technical requirements

The Python code used in this chapter is available in the Chapter03/numpy.ipynb notebook in the book's code repository.

Introduction to NumPy

Multidimensional heterogeneous arrays can be represented in Python using lists. A list is a 1D array, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Algorithmic Trading with Python

Hands-On Algorithmic Trading with Python

Deepak K. Kanungo

Publisher Resources

ISBN: 9781838982881Supplemental Content