title: IndexError: list index out of range can anybody help me?
body: <p>i am using this code to extract date and time from text file in pandas, program is not showing any issue while executing the code line by line, but when i run it as a whole it shows error index out of range. Any one who can help me
  Thanks in advance</p>
  <p><img src="https://i.stack.imgur.com/TiQN8.png" alt="This is how my data looks" /></p>
  <pre><code>for line in msgs:
      if filter_message(line):
          if is_single_offer(line):
              x = line.split()
              #Get the date
              dating = x[0]
              Date.append(dating.replace(',',''))
              
              #Get the time
              timing = x[1]
              Time.append(timing)
  </code></pre>