gistlib
main.py# Import CSV file import pandas as pd data = pd.read_csv('file.csv') # Import Excel file data = pd.read_excel('file.xlsx') # Import data from SQL database import sqlite3 conn = sqlite3.connect('database.db') data = pd.read_sql_query("SELECT * FROM table_name", conn) 269 chars12 lines
# Import CSV file import pandas as pd data = pd.read_csv('file.csv') # Import Excel file data = pd.read_excel('file.xlsx') # Import data from SQL database import sqlite3 conn = sqlite3.connect('database.db') data = pd.read_sql_query("SELECT * FROM table_name", conn)
gistlibby LogSnag