Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Applied Geospatial Data Science with Python

You're reading from   Applied Geospatial Data Science with Python Leverage geospatial data analysis and modeling to find unique solutions to environmental problems

Arrow left icon
Product type Paperback
Published in Feb 2023
Publisher Packt
ISBN-13 9781803238128
Length 308 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
David S. Jordan David S. Jordan
Author Profile Icon David S. Jordan
David S. Jordan
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Part 1:The Essentials of Geospatial Data Science
2. Chapter 1: Introducing Geographic Information Systems and Geospatial Data Science FREE CHAPTER 3. Chapter 2: What Is Geospatial Data and Where Can I Find It? 4. Chapter 3: Working with Geographic and Projected Coordinate Systems 5. Chapter 4: Exploring Geospatial Data Science Packages 6. Part 2: Exploratory Spatial Data Analysis
7. Chapter 5: Exploratory Data Visualization 8. Chapter 6: Hypothesis Testing and Spatial Randomness 9. Chapter 7: Spatial Feature Engineering 10. Part 3: Geospatial Modeling Case Studies
11. Chapter 8: Spatial Clustering and Regionalization 12. Chapter 9: Developing Spatial Regression Models 13. Chapter 10: Developing Solutions for Spatial Optimization Problems 14. Chapter 11: Advanced Topics in Spatial Data Science 15. Index 16. Other Books You May Enjoy

Conducting EDA

Let’s now explore the data a little bit further in order to better understand basic information such as record counts, data types, and missingness. You can run the .info() method on the pandas DataFrame to see how many non-null values there are in each column. Remember that the .info() method is one of many pandas methods to explore your data, which were discussed in Chapter 4, Exploring Geospatial Data Science Packages. Records with null values indicate an area where the data may need to be cleaned. Output from the .info() method is included in Figure 5.3:

Figure 5.3 – Subset New York City Airbnb data info

Figure 5.3 – Subset New York City Airbnb data info

Running this method reveals that there are 37,410 records in the dataset. It also reveals 910 missing records for bedrooms and 37,410 missing records for the bathrooms variable. Given that there is no obvious way to impute the missing values here, we’ll go ahead and drop them by using the .drop() method. By specifying...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime