Created
May 11, 2020 08:25
-
-
Save jeakwon/c8e458319646dcb2dd1f409e7489885e to your computer and use it in GitHub Desktop.
sqlalchemy, pyodbc, mssql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import pyodbc | |
from sqlalchemy import create_engine | |
engine = create_engine("mssql+pyodbc://DESKTOP-R5QA5N1/test?driver=SQL+Server+Native+Client+11.0") | |
df = pd.DataFrame([1]) | |
df.to_sql('test', con=engine) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment