Coder Social home page Coder Social logo

Comments (1)

smmaurer avatar smmaurer commented on July 19, 2024

Related to this are the messages about dropped rows that sometimes show up when you run an aggregation calculation:

Computing pop_500_walk
Removed 189769 rows because they contain missing values

These messages are generated by the pandana.Network.set() call that links the values being aggregated to the network.

https://github.com/UDST/pandana/blob/master/pandana/network.py#L235

Here's what happens, for the example of aggregating a variable from the households table:

  • if filters are provided, these rows are removed from the households table first
  • then, pandana tries to link each remaining row to a network node
  • any rows that are either missing a node id or have a NaN in the column being aggregated are dropped
  • the message refers to rows dropped from the households table, not nodes dropped from the network

Often, the rows are dropped because they can't be matched to nodes (for example households that are not assigned to buildings and thus don't have a spatial location), not because of missing values in the data column.

Rows that are explicitly filtered out aren't counted, which can result in variations in the number of rows dropped for aggregations in the same table.

Here is a notebook where we dug into this: More-aggregation-troubleshooting.ipynb

from pandana.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.