Guest User

Untitled

a guest
Aug 13th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # Importing the libraries and defining the connection
  2.  
  3. import mysql.connector as mysql
  4. import pandas as pd
  5. import numpy as np
  6. pd.set_option('display.max_rows', 310)
  7.  
  8. # Defining cnx as our MySQL connection
  9. # Make sure your vpn to datlinq is on!
  10. cnx = mysql.connect(user='schilperoort', password='BMX741LOEFcgSnUw',
  11. host='172.17.2.11',
  12. database='outlet_public_global')
  13.  
  14. cnx1 = mysql.connect(user='schilperoort', password='BMX741LOEFcgSnUw',
  15. host='172.17.2.11',
  16. database='outlet_unilever_BNL')
  17.  
  18. # from IPython.display import HTML
  19.  
  20. # HTML('''<script>
  21. # code_show=true;
  22. # function code_toggle() {
  23. # if (code_show){
  24. # $('div.input').hide();
  25. # } else {
  26. # $('div.input').show();
  27. # }
  28. # code_show = !code_show
  29. # }
  30. # $( document ).ready(code_toggle);
  31. # </script>
  32. # <form action="javascript:code_toggle()"><input type="submit" value="Click here to toggle on/off the raw code."></form>''')
Add Comment
Please, Sign In to add comment