core.pandas: add check for 'error' column + add empty one by default

This commit is contained in:
Dima Gerasimov 2020-12-17 04:47:05 +00:00 committed by karlicoss
parent 3a1e21635a
commit df9a7f7390
7 changed files with 82 additions and 30 deletions

View file

@ -292,16 +292,6 @@ else:
from .py37 import fromisoformat
if sys.version_info[:2] >= (3, 8):
from typing import Literal
else:
if TYPE_CHECKING:
from typing_extensions import Literal
else:
# erm.. I guess as long as it's not crashing, whatever...
Literal = Union
# TODO doctests?
def isoparse(s: str) -> tzdatetime:
"""
@ -313,6 +303,8 @@ def isoparse(s: str) -> tzdatetime:
s = s[:-1] + '+00:00'
return fromisoformat(s)
from .compat import Literal
import re
# https://stackoverflow.com/a/295466/706389