Python Forum
df and regex, NaN and df.concat
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
df and regex, NaN and df.concat
#7
(Jan-10-2018, 09:29 AM)metalray Wrote: I started using named groups straight away.
(Jan-22-2018, 03:12 PM)metalray Wrote: I only get the error "pattern contains no capture groups"

the pattern r'199\d{1}|20\d{2}|\d{2}(?![/,\-\w ])' has no capture groups
try with (?P<year>19\d{2}|20\d{2}|\d{2}(?![/,\-\w ]))
Reply


Messages In This Thread
df and regex, NaN and df.concat - by metalray - Jan-04-2018, 10:04 AM
RE: df and regex, NaN and df.concat - by metalray - Jan-05-2018, 09:30 AM
RE: df and regex, NaN and df.concat - by buran - Jan-05-2018, 09:58 AM
RE: df and regex, NaN and df.concat - by metalray - Jan-10-2018, 09:29 AM
RE: df and regex, NaN and df.concat - by buran - Jan-10-2018, 07:02 PM
RE: df and regex, NaN and df.concat - by metalray - Jan-22-2018, 03:12 PM
RE: df and regex, NaN and df.concat - by buran - Jan-22-2018, 04:37 PM
RE: df and regex, NaN and df.concat - by metalray - Feb-06-2018, 03:11 PM
RE: df and regex, NaN and df.concat - by buran - Feb-06-2018, 03:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  concat two list based on array MeeranRizvi 9 7,637 Jan-03-2017, 06:28 PM
Last Post: wavic

Forum Jump:

User Panel Messages

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