a guest Sep 4th, 2018 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- IP1, IP2, IP3.
- def proc(db, hostname):
- con = mysql.connector.connect(user=x, password=pw,
- database=db, port=1234)
- db_cursor = con.cursor()
- db_cursor.execute('SELECT * FROM table')
- table_rows = db_cursor.fetchall()
- df = pd.DataFrame(table_rows)
- a=map(proc, tablelist, hostlist)
RAW Paste Data