Skip to content

Instantly share code, notes, and snippets.

View marnunez's full-sized avatar

Marcos Alfredo Núñez marnunez

  • Radius
  • Buenos Aires, Argentina
View GitHub Profile
@marnunez
marnunez / Normality.py
Last active February 14, 2020 08:19
Normality assessment tools
from scipy.stats import shapiro, normaltest, anderson, norm
from statsmodels.graphics.gofplots import qqplot
import seaborn as sns
from colorama import Fore
import matplotlib.pyplot as plt
import numpy as np
sns.set(color_codes=True)
def check_shapiro(data, alpha=0.05):
use chrono::NaiveDateTime;
use deku::{
bitvec::{BitSlice, BitVec, BitView, Msb0},
prelude::*,
};
#[derive(Debug)]
pub struct TimeT(NaiveDateTime);
impl<'a> DekuRead<'a> for TimeT {