In [1]: from generated import generated
In [2]: import numba as nb
In [3]: @generated(nopython=True)
...: def foo(x, y):
...: if isinstance(x, nb.types.Integer):
...: return lambda x, y: x + y
...: else:
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 ujson | |
from datetime import datetime | |
import pandas as pd | |
from toolz import partition_all, dissoc | |
from castra import Castra | |
def to_json(line): | |
blob = ujson.loads(line) | |
date = blob['created_utc'] |
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 types import ModuleType | |
import sys | |
import inspect | |
from contextlib import contextmanager | |
class LocalImportFinder(object): | |
def find_module(self, fullname, path=None): | |
if path: | |
return None |
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 __future__ import print_function | |
import pandas as pd | |
from castra import Castra | |
from toolz import peek | |
def make_frame(year): | |
path = '{0}.csv'.format(year) | |
cols = ['year', 'month', 'day_of_month', 'day_of_week', 'deptime', | |
'crs_deptime', 'arrtime', 'crs_arrtime', 'unique_carrier', | |
'flight_num', 'tail_num', 'actual_elapsed_time', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer