Skip to content
Snippets Groups Projects

Resolve "Tabular parsing: bug in datetime quantities read from spreadsheet files"

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -17,6 +17,8 @@
@@ -17,6 +17,8 @@
#
#
from typing import Union, List, Iterable, Dict, Callable, Set, Any, Tuple, cast, Iterator
from typing import Union, List, Iterable, Dict, Callable, Set, Any, Tuple, cast, Iterator
 
 
import pandas as pd
from memoization import cached
from memoization import cached
import os.path
import os.path
import re
import re
@@ -307,7 +309,7 @@ def _create_column_to_quantity_mapping(section_def: Section):
@@ -307,7 +309,7 @@ def _create_column_to_quantity_mapping(section_def: Section):
if isinstance(value, float) and math.isnan(value):
if isinstance(value, float) and math.isnan(value):
value = None
value = None
if isinstance(value, (int, float, str)):
if isinstance(value, (int, float, str, pd.Timestamp)):
value = np.array([value])
value = np.array([value])
if value is not None:
if value is not None:
Loading