Usuwanie duplikatów w Python/ Numpy

A = np.array([[1,2],[1,1],[1,3],[2,5],[2,6],[2,7]]) def por(x,y): if (x[0] == y[0]): return False else: return True for i in range(6): for j in range(6): if (por(A[i],A[j]) == False) and i != j: A[j] = [0,0] print(A,”\n”) A=A[~np.all(A==0,axis=1)]...

Rozkład normalny – test w Python

import seaborn as sns import numpy as np. import scipy as sp import matplotlib.pyplot as plt from statsmodels.distributions.empirical_distribution import ECDF tips = sns.load_dataset(’tips’) print(tips.head()) tips[’logtip’] = np.log(tips.tip)...