Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “pl.read_csv()
is one of the common ways to read data into a DataFrame.”
A block of code is set as follows:
import numpy as np numpy_arr = np.array([[1,1,1], [2,2,2]]) df = pl.from_numpy(numpy_arr, schema={'ones': pl.Float32, 'twos': pl.Int8}, orient='col') df.head()
Any command-line input or output is written as follows:
$ pip install polars
Tips or important notes
Appear like this.