How to use regex re.compile Match() or findall() in list comprehension
问题 I am trying to use regex in list comprehension without needing to use the pandas extract() functions. I want to use regex because my code might need to change where I need to use more complex pattern matching. A kind user here suggested I use the str accessor functions but again it mainly works because the current pattern is simple enough. As of now, I need to return pandas rows that either contain nan or whose values under ODFS_FILE_CREATE_DATETIME are not 10 string numbers i.e.: does not