You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Map snowflake time unit to pandas rounding alias
1805
1794
# Not all units have an alias so handle those with a special case
1806
-
fromsnowflake.snowpark.mock._optionsimportpandas
1807
-
1808
1795
SUPPORTED_UNITS= {
1809
1796
"day": "D",
1810
1797
"hour": "h",
@@ -1903,7 +1890,6 @@ def func(x, y):
1903
1890
data= []
1904
1891
forx, yinzip(col1, col2):
1905
1892
data.append(NoneifxisNoneoryisNoneelsefunc(x, y))
1906
-
fromsnowflake.snowpark.mock._optionsimportpandas
1907
1893
1908
1894
returnColumnEmulator(
1909
1895
pandas.Series(data, dtype=object),
@@ -2015,7 +2001,6 @@ def mock_convert_timezone(
2015
2001
For timezone information, refer to the `Snowflake SQL convert_timezone notes <https://docs.snowflake.com/en/sql-reference/functions/convert_timezone.html#usage-notes>`_
2016
2002
"""
2017
2003
importdateutil
2018
-
fromsnowflake.snowpark.mock._optionsimportpandas
2019
2004
2020
2005
# mock_convert_timezone matches the sql function call semantics.
2021
2006
# It has different parameters when called with 2 or 3 args.
0 commit comments