James Briggs
1 min readFeb 24, 2020

--

Thanks Rog, I did originally use the to_sql method (and re-tried after seeing your comment) and I agree it seems to function much better in maintaining datatypes and is much easier to type. However, I have found the occasional dataset where I seem get issues using this, and so I reverted to the method above. Although this may be due to my implementation of it.

These seem to be reasonably rare cases and is something I need to look into more, I’ve included an example of your method here for those that are interested.

I agree on the str.join point, it’s much more elegant using this and so I’ve updated my code with this.

Thanks a lot for the feedback!

--

--

James Briggs
James Briggs

Written by James Briggs

Freelance ML engineer learning and writing about everything. I post a lot on YT https://www.youtube.com/c/jamesbriggs

No responses yet