Skip to content

Commit

Permalink
move pandas specific import
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jrose committed Feb 13, 2024
1 parent eed75d3 commit de0f3c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/snowflake/snowpark/mock/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from numbers import Real
from typing import Any, Callable, Optional, Union

import dateutil.parser
import pytz

from snowflake.snowpark.exceptions import SnowparkSQLException
Expand Down Expand Up @@ -609,6 +608,9 @@ def _to_timestamp(
[ ] If the value is greater than or equal to 31536000000000000, then the value is treated as nanoseconds.
"""
# dateutil is a pandas dependency
import dateutil.parser

res = []
fmt_column = fmt if fmt is not None else [None] * len(column)

Expand Down

0 comments on commit de0f3c3

Please sign in to comment.