Skip to Content
Mastering Geospatial Analysis with Python
book

Mastering Geospatial Analysis with Python

by Silas Toms, Paul Crickard, Eric van Rees
April 2018
Beginner to intermediate content levelBeginner to intermediate
440 pages
11h 36m
English
Packt Publishing
Content preview from Mastering Geospatial Analysis with Python

Why data inspection matters

When you're preparing your data, it's good to know the data you're dealing with. For example, listing statistics about your dataset that show you how many elements there are, and if there are any missing values. It's common that data has to be cleaned up before doing the analysis. Because the GeoPandas data objects are subclasses of pandas data objects, you can use their methods to do data inspection and cleaning. Take, for instance, the wildfire data shapefile we used earlier. By listing our dataframe object, it not only prints all of the attribute data, but also lists the total rows and columns, which is 20340 rows and 30 columns. The total amount of rows can also be printed this way:

In:        len(fires.index)Out: ...
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

Learning Geospatial Analysis with Python

Learning Geospatial Analysis with Python

Joel Lawhead

Publisher Resources

ISBN: 9781788293334Supplemental Content