Skip to content
Snippets Groups Projects
Commit d0f131ad authored by Amir Golparvar's avatar Amir Golparvar Committed by Theodore Chang
Browse files

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

parent c24f1663
No related branches found
No related tags found
1 merge request!1191Resolve "Tabular parsing: bug in datetime quantities read from spreadsheet files"
......@@ -17,6 +17,8 @@
#
from typing import Union, List, Iterable, Dict, Callable, Set, Any, Tuple, cast, Iterator
import pandas as pd
from memoization import cached
import os.path
import re
......@@ -307,7 +309,7 @@ def _create_column_to_quantity_mapping(section_def: Section):
if isinstance(value, float) and math.isnan(value):
value = None
if isinstance(value, (int, float, str)):
if isinstance(value, (int, float, str, pd.Timestamp)):
value = np.array([value])
if value is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment