pasztora
1/30/2019 - 2:28 PM

Finding a start of a dataset

# Finding the start of the online dataset by searching for [TrackData]
# [TrackData] is a string in the dataframe, that needs to be found
# This is giving a tuple of the row number (0 is row, 1 is column), which is later converted to a list
trackdata = np.where(df_input_Dasbox.values == '[TrackData]')
trackdata = list(trackdata[0])[0] # [0] is returning the first instance of [TrackData]