ABalytics 1.2__tar.gz → 1.2.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abalytics
3
- Version: 1.2
3
+ Version: 1.2.1
4
4
  Summary: Advanced A/B Testing Statistical Analytics
5
5
  Author: Janis Berneker
6
6
  License: LICENSE
@@ -181,6 +181,7 @@ def get_results_pretty_text(
181
181
  min_sample_size: int = 25,
182
182
  header: bool = True,
183
183
  identifiers: Optional[List[str]] = None,
184
+ show_only_significant_results: bool = False,
184
185
  ):
185
186
  """
186
187
  Returns a text with the results of the statistical significance tests.
@@ -193,6 +194,7 @@ def get_results_pretty_text(
193
194
  min_sample_size (int, optional): The minimum sample size for the data. Defaults to 25.
194
195
  header (bool, optional): A boolean flag indicating if the header of the pretty text table should be included. Defaults to True.
195
196
  identifiers (list of str, optional): A list of strings that are to be used for identifying the data. Defaults to [].
197
+ show_only_significant_results (bool, optional): A boolean flag indicating if only significant results should be shown. Defaults to False.
196
198
 
197
199
  Returns:
198
200
  str: A formatted text string with the results of the statistical significance tests.
@@ -204,7 +206,6 @@ def get_results_pretty_text(
204
206
  significant_results = analysis_results.significant_results
205
207
  info = analysis_results.info
206
208
  sample_size = analysis_results.sample_size
207
- dichotomous_flag = analysis_results.dichotomous_flag
208
209
  levene_flag = analysis_results.levene_flag
209
210
  gaussian_flag = analysis_results.gaussian_flag
210
211
 
@@ -235,9 +236,13 @@ def get_results_pretty_text(
235
236
  output_results.append(
236
237
  f"{len(identifier_string) * ' '}{sample_size:>10} {levene_output:<6} {gaussian_output:<8} {result.result_pretty_text}"
237
238
  )
238
- else:
239
+ elif not show_only_significant_results:
239
240
  output_results.append(
240
241
  f"{identifier_string}{sample_size:>10} {levene_output:<6} {gaussian_output:<8} {info}"
241
242
  )
243
+ else:
244
+ output_results.append(
245
+ f"{identifier_string}{sample_size:>10} {levene_output:<6} {gaussian_output:<8}"
246
+ )
242
247
  output_string += "\n".join(output_results)
243
248
  return output_string
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: abalytics
3
- Version: 1.2
3
+ Version: 1.2.1
4
4
  Summary: Advanced A/B Testing Statistical Analytics
5
5
  Author: Janis Berneker
6
6
  License: LICENSE
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='abalytics',
5
- version='1.2',
5
+ version='1.2.1',
6
6
  author='Janis Berneker',
7
7
  packages=find_packages(),
8
8
  license='LICENSE',
File without changes
File without changes
File without changes
File without changes