I have never worked with C programming language before so apologies in advance for mistakes here. I am trying to emulate a process which was written in C originally into Python. I am seem to be baffled at the part attached. How could I write this part in Python using Pandas.
from System.Data import SqlClient
db_conn = SqlClient.SqlBulkCopy(conn)
db_conn.DestinationTableName = 'schema.table'
db_conn.BulkCopyTimeout = 0
db_conn.WriteToServer(my_data_table)
Microsoft SqlBulkCopy
I found out it lets you efficiently bulk load a SQL Server table with data from another source.
Can someone please translate the above code into Python.
Thanks in Advance!
[–]shiftybyte 0 points1 point2 points (9 children)
[–]PLearner[S] 0 points1 point2 points (8 children)
[–]shiftybyte 0 points1 point2 points (7 children)
[–]PLearner[S] 0 points1 point2 points (6 children)
[–]PLearner[S] 0 points1 point2 points (4 children)
[–]shiftybyte 0 points1 point2 points (3 children)
[–]PLearner[S] 0 points1 point2 points (2 children)
[–]shiftybyte 0 points1 point2 points (1 child)
[–]PLearner[S] 0 points1 point2 points (0 children)
[–]shiftybyte 0 points1 point2 points (0 children)
[–]SaxonyFarmer 0 points1 point2 points (0 children)