Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: _validate_setitem_value fails to raise for PandasArray #55759

Closed
wants to merge 18 commits into from
Closed
Prev Previous commit
Next Next commit
#55785 Add the cython and offsets.pyx
  • Loading branch information
hvsesha committed Nov 3, 2023
commit bf6cedf97317450078760562fd25837acb870212
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/offsets.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ cdef class QuarterBegin(QuarterOffset):
_prefix = "QS"
_day_opt = "start"
_period_dtype_code = PeriodDtypeCode.Q_DEC#55785 Fix for QuaterBegin

print (_period_dtype_code)

# ----------------------------------------------------------------------
# Month-Based Offset Classes
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ def get_engine(engine: str) -> BaseEngine:
raise ValueError("engine must be one of 'auto', 'sqlalchemy'")


class SQLDatabase(PandasSQL):
class SQLDatabase(PandasSQL,**connect_kwargs):
"""
This class enables conversion between DataFrame and SQL databases
using SQLAlchemy to handle DataBase abstraction.
Expand Down
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
import sys
from sysconfig import get_config_vars

from setuptools import setup
from Cython.Build import cythonize

setup(
ext_modules = cythonize("C:\Users\harik\Documents\GitHub\pandas\pandas\_libs\tslibs\offsets.pyx")
)
import numpy
from pkg_resources import parse_version
from setuptools import (
Expand Down
Loading