Relative Content

Tag Archive for pythondata-analysis

after using Box-Cox in Python the data goes to infinity

after using Box-Cox Conversion in Python the data goes to infinity
It initializes an empty DataFrame df_boxcox to store transformed data.
For each numeric column:
It plots the histogram of the column before transformation.
It applies the Box-Cox transformation to the column to make its distribution closer to normal. This includes shifting the data to ensure all values are positive, then applying the transformation.
It plots the histogram of the transformed column.
It prints summary statistics of the transformed data
https://colab.research.google.com/drive/18_F6lKB1F29H2CJ5pKqpQU7tdISJB0If?usp=sharing