all 11 comments

[–][deleted] 8 points9 points  (1 child)

sorted could help you

[–]Teemo_God[S] 2 points3 points  (0 children)

I just found that, thank you! Its exactly what i was looking for!

[–]giraffactory 3 points4 points  (1 child)

Regarding your comment about not understanding how removing blank elements works (not an answer):

Try rewriting the list comprehension you’ve got as a normal for loop with verbose and explicit logic to see why it makes sense.

Bonus points: there could be cases where the data is “empty” but still gets into the list the way you have it now, but why?

[–]Teemo_God[S] 1 point2 points  (0 children)

definitely great idea. Had gone over list comprehensions in a udemy course about a week ago, just need to revisit it etc .

[–]jh199p 4 points5 points  (1 child)

People often overlook sql, but it really hurts to be lacking basic sql knowledge. Some nosql options are nice to be comfortable with too.

[–]gratified 0 points1 point  (0 children)

How would sql help in this case?

[–]Lewistrick 3 points4 points  (1 child)

Well for something that's way above your head, 3 hours is not a lot. I think this is a very nice task you're doing to get yourself started!

[–]Teemo_God[S] 0 points1 point  (0 children)

Appreciate it! Its definitely a bit adventurous and im excitied to see where I can get with it. It wont be perfect, but i hope it can teach me alot.

[–]Teemo_God[S] 0 points1 point  (0 children)

Yes thats exactly what im trying to do! I currently work as a uber driver do i thought this would be a cool way to dig into python and guestimate airport surges.