- MacOS Sierra v10.12.6
- PyCharm Community 2018.3
- Python v3.6.8
- Matplotlib v2.2.3
- This snippet hangs in PyCharm:
import numpy as np | |
import numba | |
import xarray as xr | |
@numba.jit(nopython=True) | |
def lowess_1d(y, x, alpha=2. / 3., it=10): | |
"""lowess(x, y, f=2./3., iter=3) -> yest | |
Lowess smoother: Robust locally weighted regression. | |
The lowess function fits a nonparametric regression curve to a scatterplot. | |
The arrays x and y contain an equal number of elements; each pair |
#Set Operations applied to pandas DataFrames | |
import pandas as pd | |
#(1)-Defining the DataFrames | |
# 1.1 Python students | |
P = pd.DataFrame ({"name":["Elizabeth","Darcy"], | |
"email":["bennet@xyz.com","darcy@acmecorpus.com"]}) | |
# 1.2 SQL students |
import holoviews as hv | |
hv.notebook_extension('bokeh') | |
import param | |
from holoviews.operation.datashader import datashade, dynspread | |
import colorcet as cc | |
import datashader | |
import numpy as np | |
import pandas as pd |
#! /usr/bin/env python | |
import matplotlib | |
import matplotlib.pyplot as plt | |
matplotlib.style.use("ggplot") | |
import numpy as np | |
import time | |
def newfig(l): |