Python Forum
if nan -> find value in cell above Pandas
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if nan -> find value in cell above Pandas
#4
There is not enough information for me to understand what you are asking. The code is incomplete, so I cannot run the program and see what happens, and your question is lacking detail. Wat does "cannot make proper loop through" mean. Are you getting an error? Does the code run but it is not doing what you want? I know the latter is true because:
value = survey[index-1]
Is not going to replace a NAN in survey.
Reply


Messages In This Thread
RE: if nan -> find value in cell above Pandas - by deanhystad - Mar-27-2020, 03:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pandas pivot table: How to find count for each group in Index and Column JaneTan 0 3,520 Oct-23-2021, 04:35 AM
Last Post: JaneTan
  Pandas find the most often rows dervast 1 1,989 Jun-07-2019, 01:55 PM
Last Post: ichabod801
  find cell value with matching regular expression of a row in excel file hruday 4 31,207 Jul-05-2017, 01:02 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020