Skip to content

Commit bf6cedf

Browse files
committed
pandas-dev#55785 Add the cython and offsets.pyx
1 parent 22112e6 commit bf6cedf

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2811,7 +2811,7 @@ cdef class QuarterBegin(QuarterOffset):
28112811
_prefix = "QS"
28122812
_day_opt = "start"
28132813
_period_dtype_code = PeriodDtypeCode.Q_DEC#55785 Fix for QuaterBegin
2814-
2814+
print (_period_dtype_code)
28152815

28162816
# ----------------------------------------------------------------------
28172817
# Month-Based Offset Classes

pandas/io/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ def get_engine(engine: str) -> BaseEngine:
15431543
raise ValueError("engine must be one of 'auto', 'sqlalchemy'")
15441544

15451545

1546-
class SQLDatabase(PandasSQL):
1546+
class SQLDatabase(PandasSQL,**connect_kwargs):
15471547
"""
15481548
This class enables conversion between DataFrame and SQL databases
15491549
using SQLAlchemy to handle DataBase abstraction.

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
import sys
1616
from sysconfig import get_config_vars
1717

18+
from setuptools import setup
19+
from Cython.Build import cythonize
20+
21+
setup(
22+
ext_modules = cythonize("C:\Users\harik\Documents\GitHub\pandas\pandas\_libs\tslibs\offsets.pyx")
23+
)
1824
import numpy
1925
from pkg_resources import parse_version
2026
from setuptools import (

0 commit comments

Comments
 (0)