This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| NaN = np.nan | |
| def is_nums(numbers : tuple) -> bool: | |
| return all((isinstance(num, (int,float)) for num in numbers)) | |
| #is_nums(1, 4, 3, 2, 5) | |
| #True | |
| #is_nums(1, "a", 3) | |
| #False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sqlalchemy import create_engine | |
| import pandas as pd | |
| params = urllib.parse.quote_plus( | |
| r'Driver={ODBC Driver 17 for SQL Server};' | |
| + fr'Server={sql_server}' | |
| + fr',1433;Database={sql_db};' | |
| + fr'Uid={sql_user};Pwd={sql_password};' | |
| + r'Encrypt=yes;TrustServerCertificate=Yes;Connection Timeout=30;') |
OlderNewer