Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.
header_len = 3 hours_len = 10 minutes_len = 60 for item, row in enumerate(source): if 'Point Name:' in row: index = 0 metrics =  if item >= index: metrics.append(row) print metrics //this works if '1 Minutes' in row: index = 0 rhm =  if item <= (index + minutes_len): rhm.append(item) print rhm //this doesn't work rhm_slice =  if item <= (index + minutes_len): rhm_slice.append(row) print rhm_slice // and this doesn't either
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!