qdesc 0.1.8__tar.gz → 0.1.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of qdesc might be problematic. Click here for more details.
- {qdesc-0.1.8/qdesc.egg-info → qdesc-0.1.8.1}/PKG-INFO +25 -4
- qdesc-0.1.8/PKG-INFO → qdesc-0.1.8.1/README.md +94 -82
- qdesc-0.1.8/README.md → qdesc-0.1.8.1/qdesc.egg-info/PKG-INFO +103 -73
- {qdesc-0.1.8 → qdesc-0.1.8.1}/setup.py +1 -1
- {qdesc-0.1.8 → qdesc-0.1.8.1}/LICENCE.txt +0 -0
- {qdesc-0.1.8 → qdesc-0.1.8.1}/qdesc/__init__.py +0 -0
- {qdesc-0.1.8 → qdesc-0.1.8.1}/qdesc.egg-info/SOURCES.txt +0 -0
- {qdesc-0.1.8 → qdesc-0.1.8.1}/qdesc.egg-info/dependency_links.txt +0 -0
- {qdesc-0.1.8 → qdesc-0.1.8.1}/qdesc.egg-info/top_level.txt +0 -0
- {qdesc-0.1.8 → qdesc-0.1.8.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qdesc
|
|
3
|
-
Version: 0.1.8
|
|
3
|
+
Version: 0.1.8.1
|
|
4
4
|
Summary: Quick and Easy way to do descriptive analysis.
|
|
5
5
|
Author: Paolo Hilado
|
|
6
6
|
Author-email: datasciencepgh@proton.me
|
|
@@ -53,15 +53,36 @@ Run the function qd.freqdist_to_excel(df, "Name of file.xlsx", ascending = FALSE
|
|
|
53
53
|
* Counts - the number of observations
|
|
54
54
|
* Percentage - percentage of observations from total.
|
|
55
55
|
|
|
56
|
+
## qd.normcheck_dashboard Function
|
|
57
|
+
Run the function qd.normcheck_dashboard(df) to efficiently check each numeric variable for normality of its distribution. It will compute the Anderson-Darling statistic and
|
|
58
|
+
create visualizations (i.e., qq-plot, histogram, and boxplots) for checking whether the distribution is approximately normal.
|
|
59
|
+
|
|
56
60
|
|
|
57
61
|
Later versions will include data visualizations handy for exploring the distribution of the data set.
|
|
58
62
|
|
|
59
63
|
## Installation
|
|
60
64
|
pip install qdesc
|
|
61
65
|
|
|
62
|
-
##
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
## Sample use of qdesc functions
|
|
67
|
+
# Creating a sample dataframe
|
|
68
|
+
import pandas as pd
|
|
69
|
+
import numpy as np
|
|
70
|
+
|
|
71
|
+
# Set seed for reproducibility
|
|
72
|
+
np.random.seed(21)
|
|
73
|
+
|
|
74
|
+
# Create two continuous variables
|
|
75
|
+
var1 = np.random.normal(loc=0, scale=1, size=1000) # Normal distribution
|
|
76
|
+
var2 = np.random.uniform(low=10, high=50, size=1000) # Uniform distribution
|
|
77
|
+
|
|
78
|
+
# Create DataFrame
|
|
79
|
+
df = pd.DataFrame({
|
|
80
|
+
'Normal_Variable': var1,
|
|
81
|
+
'Uniform_Variable': var2
|
|
82
|
+
})
|
|
83
|
+
# Using the qdesc function
|
|
84
|
+
import qdesc as qd
|
|
85
|
+
qd.desc(df)
|
|
65
86
|
|
|
66
87
|
## License
|
|
67
88
|
This project is licensed under the GPL-3 License. See the LICENSE file for more details.
|
|
@@ -1,82 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
1
|
+
# qdesc - Quick and Easy Descriptive Analysis
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
This is a package for quick and easy descriptive analysis.
|
|
5
|
+
Required packages include: pandas, numpy, and SciPy version 1.14.1
|
|
6
|
+
Be sure to run the following prior to using the "qd.desc" function:
|
|
7
|
+
|
|
8
|
+
- import pandas as pd
|
|
9
|
+
- import numpy as np
|
|
10
|
+
- from scipy.stats import anderson
|
|
11
|
+
- import qdesc as qd
|
|
12
|
+
|
|
13
|
+
The qdesc package provides a quick and easy approach to do descriptive analysis for quantitative data.
|
|
14
|
+
|
|
15
|
+
## qd.desc Function
|
|
16
|
+
Run the function qd.desc(df) to get the following statistics:
|
|
17
|
+
* count - number of observations
|
|
18
|
+
* mean - measure of central tendency for normal distribution
|
|
19
|
+
* std - measure of spread for normal distribution
|
|
20
|
+
* median - measure of central tendency for skewed distributions or those with outliers
|
|
21
|
+
* MAD - measure of spread for skewed distributions or those with outliers; this is manual Median Absolute Deviation (MAD) which is more robust when dealing with non-normal distributions.
|
|
22
|
+
* min - lowest observed value
|
|
23
|
+
* max - highest observed value
|
|
24
|
+
* AD_stat - Anderson - Darling Statistic
|
|
25
|
+
* 5% crit_value - critical value for a 5% Significance Level
|
|
26
|
+
* 1% crit_value - critical value for a 1% Significance Level
|
|
27
|
+
|
|
28
|
+
## qd.freqdist Function
|
|
29
|
+
Run the function qd.freqdist(df, "Variable Name") to easily create a frequency distribution for your chosen categorical variable with the following:
|
|
30
|
+
* Variable Levels (i.e., for Sex Variable: Male and Female)
|
|
31
|
+
* Counts - the number of observations
|
|
32
|
+
* Percentage - percentage of observations from total.
|
|
33
|
+
|
|
34
|
+
## qd.freqdist_a Function
|
|
35
|
+
Run the function qd.freqdist_a(df, ascending = FALSE) to easily create frequency distribution tables, arranged in descending manner (default) or ascending (TRUE), for all
|
|
36
|
+
the categorical variables in your data frame. The resulting table will include columns such as:
|
|
37
|
+
* Variable levels (i.e., for Satisfaction: Very Low, Low, Moderate, High, Very High)
|
|
38
|
+
* Counts - the number of observations
|
|
39
|
+
* Percentage - percentage of observations from total.
|
|
40
|
+
|
|
41
|
+
## qd.freqdist_to_excel Function
|
|
42
|
+
Run the function qd.freqdist_to_excel(df, "Name of file.xlsx", ascending = FALSE ) to easily create frequency distribution tables, arranged in descending manner (default) or ascending (TRUE), for all the categorical variables in your data frame and SAVED as separate sheets in the .xlsx File. The resulting table will include columns such as:
|
|
43
|
+
* Variable levels (i.e., for Satisfaction: Very Low, Low, Moderate, High, Very High)
|
|
44
|
+
* Counts - the number of observations
|
|
45
|
+
* Percentage - percentage of observations from total.
|
|
46
|
+
|
|
47
|
+
## qd.normcheck_dashboard Function
|
|
48
|
+
Run the function qd.normcheck_dashboard(df) to efficiently check each numeric variable for normality of its distribution. It will compute the Anderson-Darling statistic and
|
|
49
|
+
create visualizations (i.e., qq-plot, histogram, and boxplots) for checking whether the distribution is approximately normal.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
Later versions will include data visualizations handy for exploring the distribution of the data set.
|
|
53
|
+
|
|
54
|
+
## Installation
|
|
55
|
+
pip install qdesc
|
|
56
|
+
|
|
57
|
+
## Sample use of qdesc functions
|
|
58
|
+
# Creating a sample dataframe
|
|
59
|
+
import pandas as pd
|
|
60
|
+
import numpy as np
|
|
61
|
+
|
|
62
|
+
# Set seed for reproducibility
|
|
63
|
+
np.random.seed(21)
|
|
64
|
+
|
|
65
|
+
# Create two continuous variables
|
|
66
|
+
var1 = np.random.normal(loc=0, scale=1, size=1000) # Normal distribution
|
|
67
|
+
var2 = np.random.uniform(low=10, high=50, size=1000) # Uniform distribution
|
|
68
|
+
|
|
69
|
+
# Create DataFrame
|
|
70
|
+
df = pd.DataFrame({
|
|
71
|
+
'Normal_Variable': var1,
|
|
72
|
+
'Uniform_Variable': var2
|
|
73
|
+
})
|
|
74
|
+
# Using the qdesc function
|
|
75
|
+
import qdesc as qd
|
|
76
|
+
qd.desc(df)
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
This project is licensed under the GPL-3 License. See the LICENSE file for more details.
|
|
80
|
+
|
|
81
|
+
## Acknowledgements
|
|
82
|
+
Acknowledgement of the libraries used by this package...
|
|
83
|
+
|
|
84
|
+
### Pandas
|
|
85
|
+
Pandas is distributed under the BSD 3-Clause License, pandas is developed by Pandas contributors. Copyright (c) 2008-2024, the pandas development team All rights reserved.
|
|
86
|
+
### NumPy
|
|
87
|
+
NumPy is distributed under the BSD 3-Clause License, numpy is developed by NumPy contributors. Copyright (c) 2005-2024, NumPy Developers. All rights reserved.
|
|
88
|
+
### SciPy
|
|
89
|
+
SciPy is distributed under the BSD License, scipy is developed by SciPy contributors. Copyright (c) 2001-2024, SciPy Developers. All rights reserved.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
@@ -1,73 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
##
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: qdesc
|
|
3
|
+
Version: 0.1.8.1
|
|
4
|
+
Summary: Quick and Easy way to do descriptive analysis.
|
|
5
|
+
Author: Paolo Hilado
|
|
6
|
+
Author-email: datasciencepgh@proton.me
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENCE.txt
|
|
9
|
+
|
|
10
|
+
# qdesc - Quick and Easy Descriptive Analysis
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
This is a package for quick and easy descriptive analysis.
|
|
14
|
+
Required packages include: pandas, numpy, and SciPy version 1.14.1
|
|
15
|
+
Be sure to run the following prior to using the "qd.desc" function:
|
|
16
|
+
|
|
17
|
+
- import pandas as pd
|
|
18
|
+
- import numpy as np
|
|
19
|
+
- from scipy.stats import anderson
|
|
20
|
+
- import qdesc as qd
|
|
21
|
+
|
|
22
|
+
The qdesc package provides a quick and easy approach to do descriptive analysis for quantitative data.
|
|
23
|
+
|
|
24
|
+
## qd.desc Function
|
|
25
|
+
Run the function qd.desc(df) to get the following statistics:
|
|
26
|
+
* count - number of observations
|
|
27
|
+
* mean - measure of central tendency for normal distribution
|
|
28
|
+
* std - measure of spread for normal distribution
|
|
29
|
+
* median - measure of central tendency for skewed distributions or those with outliers
|
|
30
|
+
* MAD - measure of spread for skewed distributions or those with outliers; this is manual Median Absolute Deviation (MAD) which is more robust when dealing with non-normal distributions.
|
|
31
|
+
* min - lowest observed value
|
|
32
|
+
* max - highest observed value
|
|
33
|
+
* AD_stat - Anderson - Darling Statistic
|
|
34
|
+
* 5% crit_value - critical value for a 5% Significance Level
|
|
35
|
+
* 1% crit_value - critical value for a 1% Significance Level
|
|
36
|
+
|
|
37
|
+
## qd.freqdist Function
|
|
38
|
+
Run the function qd.freqdist(df, "Variable Name") to easily create a frequency distribution for your chosen categorical variable with the following:
|
|
39
|
+
* Variable Levels (i.e., for Sex Variable: Male and Female)
|
|
40
|
+
* Counts - the number of observations
|
|
41
|
+
* Percentage - percentage of observations from total.
|
|
42
|
+
|
|
43
|
+
## qd.freqdist_a Function
|
|
44
|
+
Run the function qd.freqdist_a(df, ascending = FALSE) to easily create frequency distribution tables, arranged in descending manner (default) or ascending (TRUE), for all
|
|
45
|
+
the categorical variables in your data frame. The resulting table will include columns such as:
|
|
46
|
+
* Variable levels (i.e., for Satisfaction: Very Low, Low, Moderate, High, Very High)
|
|
47
|
+
* Counts - the number of observations
|
|
48
|
+
* Percentage - percentage of observations from total.
|
|
49
|
+
|
|
50
|
+
## qd.freqdist_to_excel Function
|
|
51
|
+
Run the function qd.freqdist_to_excel(df, "Name of file.xlsx", ascending = FALSE ) to easily create frequency distribution tables, arranged in descending manner (default) or ascending (TRUE), for all the categorical variables in your data frame and SAVED as separate sheets in the .xlsx File. The resulting table will include columns such as:
|
|
52
|
+
* Variable levels (i.e., for Satisfaction: Very Low, Low, Moderate, High, Very High)
|
|
53
|
+
* Counts - the number of observations
|
|
54
|
+
* Percentage - percentage of observations from total.
|
|
55
|
+
|
|
56
|
+
## qd.normcheck_dashboard Function
|
|
57
|
+
Run the function qd.normcheck_dashboard(df) to efficiently check each numeric variable for normality of its distribution. It will compute the Anderson-Darling statistic and
|
|
58
|
+
create visualizations (i.e., qq-plot, histogram, and boxplots) for checking whether the distribution is approximately normal.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
Later versions will include data visualizations handy for exploring the distribution of the data set.
|
|
62
|
+
|
|
63
|
+
## Installation
|
|
64
|
+
pip install qdesc
|
|
65
|
+
|
|
66
|
+
## Sample use of qdesc functions
|
|
67
|
+
# Creating a sample dataframe
|
|
68
|
+
import pandas as pd
|
|
69
|
+
import numpy as np
|
|
70
|
+
|
|
71
|
+
# Set seed for reproducibility
|
|
72
|
+
np.random.seed(21)
|
|
73
|
+
|
|
74
|
+
# Create two continuous variables
|
|
75
|
+
var1 = np.random.normal(loc=0, scale=1, size=1000) # Normal distribution
|
|
76
|
+
var2 = np.random.uniform(low=10, high=50, size=1000) # Uniform distribution
|
|
77
|
+
|
|
78
|
+
# Create DataFrame
|
|
79
|
+
df = pd.DataFrame({
|
|
80
|
+
'Normal_Variable': var1,
|
|
81
|
+
'Uniform_Variable': var2
|
|
82
|
+
})
|
|
83
|
+
# Using the qdesc function
|
|
84
|
+
import qdesc as qd
|
|
85
|
+
qd.desc(df)
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
This project is licensed under the GPL-3 License. See the LICENSE file for more details.
|
|
89
|
+
|
|
90
|
+
## Acknowledgements
|
|
91
|
+
Acknowledgement of the libraries used by this package...
|
|
92
|
+
|
|
93
|
+
### Pandas
|
|
94
|
+
Pandas is distributed under the BSD 3-Clause License, pandas is developed by Pandas contributors. Copyright (c) 2008-2024, the pandas development team All rights reserved.
|
|
95
|
+
### NumPy
|
|
96
|
+
NumPy is distributed under the BSD 3-Clause License, numpy is developed by NumPy contributors. Copyright (c) 2005-2024, NumPy Developers. All rights reserved.
|
|
97
|
+
### SciPy
|
|
98
|
+
SciPy is distributed under the BSD License, scipy is developed by SciPy contributors. Copyright (c) 2001-2024, SciPy Developers. All rights reserved.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|