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 pandas as pd | |
import numpy as np | |
def read_csv(fname, **kwargs): | |
df = pd.read_csv(fname, **kwargs) | |
arrs = [df.icol(i).data for i in range(df.shape[1])] | |
dtype = [(h, df.dtypes[h]) for h in df.columns] | |
arr = np.rec.fromarrays(arrs, dtype=dtype) | |
arr.columns = df.columns.tolist() |
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
""" | |
Rectangle Plugin | |
================= | |
This is a demo adapted from a `matplotlib gallery example | |
<http://matplotlib.org/examples/shapes_and_collections/path_patch_demo.html>`_ | |
This example adds a custom D3 plugin allowing the user to drag a | |
rectangle and adjust the rectangle shape. | |
Use the toolbar buttons at the bottom-right of the plot to enable zooming |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 pymongo.son_manipulator import SONManipulator | |
from bson import Binary | |
import numpy as np | |
import pickle | |
NUMPY_SUBTYPE = 128 | |
class Transform(SONManipulator): |
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 bson import BSON, Binary | |
import numpy as np | |
import pickle | |
import struct | |
NUMPY_SUBTYPE = 128 | |
def bson_dump(obj): |
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 matplotlib.pyplot as plt | |
from mpl_toolkits.axes_grid1 import make_axes_locatable | |
import numpy as np | |
from matplotlib.widgets import SpanSelector | |
class HistSelector(object): | |
def __init__(self, hist_ax, im, callback=None): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
/* | |
A KBase Atlas to liquid chromatography–mass spectrometry (LCMS) data | |
*/ | |
module MetaboliteAtlas2 { | |
/* Metabolite Compound object | |
* | |
* name - common name of the compound |
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 absolute_import | |
from metakernel import MetaKernel | |
from xonsh.shell import Shell | |
import builtins | |
from xonsh import imphooks | |
import re | |
__version__ = '0.0' |
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
stevensilvester: ~ | |
$ xonsh | |
/usr/local/etc/bash_completion.d/abook: line 3: have: command not found | |
/usr/local/etc/bash_completion.d/ant: line 45: syntax error in conditional expression: unexpected token `(' | |
/usr/local/etc/bash_completion.d/ant: line 45: syntax error near `-@(?' | |
/usr/local/etc/bash_completion.d/ant: line 45: ` if [[ "${COMP_WORDS[i]}" == -@(?(build)file|f) ]]; then' | |
/usr/local/etc/bash_completion.d/apache2ctl: line 3: have: command not found | |
/usr/local/etc/bash_completion.d/apt: line 12: syntax error in conditional expression: unexpected token `(' | |
/usr/local/etc/bash_completion.d/apt: line 12: syntax error near `@(i' | |
/usr/local/etc/bash_completion.d/apt: line 12: ` if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep) ]]; then' |