Skip to content

Data are missing after filtering #2095

Answered by NickCrews
ghost asked this question in Q&A
Jun 22, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

It looks like you could keep your filtering simpler?

min_lat = 34.0
max_lat = 36.5
min_lon = 23.0
max_lon = 27.5

filtered = df[
   (df.LAT >= min_lat) &
   (df.LAT <= max_lat) &
   (df.LON >= min_lon) &
   (df.LON <= max_lon) &
]

Why don't you do the filtering, and from there you can see which rows indices are looking abnormal, and then you can go back to the original unfiltered data and find those rows and see if they look weird before?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JovanVeljanoski
Comment options

@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants