statistics

How to loop over all columns and check data distribution using Fitter library?

How to loop over all columns and check data distribution using Fitter library? Question: I need to check data distributions of all my numeric columns in a dataset. I chose Fitter library to do so. I loop over all columns but have only one plot+summary table as an outcome instead. What is wrong with my …

Total answers: 1

why does the program return different value when I order the list differently?

why does the program return different value when I order the list differently? Question: Im trying to learn how to analyze large data better, and I wanted to make a program where by inputting a CSV of keywords you can look for the occurance of each in a second data csv. I setup this code …

Total answers: 2

Python Calculating Standard Deviation using SQLLite db data with statistics library

Python Calculating Standard Deviation using SQLLite db data with statistics library Question: I am able to get data of the column I want but I cant use its data, because it is in tuple form, to calculate its standard deviation. I get following errors. cursor.execute("select SMA from PRICES") smaColum = cursor.fetchall() std = statistics.stdev(smaColum) return …

Total answers: 1

Calculate standard deviation and number of samples and add to dictionary

Calculate statistics Question: 1 If I have a number of files like this: see image Inside each folder is 3 more like this: see image Now inside each of these folders is a .txt file that looks like this: see image For each of the .txt files I need to get the value from the …

Total answers: 1

Calculate percentile with column values

Calculate percentile with column values Question: first of all, in case I comment on any mistakes while writing this, sorry, English is not my first language. So I started to study data science and data visualization in sports with Python just for hobby, I’m a really begginer on this. I want to calculate the percentile …

Total answers: 2

ModuleNotFoundError: No module named 'skfeature'

ModuleNotFoundError: No module named 'skfeature' Question: I am unable to import fisher score from skfeature.function.similiarity_based. Is there a problem in my code below? from skfeature.function.similarity_based import fisher_score ranks = fisher_score(X,Y) feature_importance = pd.Series(ranks,df.columns[0:len(df.columns) – 1]) feature_importance.plot(kind = ‘barh’, color = ‘magenta’) plt.show() I’m working on Kaggle notebook not locally. I’ve tried installing it using pip …

Total answers: 1

How to access the ActiveMQ "Classic" statistics plugin in Python

How to access the ActiveMQ "Classic" statistics plugin in Python Question: I referred to the ActiveMQ "Classic" documentation to get statistics of broker/queues and create some analysis based on the statistics. I am not able to fetch the stats with following code snippet. Code snippet:: self.conn = stomp.Connection([(‘localhost’, 61616)] , keepalive=True, try_loopback_connect=True, reconnect_attempts_max=3,) self.conn.set_listener("testlistener", TestListener(print_to_log=True)) …

Total answers: 1

Computing KL-divergence over 2 estimated gaussian KDEs

Computing KL-divergence over 2 estimated gaussian KDEs Question: I have two datasets with the same features and would like to estimate the "distance of distributions" between the two datasets. I had the idea to estimate a gaussian KDE in each of the datasets and computing the KL-divergence between the estimated KDEs. However, I am struggling …

Total answers: 1