Python Forum
How get row index of matching row in column 0
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How get row index of matching row in column 0
#3
There are 5 empty rows before "Trail_number"
if remove empty rows, the "Trail_number" will become row8.

I forgot to mention, I also want to delete empty rows.
I import pandas because I am reading CSV file using pd.read_csv.
Reply


Messages In This Thread
RE: How get row index of matching row in column 0 - by Sri - Apr-09-2019, 01:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Removing the index column from df bnadir55 7 3,230 Apr-05-2022, 02:49 PM
Last Post: snippsat
  pandas pivot table: How to find count for each group in Index and Column JaneTan 0 3,390 Oct-23-2021, 04:35 AM
Last Post: JaneTan
  Index error - columns vs non-column Vinny 3 4,987 Aug-09-2021, 04:46 PM
Last Post: snippsat
Question Matching variable to a list index Gilush 17 6,035 Nov-30-2020, 01:06 AM
Last Post: Larz60+
  How to define index column name using df.to_csv SriRajesh 0 1,796 Feb-13-2020, 03:45 PM
Last Post: SriRajesh
  How to get row row index of matching row SriRajesh 0 1,285 Feb-13-2020, 02:35 PM
Last Post: SriRajesh
  How to ger matching rows data based on index columns SriRajesh 1 2,268 Mar-08-2019, 11:05 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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