Skip to content

Book PDF layout: code in margin (August 2026 version) #185

Description

@VuokkoH

page numbers refer to the printed book page numbers in the pdf shared in late August 2026

PART I:

Code in margin

  • p. 46 under 2.3.2 Older approaches for string formatting
  • p. 68 under 2.6.4 Functions with no return value
  • p. 82 under 2.7.6 Creating a temperature calculator --> testing the new function
  • p. 103 print statement "There were {data[’MAX’].nunique()} days ..."
  • p. 115-116 setting with copy warning under 3.2.2 Selecting and updating data
  • p. 144 print statement "Size (bytes): {size_in_bytes}\nCreated (seconds since Epoch):" under 3.3.7 Automating the analysis

ok or not?

  • p.96 ´data.head()` print under 3.1.3 Reading tabular data
  • p. 97 data.tail() print, same as above? (there are some other similar data.head() prints that are wide, but are these too wide?)

PART II:

Code in margin

  • p.252 print(available_drivers) output under "6.2.5 Different file formats for reading and writing geographic data"
  • p.255 print(z.namelist()) output under "6.2.5 Different file formats for reading and writing geographic data"
  • p.256 ´buildings_fp` definition under "6.2.5 Different file formats for reading and writing geographic data"
  • p. 372 bucket_url under "7.2.2 Reading a file into Dataset"
  • p. 382 In [24]: ("/Users/tenkanh2/micromamba/..") under "7.2.5 Extracting basic raster dataset properties"
  • p. 383 In [28]: ("/Users/tenkanh2/micromamba/..") under "7.2.5 Extracting basic raster dataset properties"
  • P. 402 bucket -variable and Out[12]: PosixPath(´...) under "7.3.4. Creating a raster mosaic by merging datasets"
  • p.404: `` In [17]: ` ("/Users/tenkanh2/micromamba/..")
  • p. 409 In [25]: ("/Users/tenkanh2/micromamba/..")
  • p. 417 Table 7.2 Different resampling methods .. (totally off)
  • p. 422 printout of data.spatial_ref.attrs and data.spatial_ref.attrs.keys()
  • p. 424 printout of utm_crs.to_wkt()

Other stuff:

  • Check SPELLING of "nearest neihgbo(u)r"; currently 20 x "nearest neighbour" ; 45 x "nearest neighbor"
  • Exercise 6.1 heading should not be in TOC
  • Exercise 6.2 table print out goes off margin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions