metacountregressor 0.1.147__tar.gz → 0.1.148__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/PKG-INFO +1 -1
  2. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/helperprocess.py +5 -7
  3. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor.egg-info/PKG-INFO +1 -1
  4. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/LICENSE.txt +0 -0
  5. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/README.rst +0 -0
  6. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/__init__.py +0 -0
  7. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/_device_cust.py +0 -0
  8. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/app_main.py +0 -0
  9. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/data_split_helper.py +0 -0
  10. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/halton.py +0 -0
  11. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/main.py +0 -0
  12. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/main_old.py +0 -0
  13. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/metaheuristics.py +0 -0
  14. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/pareto_file.py +0 -0
  15. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/pareto_logger__plot.py +0 -0
  16. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/setup.py +0 -0
  17. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/single_objective_finder.py +0 -0
  18. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/solution.py +0 -0
  19. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor/test_generated_paper2.py +0 -0
  20. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor.egg-info/SOURCES.txt +0 -0
  21. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor.egg-info/dependency_links.txt +0 -0
  22. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor.egg-info/not-zip-safe +0 -0
  23. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor.egg-info/requires.txt +0 -0
  24. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/metacountregressor.egg-info/top_level.txt +0 -0
  25. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/setup.cfg +0 -0
  26. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/setup.py +0 -0
  27. {metacountregressor-0.1.147 → metacountregressor-0.1.148}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.147
3
+ Version: 0.1.148
4
4
  Summary: Extensions for a Python package for estimation of count models.
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern
@@ -302,16 +302,14 @@ def transform_dataframe(df, config):
302
302
  for column, settings in config.items():
303
303
  if settings['type'] == 'bin':
304
304
  # Apply binning
305
- binned = pd.cut(
306
- binned = df[column],
307
- bins=settings['bins'],
305
+ binned_d = pd.cut(
306
+ df[column],
307
+ bins=sorted(set(settings['bins'])), # Remove duplicate bins
308
308
  labels=settings['labels'],
309
- right=False,
310
- duplicates='drop'
311
-
309
+ right=False # Adjust based on your requirements
312
310
  )
313
311
  # One-hot encode the binned column
314
- binned_dummies = pd.get_dummies(binned, prefix=settings['prefix'])
312
+ binned_dummies = pd.get_dummies(binned_d, prefix=settings['prefix'])
315
313
  output_df = pd.concat([output_df, binned_dummies], axis=1)
316
314
 
317
315
  elif settings['type'] == 'one-hot':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: metacountregressor
3
- Version: 0.1.147
3
+ Version: 0.1.148
4
4
  Summary: Extensions for a Python package for estimation of count models.
5
5
  Home-page: https://github.com/zahern/CountDataEstimation
6
6
  Author: Zeke Ahern