repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
jat255/seaborn | seaborn/tests/test_categorical.py | 1 | 82285 | import numpy as np
import pandas as pd
import scipy
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
pandas_has_categoricals = LooseVersion(pd.__version__) >= "0.15"
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decora... | bsd-3-clause |
Winterflower/mdf | mdf/nodetypes.py | 1 | 69294 | from collections import deque, namedtuple
import operator
import datetime
import numpy as np
import pandas as pa
import inspect
import types
import sys
import cython
from .nodes import (
MDFNode,
MDFEvalNode,
MDFIterator,
MDFIteratorFactory,
MDFCallable,
_isgeneratorfunction,
_is_member_of,... | mit |
Guokr1991/seaborn | seaborn/matrix.py | 1 | 34050 | """Functions to visualize matrices of data."""
import itertools
import colorsys
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib import gridspec
import numpy as np
import pandas as pd
from scipy.spatial import distance
from scipy.cluster import hierarchy
from .axisgrid import Grid
from .palett... | bsd-3-clause |
jaeilepp/mne-python | tutorials/plot_background_filtering.py | 2 | 44248 | # -*- coding: utf-8 -*-
r"""
.. _tut_background_filtering:
===================================
Background information on filtering
===================================
Here we give some background information on filtering in general,
and how it is done in MNE-Python in particular.
Recommended reading for practical app... | bsd-3-clause |
jreback/pandas | pandas/tests/series/methods/test_interpolate.py | 2 | 31137 | import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import Index, MultiIndex, Series, date_range, isna
import pandas._testing as tm
@pytest.fixture(
params=[
"linear",
"index",
"values",
"nearest",
"slinear",
... | bsd-3-clause |
jseabold/statsmodels | statsmodels/regression/tests/test_robustcov.py | 5 | 33367 | # -*- coding: utf-8 -*-
"""Testing OLS robust covariance matrices against STATA
Created on Mon Oct 28 15:25:14 2013
Author: Josef Perktold
"""
import pytest
import numpy as np
from scipy import stats
from numpy.testing import (assert_allclose, assert_equal, assert_warns,
assert_raises)
... | bsd-3-clause |
TomAugspurger/pandas | pandas/conftest.py | 1 | 30504 | """
This file is very long and growing, but it was decided to not split it yet, as
it's still manageable (2020-03-17, ~1.1k LoC). See gh-31989
Instead of splitting it was decided to define sections here:
- Configuration / Settings
- Autouse fixtures
- Common arguments
- Missing values & co.
- Classes
- Indices
- Serie... | bsd-3-clause |
geophysics/mtpy | mtpy/modeling/occam1d.py | 1 | 112593 | # -*- coding: utf-8 -*-
"""
==================
Occam1D
==================
* Wrapper class to interact with Occam1D written by Kerry Keys at Scripps
adapted from the method of Constable et al., [1987].
* This class only deals with the MT functionality of the Fortran code, so
it can make the... | gpl-3.0 |
lamastex/scalable-data-science | dbcArchives/2021/000_0-sds-3-x-projects/voluntary-student-project-01_group-DDLInMining/XX_ICNet_Function_hvd_tuning.py | 1 | 37335 | # Databricks notebook source
# MAGIC %md
# MAGIC ScaDaMaLe Course [site](https://lamastex.github.io/scalable-data-science/sds/3/x/) and [book](https://lamastex.github.io/ScaDaMaLe/index.html)
# COMMAND ----------
# MAGIC %md
# MAGIC # Implementation of [ICNet](https://arxiv.org/pdf/1704.08545.pdf)
# MAGIC
# MAGIC In... | unlicense |
fsimkovic/conkit | conkit/core/contactmap.py | 1 | 38343 | # coding=utf-8
#
# BSD 3-Clause License
#
# Copyright (c) 2016-18, University of Liverpool
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the abov... | bsd-3-clause |
lmcinnes/umap | umap/distances.py | 1 | 34710 | # Author: Leland McInnes <leland.mcinnes@gmail.com>
#
# License: BSD 3 clause
import numba
import numpy as np
import scipy.stats
from sklearn.metrics import pairwise_distances
_mock_identity = np.eye(2, dtype=np.float64)
_mock_cost = 1.0 - _mock_identity
_mock_ones = np.ones(2, dtype=np.float64)
@numba.njit()
def si... | bsd-3-clause |
CoCoMol/CoCoPy | modules/analysis/spec.py | 1 | 41885 | #!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
#
# CoCoPy - A python toolkit for rotational spectroscopy
#
# Copyright (c) 2016 by David Schmitz (david.schmitz@chasquiwan.de).
#
# Permission is hereby granted, free of charge, to any person obt... | mit |
Winand/pandas | pandas/tests/test_window.py | 1 | 154033 | from itertools import product
import pytest
import sys
import warnings
from warnings import catch_warnings
from datetime import datetime, timedelta
from numpy.random import randn
import numpy as np
from distutils.version import LooseVersion
import pandas as pd
from pandas import (Series, DataFrame, bdate_range, isna,... | bsd-3-clause |
oliverlee/antlia | python/antlia/trial2.py | 1 | 46706 | # -*- coding: utf-8 -*-
import bisect
import enum
from collections import namedtuple
import heapq
import itertools
import warnings
import numpy as np
import scipy.signal
import scipy.spatial
import scipy.stats
import scipy.optimize
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d.axes3d import Axes3D
import s... | bsd-2-clause |
jaeilepp/mne-python | mne/viz/ica.py | 1 | 37798 | """Functions to plot ICA specific data (besides topographies)."""
from __future__ import print_function
# Authors: Denis Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Teon Brooks <teon.brooks@gmail.com>
#
# License: Simplified BSD
from functools... | bsd-3-clause |
tbrunetti/GWAS_Analysis_Pipeline | run_GWAS_analysis_pipeline.py | 1 | 34057 | from chunkypipes.components import *
import collections
import multiprocessing
import math
import datetime
import sys
import os
import time
class Pipeline(BasePipeline):
def dependencies(self):
return ['pandas', 'numpy', 'matplotlib', 'fpdf', 'Pillow', 'pypdf2', 'statistics', 'xlrd']
def description(self):
retu... | mit |
jmcarpenter2/swifter | swifter/swifter_tests.py | 1 | 34224 | import sys
import importlib
import unittest
import subprocess
import time
import logging
import warnings
from math import ceil
from psutil import cpu_count, virtual_memory
import numpy as np
import numpy.testing as npt
import pandas as pd
import swifter
from math import ceil, isclose
from tqdm.auto import tqdm
LOG ... | mit |
paulovcmedeiros/band_unfolding | src/python_interface/bandupy/argparse_wrapper.py | 2 | 46576 | # Copyright (C) 2017 Paulo V. C. Medeiros
# A python wrapper to BandUP and its plotting tool
# This file is part of BandUP: Band Unfolding code for Plane-wave based calculations.
#
# BandUP is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# t... | gpl-3.0 |
yl565/statsmodels | statsmodels/tsa/statespace/sarimax.py | 1 | 81262 | """
SARIMAX Model
Author: Chad Fulton
License: Simplified-BSD
"""
from __future__ import division, absolute_import, print_function
from statsmodels.compat.python import long
from warnings import warn
import numpy as np
import pandas as pd
from .kalman_filter import KalmanFilter, FilterResults
from .mlemodel import M... | bsd-3-clause |
rabernat/xray | xarray/tests/test_dataset.py | 1 | 171986 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from copy import copy, deepcopy
from textwrap import dedent
try:
import cPickle as pickle
except ImportError:
import pickle
try:
import dask.array as da
except ImportError:
... | apache-2.0 |
mjirik/io3d | io3d/dcmreaddata.py | 1 | 40902 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
DICOM reader
Example:
$ dcmreaddata -d sample_data -o head.mat
"""
from loguru import logger
import os
import re
import sys
import traceback
from optparse import OptionParser
try:
import pydicom
except ImportError:
import warnings
with warnings.catch_... | mit |
vansky/meg_playground | scripts/meg_coherence_morphrunner.py | 1 | 34886 | # -*- coding: utf-8; python-indent: 2; -*-
# This script extracts P-values and R^2 values over each frequency band and determines model fits
# Global Vars
# =======
DEV = True #if True: analyze the dev set; if False: analyze the test set ;; DEV is defined on a sentence level using a stepsize of N ;; TEST is the compl... | gpl-2.0 |
iproduct/course-social-robotics | 11-dnn-keras/venv/Lib/site-packages/pandas/tests/io/excel/test_writers.py | 1 | 50521 | from datetime import date, datetime, timedelta
from functools import partial
from io import BytesIO
import os
import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, get_option, set_option
import pandas._testing as tm
from panda... | gpl-2.0 |
cgpotts/cs224u | torch_color_describer.py | 1 | 32758 | import copy
import itertools
import nltk.translate.bleu_score
import numpy as np
import random
from sklearn.metrics import accuracy_score
import torch
import torch.nn as nn
import torch.utils.data
from torch_model_base import TorchModelBase
import utils
from utils import START_SYMBOL, END_SYMBOL, UNK_SYMBOL
__author__... | apache-2.0 |
alorenzo175/pvlib-python | pvlib/test/test_solarposition.py | 1 | 38817 | import calendar
import datetime
import warnings
import numpy as np
import pandas as pd
from pandas.util.testing import assert_frame_equal, assert_series_equal
from numpy.testing import assert_allclose
import pytest
from pvlib.location import Location
from pvlib import solarposition, spa
from conftest import (requir... | bsd-3-clause |
jmmauricio/pypstools | build/lib.linux-x86_64-2.7/pypstools/psse_simulation.py | 1 | 62656 | """ Tools for simulation with PSS/E.
(c) 2015 Juan Manuel Mauricio
"""
from __future__ import division, print_function
import numpy as np
import scipy.linalg
import analysis
import xml.etree.ElementTree as ET
from StringIO import StringIO
import json
# -*- coding: cp1252 -*-
#[dyntools_demo.py] 09/22/100 Demo ... | gpl-3.0 |
opalytics/opalytics-ticdat | ticdat/utils.py | 1 | 40373 | """
general utility module
PEP8
"""
from numbers import Number
from itertools import chain, combinations
from collections import defaultdict
import ticdat
import getopt
import sys
import os
from collections import namedtuple
try:
import pandas as pd
from pandas import DataFrame
except:
pd = DataFrame = No... | bsd-2-clause |
MariusWirtz/TM1py | TM1py/Services/CellService.py | 1 | 40833 | # -*- coding: utf-8 -*-
import collections
import functools
import json
import warnings
from io import StringIO
import pandas as pd
from TM1py.Utils import Utils
from TM1py.Utils.Utils import build_pandas_dataframe_from_cellset, dimension_name_from_element_unique_name, \
CaseAndSpaceInsensitiveTuplesDict
def t... | mit |
haniehrajabi/ryu | ryu/app/openstate/fail_recovery/f_t_parser_ff.py | 1 | 51008 | '''
f_t_parser.py --> OpenState version
f_t_parser_m_f.py --> OpenState version with multiple faults
f_t_parser_ctrl.py --> OpenFlow version: FastFailover detection, in case of fault packets are sent to CTRL in any case and the CTRL reroute them and installs new rules
f_t_pa... | apache-2.0 |
ikki407/stacking | stacking/base.py | 1 | 37281 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
######### General #########
import numpy as np
import pandas as pd
import os, sys, re
import tables
import itertools
import logging
import paratext
######### Problem Type #########
eval_type_list = ('logloss', 'auc', 'rmse')
problem_type_list = ('classification','regres... | mit |
dmccloskey/SBaaS_quantification | SBaaS_quantification/stage01_quantification_peakInformation_io.py | 1 | 36429 | # System
import json,re
# SBaaS
from .stage01_quantification_peakInformation_query import stage01_quantification_peakInformation_query
from .stage01_quantification_MQResultsTable_query import stage01_quantification_MQResultsTable_query
# Resources
from io_utilities.base_importData import base_importData
from io_utilit... | mit |
kgullikson88/gullikson-scripts | kglib/cross_correlation/CCF_Systematics.py | 1 | 37521 | from __future__ import print_function, division, absolute_import
import os
import re
from collections import defaultdict
from operator import itemgetter
import logging
import sys
from scipy.interpolate import InterpolatedUnivariateSpline as spline
from scipy.integrate import quad
from scipy.optimize import minimize_s... | mit |
microsoft/EconML | econml/utilities.py | 1 | 44407 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
"""Utility methods."""
import numpy as np
import pandas as pd
import scipy.sparse
import sparse as sp
import itertools
import inspect
from operator import getitem
from collections import defaultdict, Counter
from sklearn imp... | mit |
kalvdans/scipy | scipy/special/add_newdocs.py | 2 | 158349 | # Docstrings for generated ufuncs
#
# The syntax is designed to look like the function add_newdoc is being
# called from numpy.lib, but in this file add_newdoc puts the
# docstrings in a dictionary. This dictionary is used in
# generate_ufuncs.py to generate the docstrings for the ufuncs in
# scipy.special at the C lev... | bsd-3-clause |
xuewei4d/scikit-learn | sklearn/metrics/tests/test_score_objects.py | 6 | 37682 | from copy import deepcopy
import pickle
import tempfile
import shutil
import os
import numbers
from unittest.mock import Mock
from functools import partial
import numpy as np
import pytest
import joblib
from numpy.testing import assert_allclose
from sklearn.utils._testing import assert_almost_equal
from sklearn.utils... | bsd-3-clause |
xji3/IGCCodonSimulation | Rewrite_CodonGeneconv.py | 1 | 72720 | # Uses Alex Griffing's JsonCTMCTree package for likelihood and gradient calculation
# Re-write of my previous CodonGeneconv class
# commit number: Oct 22nd, 2014 for old package
# cb1ba60ee2b57d6703cd9a3987000c2fd4dd68a5
# commit number: Dec 17th, 2014 for new package
# 33e393a973161e3a29149e82bfda23882b5826f3
... | mit |
Curiosidad-Racional/Python-LaTeX | python/pytex.py | 1 | 277800 | # -*- coding: utf-8 -*-
# from __future__ import division # Deprecated
###############
## ##
## SYMPY ##
## ##
###############
# Functions
from sympy import exp, ln, log, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh, sqrt, root, erf, gamma, Function, FunctionClass
from ... | gpl-3.0 |
ScottFreeLLC/AlphaPy | alphapy/model.py | 1 | 44051 | ################################################################################
#
# Package : AlphaPy
# Module : model
# Created : July 11, 2013
#
# Copyright 2019 ScottFree Analytics LLC
# Mark Conway & Robert D. Scott II
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | apache-2.0 |
tuw-chemistry/measurement_unit | Python_code/final_v1.py | 1 | 41774 | import matplotlib
from matplotlib import style
import matplotlib.animation as animation
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
import tkinter as tk
from tkinter import ttk
from matplotlib import pyplot as plt
import serial.tools.list_ports
import numpy as np
im... | bsd-3-clause |
evanbiederstedt/RRBSfun | epiphen/total_chr13.py | 2 | 32998 | import glob
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 50) # print all rows
import os
os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files")
normalB = glob.glob("binary_position_RRBS_normal_B_cell*")
mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27... | mit |
esatel/ADCPy | adcpy/adcpy_utilities.py | 1 | 104012 | """ Calculations used by the adcpy module such as smoothing, principal flow direction and averaging
This module is independent of adcpy, but is imported by it and is available as adcpy.util.
This tools were abstracted out of other classes, either because of potential for reuse in
recipes, automated scripting or with ... | mit |
alexriss/gridex | gridex.py | 1 | 69583 | """
Grid-ex
Grid Spectroscopy in an IPython environment
Class to read and analyze Nanonis data files (grid spectroscopy) in binary or ASCII file format.
Fitting KPFM (Δf vs. V) curves, IZ spectroscopy curves, multiple Gaussian peaks, linear polynomials and arbitrary functions is implemented.
2015-2017, Alex Riss, G... | gpl-3.0 |
winklerand/pandas | pandas/tests/indexes/datetimes/test_ops.py | 1 | 32620 | import pytz
import pytest
import dateutil
import warnings
import numpy as np
from datetime import datetime
from itertools import product
import pandas as pd
import pandas._libs.tslib as tslib
from pandas._libs.tslibs.offsets import shift_months
import pandas.util.testing as tm
from pandas import (DatetimeIndex, Period... | bsd-3-clause |
Ziqi-Li/bknqgis | pandas/pandas/core/reshape/merge.py | 1 | 56841 | """
SQL-style merge routines
"""
import copy
import warnings
import string
import numpy as np
from pandas.compat import range, lzip, zip, map, filter
import pandas.compat as compat
from pandas import (Categorical, Series, DataFrame,
Index, MultiIndex, Timedelta)
from pandas.core.frame import _mer... | gpl-2.0 |
nigroup/pypet | pypet/parameter.py | 1 | 87529 | """This module contains implementations of result and parameter containers.
Results and parameters are the leaf nodes of the :class:`~pypet.trajectory.Trajectory` tree.
Instances of results can only be found under the subtree `traj.results`, whereas
parameters are used to handle data kept under `traj.config`, `traj.pa... | bsd-3-clause |
jseabold/statsmodels | statsmodels/tsa/statespace/tests/test_sarimax.py | 1 | 103659 | """
Tests for SARIMAX models
Author: Chad Fulton
License: Simplified-BSD
"""
import os
import warnings
from statsmodels.compat.platform import PLATFORM_WIN
import numpy as np
import pandas as pd
import pytest
from statsmodels.tsa.statespace import sarimax, tools
from .results import results_sarimax
from statsmodel... | bsd-3-clause |
harisbal/pandas | pandas/core/arrays/period.py | 1 | 36577 | # -*- coding: utf-8 -*-
from datetime import timedelta
import operator
import numpy as np
from pandas import compat
from pandas.compat.numpy import function as nv
from pandas._libs.tslib import NaT, iNaT
from pandas._libs.tslibs.period import (
Period, IncompatibleFrequency, DIFFERENT_FREQ_INDEX,
get_period_f... | bsd-3-clause |
wlamond/scikit-learn | sklearn/ensemble/gradient_boosting.py | 1 | 76376 | """Gradient Boosted Regression Trees
This module contains methods for fitting gradient boosted regression trees for
both classification and regression.
The module structure is the following:
- The ``BaseGradientBoosting`` base class implements a common ``fit`` method
for all the estimators in the module. Regressio... | bsd-3-clause |
sonnyhu/scikit-learn | sklearn/preprocessing/tests/test_data.py | 1 | 61614 |
# Authors:
#
# Giorgio Patrini
#
# License: BSD 3 clause
import warnings
import numpy as np
import numpy.linalg as la
from scipy import sparse
from distutils.version import LooseVersion
from sklearn.utils import gen_batches
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing im... | bsd-3-clause |
cosmonaut/hp8903 | hp8903.py | 1 | 46276 | #!/usr/bin/python
from gi.repository import Gtk, GObject
from matplotlib.figure import Figure
from matplotlib.backends.backend_gtk3cairo import FigureCanvasGTK3Cairo as FigureCanvas
from matplotlib.backends.backend_gtk3 import NavigationToolbar2GTK3 as NavigationToolbar
from datetime import datetime
import serial
i... | mit |
erjerison/adaptability | github_submission/plot_figure8.py | 1 | 35868 | import matplotlib.pylab as pt
import numpy
import matplotlib.cm as cm
import qtl_detection_adaptability
from calculate_narrow_sense_heritability import narrow_sense_hsq
from calculate_narrow_sense_heritability import narrow_sense_hsq_REML
from calculate_narrow_sense_heritability import rsq
from calculate_nar... | mit |
kensugino/jGEM | jgem/assembler2.py | 1 | 108600 | """
.. module:: assembler2
:synopsis: assemble genes from RNASeq data (reads and junction coverages (bigwig) and junction paths)
jGEM version 2 assembler
.. moduleauthor:: Ken Sugino <ken.sugino@gmail.com>
"""
# system imports
import subprocess
import multiprocessing
import gzip
import os
import time
import... | mit |
libnano/libnano | libnano/ensemblrest.py | 1 | 31964 | # -*- coding: utf-8 -*-
import sys
import io
import os.path
import atexit
from pathlib import Path
from typing import (
List,
Tuple,
Set,
Any,
Union,
NamedTuple
)
from pprint import pprint
import json
import pickle
import copy
import requests
import pandas as pd
from libnano.seqstr import reve... | gpl-2.0 |
MicrosoftGenomics/FaST-LMM | fastlmm/feature_selection/feature_selection_cv.py | 1 | 38663 | """
Created on 2013-07-28
@author: Christian Widmer <chris@shogun-toolbox.org>
@summary: Module for feature selection strategies using efficient caching where possible
"""
# std modules
from collections import defaultdict
import gzip
import bz2
import cPickle
import time
import os
import gc
import subprocess
import ... | apache-2.0 |
QuinnSong/JPG-Tools | src/myPicWorkGUI.py | 1 | 177878 | # -*- coding: cp936 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Jun 5 2014)
## http://www.wxformbuilder.org/
###########################################################################
import wx, os
from PIL import Image, Image... | gpl-3.0 |
lvniqi/tianchi_power | code/train_tensorflow.py | 1 | 39144 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 20 14:34:33 2017
@author: boweiy
"""
import tensorflow as tf
import matplotlib.pyplot as plt
import xgboost as xgb
import numpy as np
import pandas as pd
from preprocess import get_day_all_df,get_month_all_df
from preprocess import load_filtered_day... | mit |
QudevETH/PycQED_py3 | pycqed/analysis_v2/readout_analysis.py | 1 | 113006 | """
File containing analyses for readout.
This includes
- readout discrimination analysis
- single shot readout analysis
- multiplexed readout analysis (to be updated!)
Originally written by Adriaan, updated/rewritten by Rene May 2018
"""
import itertools
import logging
from scipy import stats
log = logg... | mit |
manns/pyspread | pyspread/workflows.py | 1 | 61191 | # -*- coding: utf-8 -*-
# Copyright Martin Manns
# Distributed under the terms of the GNU General Public License
# --------------------------------------------------------------------
# pyspread is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | gpl-3.0 |
NixaSoftware/CVis | venv/lib/python2.7/site-packages/pandas/tests/frame/test_query_eval.py | 3 | 42395 | # -*- coding: utf-8 -*-
from __future__ import print_function
import operator
import pytest
from pandas.compat import (zip, range, lrange, StringIO)
from pandas import DataFrame, Series, Index, MultiIndex, date_range
import pandas as pd
import numpy as np
from numpy.random import randn
from pandas.util.testing imp... | apache-2.0 |
nilmtk/nilmtk | nilmtk/electric.py | 1 | 36546 | import pandas as pd
import numpy as np
from collections import Counter
from warnings import warn
import scipy.spatial as ss
from scipy import fft
from pandas.plotting import lag_plot, autocorrelation_plot
from scipy.special import digamma,gamma
from math import log,pi
import numpy.random as nr
import matplotlib.pyplot ... | apache-2.0 |
garywu/pypedream | tests/__init__.py | 1 | 56968 | import unittest
import sys
import os
import csv
import numpy
import random
import collections
import re
import itertools
import string
import math
import doctest
sys.path.extend(['..', '../dagpype'])
from dagpype import *
import dagpype
if sys.version_info < (3, 0):
from _base2 import RandStateSaverBase as... | bsd-3-clause |
NicholasBermuda/transit-fitting | transitfit/fitter.py | 1 | 42843 | from __future__ import print_function, division
import numpy as np
import pandas as pd
from scipy.optimize import minimize
import os, os.path
import math
import emcee
import pymultinest
from scipy.special import beta
from .utils import transit_lc, batman_lc
import batman
G = 6.67384e-08 #astropy.constants.G.cgs.value... | mit |
quimaguirre/diana | scripts/old_scripts/analyze_results_by_targets.py | 1 | 44022 | import argparse
import copy
import cPickle
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pylab
#from pylab import plot, show, savefig, xlim, figure, hold, ylim, legend, boxplot, setp, axes, xlabel, ylabel
import scipy
import time
import sys, os, re
from sklearn.decomposition import PCA
... | mit |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_histogram2d.py | 1 | 106573 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Histogram2d(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "histogram2d"
_valid_props = {
"autobinx",
"autobiny",
"autocolorscale",
... | mit |
jmmease/pandas | pandas/tests/reshape/test_concat.py | 1 | 78490 | from warnings import catch_warnings
import dateutil
import numpy as np
from numpy.random import randn
from datetime import datetime
from pandas.compat import StringIO, iteritems, PY2
import pandas as pd
from pandas import (DataFrame, concat,
read_csv, isna, Series, date_range,
... | bsd-3-clause |
amolkahat/pandas | pandas/tests/series/test_analytics.py | 1 | 81309 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
from itertools import product
from distutils.version import LooseVersion
import operator
import pytest
from numpy import nan
import numpy as np
import pandas as pd
from pandas import (Series, Categorical, DataFrame, isna, notna,
bdate_range, date_r... | bsd-3-clause |
MJuddBooth/pandas | pandas/core/frame.py | 1 | 295066 | # pylint: disable=E1101
# pylint: disable=W0212,W0703,W0622
"""
DataFrame
---------
An efficient 2D container for potentially mixed-type time series or other
labeled data series.
Similar to its R counterpart, data.frame, except providing automatic data
alignment and a host of useful data manipulation methods having to... | bsd-3-clause |
ogrisel/scipy | scipy/stats/_distn_infrastructure.py | 1 | 108279 | #
# Author: Travis Oliphant 2002-2011 with contributions from
# SciPy Developers 2004-2011
#
from __future__ import division, print_function, absolute_import
from scipy.lib.six import string_types, exec_
import sys
import keyword
import re
import inspect
import types
import warnings
from scipy.misc import... | bsd-3-clause |
boomsbloom/dtm-fmri | DTM/for_gensim/lib/python2.7/site-packages/matplotlib/axes/_axes.py | 1 | 275832 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
from matplotlib.externals import six
from matplotlib.externals.six.moves import reduce, xrange, zip, zip_longest
import math
import warnings
import numpy as np
from numpy import ma
import matplotlib
from mat... | mit |
jsirois/pex | tests/test_integration.py | 1 | 120164 | # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, print_function
import errno
import filecmp
import functools
import glob
import itertools
import json
import multiprocessing
import os
import re
imp... | apache-2.0 |
amccaugh/phidl | phidl/phidl_tutorial_example.py | 1 | 47943 | from __future__ import division, print_function, absolute_import
import numpy as np
from phidl import Device, Layer, LayerSet, make_device
from phidl import quickplot as qp # Rename "quickplot()" to the easier "qp()"
import phidl.geometry as pg
import phidl.routing as pr
import phidl.utilities as pu
#===============... | mit |
amsehili/auditok | auditok/core.py | 1 | 52950 | """
.. autosummary::
:toctree: generated/
load
split
AudioRegion
StreamTokenizer
"""
import os
import math
from .util import AudioReader, DataValidator, AudioEnergyValidator
from .io import check_audio_data, to_file, player_for, get_audio_source
from .exceptions import TooSamllBlockDuration
try:
... | mit |
pyrocko/pyrocko | src/apps/fomosto.py | 1 | 36133 | #!/usr/bin/env python
# http://pyrocko.org - GPLv3
#
# The Pyrocko Developers, 21st Century
# ---|P------/S----------~Lg----------
from __future__ import print_function
import sys
import re
import os.path as op
import logging
import copy
import shutil
from optparse import OptionParser
from pyrocko import util, trace,... | gpl-3.0 |
facebook/prophet | python/prophet/tests/test_prophet.py | 2 | 33407 | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_lit... | mit |
jslhs/sunpy | sunpy/spectra/spectrogram.py | 1 | 32265 | # -*- coding: utf-8 -*-
# Author: Florian Mayer <florian.mayer@bitsrc.org>
""" Classes for spectral analysis. """
from __future__ import absolute_import
import datetime
from random import randint
from itertools import izip
from copy import copy, deepcopy
from math import floor
import numpy as np
from numpy import ... | bsd-2-clause |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/tests/computation/test_eval.py | 1 | 70612 | from distutils.version import LooseVersion
from functools import reduce
from itertools import product
import operator
import warnings
import numpy as np
from numpy.random import rand, randint, randn
import pytest
from pandas.errors import PerformanceWarning
import pandas.util._test_decorators as td
from pandas.core.... | apache-2.0 |
greysAcademicCode/batch-iv-analysis | batch_iv_analysis/gui.py | 1 | 54573 | from batch_iv_analysis.batch_iv_analysis_UI import Ui_batch_iv_analysis
# needed for file watching
import time
# for performance tuning
#import cProfile, pstats, io
#pr = cProfile.Profile()
import math
#TODO: make area editable
from collections import OrderedDict
from itertools import zip_longest
import os, sys,... | mit |
DOV-Vlaanderen/pydov | pydov/search/abstract.py | 1 | 31418 | # -*- coding: utf-8 -*-
"""Module containing the abstract search classes to retrieve DOV data."""
import datetime
from distutils.util import strtobool
import owslib
import pandas as pd
from owslib.etree import etree
from owslib.feature import get_schema
from owslib.fes import FilterRequest
from owslib.wfs import WebF... | mit |
chrissly31415/amimanera | competition_scripts/crowd_features.py | 1 | 32638 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" crawl data
"""
from qsprLib import *
from nltk.stem.porter import PorterStemmer
from bs4 import BeautifulSoup
import re
import difflib
from scipy.spatial.distance import cdist
import itertools
import math
import gensim
from nltk.corpus import wordnet as wn
from nltk... | lgpl-3.0 |
amnona/heatsequer | oldver/analysis.py | 1 | 91719 | #!/usr/bin/env python
# amnonscript
"""
analysis.py
Analyze biom tables
# to setup databases:
import bactdb
import cooldb
db=bactdb.initdb()
cdb=cooldb.loaddb()
exp=analysis.load(tablename='/Users/amnon/Projects/shorttime/short.clean.single.table.txt',mapname='/Users/amnon/Projects/shorttime/map.txt')
analysis.plo... | bsd-3-clause |
chiffa/Colonyzer | colonyzer2/functions.py | 1 | 55204 | import numpy,pandas,PIL,math,os,sys,time,platform
from datetime import datetime
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
from matplotlib.patches import Rectangle
from PIL import Image, ImageDraw, ImageFont
import scipy
from scipy import stats, optimize, ndimage, signal
import... | gpl-3.0 |
cmorgan/zipline | zipline/algorithm.py | 3 | 46947 | #
# Copyright 2014 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 |
google-research/dads | unsupervised_skill_learning/dads_off.py | 1 | 69071 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
CGATOxford/CGATPipelines | CGATPipelines/pipeline_rnaseqqc.py | 1 | 57789 |
"""
====================
RNASeqQC pipeline
====================
Overview
========
This pipeline should be run as the first step in your RNA seq analysis
work flow. It will help detect error and biases within your raw
data. The output of the pipeline can be used to filter out problematic
cells in a standard RNA seq... | mit |
nmartensen/pandas | pandas/tests/plotting/test_frame.py | 3 | 119068 | # coding: utf-8
""" Test cases for DataFrame.plot """
import pytest
import string
import warnings
from datetime import datetime, date
import pandas as pd
from pandas import (Series, DataFrame, MultiIndex, PeriodIndex, date_range,
bdate_range)
from pandas.core.dtypes.api import is_list_like
from ... | bsd-3-clause |
ViennaRNA/forgi | forgi/threedee/model/_ensemble2.py | 1 | 45298 | """
This code is still experimental
"""
from __future__ import absolute_import, unicode_literals
from __future__ import print_function
from __future__ import division
from builtins import (ascii, bytes, chr, dict, filter, hex, input,
map, next, oct, pow, range, round,
str, s... | gpl-3.0 |
akaraspt/deepsleepnet | tensorlayer/files.py | 1 | 31299 | #! /usr/bin/python
# -*- coding: utf8 -*-
import tensorflow as tf
import os
import numpy as np
import re
import sys
import tarfile
import gzip
import zipfile
from . import visualize
from . import nlp
import pickle
from six.moves import urllib
from six.moves import cPickle
from six.moves import zip
from tensorflow.pyt... | apache-2.0 |
mdepasca/miniature-adventure | classes.py | 1 | 32881 | import numpy as np
import os
import sys
import glob
import cPickle
from astropy.io import ascii
from astropy.table import Table, Column, MaskedColumn, vstack, hstack
import time
import argparse
import warnings
import subprocess
warnings.filterwarnings(
'error',
message=".*divide by zero encountered in double_... | unlicense |
vascotenner/holoviews | holoviews/plotting/bokeh/element.py | 1 | 32607 | from io import BytesIO
import numpy as np
import bokeh
import bokeh.plotting
from bokeh.models import Range, HoverTool, Renderer
from bokeh.models.tickers import Ticker, BasicTicker, FixedTicker
from bokeh.models.widgets import Panel, Tabs
try:
from bokeh import mpl
except ImportError:
mpl = None
import param... | bsd-3-clause |
wesm/arrow | python/pyarrow/tests/test_pandas.py | 1 | 157732 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 |
pyspace/test | pySPACE/resources/dataset_defs/performance_result.py | 1 | 70847 | """ Tabular listing data sets, parameters and a huge number of performance metrics
Store and load the performance results of an operation from a csv file,
select subsets of this results or for create various kinds of plots
**Special Static Methods**
:merge_performance_results:
Merge result*.csv files when... | gpl-3.0 |
nontas/menpowidgets | menpowidgets/options.py | 1 | 269317 | import ipywidgets
from IPython.display import display, Javascript
from traitlets.traitlets import Int, Dict, List
from traitlets import link
from collections import OrderedDict
import numpy as np
from base64 import b64decode
from menpo.compatibility import unicode
from .abstract import MenpoWidget
from .tools import ... | bsd-3-clause |
EntilZha/PyFunctional | functional/test/test_functional.py | 1 | 36609 | # pylint: skip-file
import unittest
import array
from collections import namedtuple
from itertools import product
from functional.pipeline import Sequence, is_iterable, _wrap, extend
from functional.transformations import name
from functional import seq, pseq
Data = namedtuple("Data", "x y")
def pandas_is_installed... | mit |
manterd/myPhyloDB | database/views.py | 1 | 133472 | import datetime
from django.contrib import messages
from django.contrib.auth.models import User
from django.contrib.auth.hashers import check_password
from django.contrib.auth.decorators import login_required, user_passes_test
from django.contrib.auth.signals import user_logged_in
from django.db import transaction
from... | gpl-3.0 |
lcpt/xc | python_modules/materials/concrete_base.py | 1 | 46343 | # -*- coding: utf-8 -*-
''' Base classes for reinforced concrete materials.'''
from __future__ import division
__author__= "Ana Ortega (AO_O) and Luis C. Pérez Tato (LCPT)"
__copyright__= "Copyright 2015, AO_O and LCPT"
__license__= "GPL"
__version__= "3.0"
__email__= " ana.Ortega.Ort@gmail.com, l.pereztato@gmail.com"... | gpl-3.0 |
iLoop2/ResInsight | ThirdParty/Ert/devel/python/python/ert/ecl/ecl_sum.py | 1 | 39098 | # Copyright (C) 2011 Statoil ASA, Norway.
#
# The file 'ecl_sum.py' is part of ERT - Ensemble based Reservoir Tool.
#
# ERT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of t... | gpl-3.0 |
DigitalSlideArchive/HistomicsTK | histomicstk/annotations_and_masks/annotations_to_masks_handler.py | 1 | 37404 | """
Created on Mon Aug 12 18:33:48 2019.
@author: tageldim
"""
import os
import numpy as np
from pandas import DataFrame
from imageio import imwrite
from shapely.geometry.polygon import Polygon
try:
import matplotlib.pyplot as plt
except ImportError:
pass
from matplotlib.patches import Polygon as mpPolygon
i... | apache-2.0 |
kenshay/ImageScripter | ProgramData/SystemFiles/Python/Lib/site-packages/dask/base.py | 2 | 31027 | from __future__ import absolute_import, division, print_function
from collections import OrderedDict
from functools import partial
from hashlib import md5
from operator import getitem
import inspect
import pickle
import os
import threading
import uuid
import warnings
from toolz import merge, groupby, curry, identity
... | gpl-3.0 |
gameduell/dask | dask/array/core.py | 1 | 123082 | from __future__ import absolute_import, division, print_function
from bisect import bisect
from collections import Iterable, MutableMapping
from collections import Iterator
from functools import partial, wraps
import inspect
from itertools import product
from numbers import Number
import operator
from operator import ... | bsd-3-clause |
quantopian/zipline | zipline/pipeline/factors/factor.py | 1 | 63998 | """
factor.py
"""
from operator import attrgetter
from numbers import Number
from math import ceil
from textwrap import dedent
from numpy import empty_like, inf, isnan, nan, where
from scipy.stats import rankdata
from zipline.utils.compat import wraps
from zipline.errors import (
BadPercentileBounds,
UnknownR... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.