I want to write a dataframe straight from Python into Netezza. Is this even possible? What I am doing right now is exporting to CSV then uploading into Netezza which is quite time consuming...
A dummy dataset is as follows:
s1=pd.Series(["Test1"])
s2=pd.Series(["Test2"])
s3=pd.Series(["Test3"])
df=pd.DataFrame([list(s1), list(s2), list(s3)], columns = ["STATUS"])
I then connect to Netezza (example):
#import libraries
import pandas as pd
import pyodbc
engine = pyodbc.connect("DRIVER={NetezzaSQL};SERVER=netezzakm01;PORT=5480;DATABASE=SDSNZKM01;UID=KMMTBA;PWD=xxx;")
This is as far as I get because anything else I have tried to write with has come nowhere near working...... is it possible to do this?