madisonmay / CommonRegex

A collection of common regular expressions bundled with an easy to use interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading from CSV error - TypeError: expected string or bytes-like object

yuva670 opened this issue · comments

Traceback (most recent call last):
File "csv_parse.py", line 14, in
parsed_text = CommonRegex({row[2]})
File "/Users/mviraktamath/.pyenv/versions/3.8.6/lib/python3.8/site-packages/commonregex.py", line 53, in init
setattr(self, key, method())
File "/Users/mviraktamath/.pyenv/versions/3.8.6/lib/python3.8/site-packages/commonregex.py", line 39, in regex_method
return [x.strip() for x in self.regex.findall(text or self.obj.text)]
TypeError: expected string or bytes-like object