This file contains 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
# author: @Daniel_Abeles | |
# date: 18/12/2017 | |
import asyncio | |
from aiohttp import ClientSession | |
from timeit import default_timer | |
import async_timeout | |
async def fetch_all(urls: list): |
This file contains 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
# author: @Daniel_Abeles | |
# date: 10/05/2017 | |
import numpy as np | |
import pandas as pd | |
class Headers(object): | |
''' Represents a header list ''' | |
__slots__ = ['_headers', '_key'] |
This file contains 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 pandas as pd | |
import pymysql | |
from sqlalchemy import create_engine | |
engine = create_engine('mysql+pymysql://<user>:<password>@<host>:<port>/<dbname>') | |
df = pd.read_sql_query('SELECT * FROM table', engine) | |
df.head() |
NewerOlder