Python Forum

Full Version: Balance Data in Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

1)How to balance data which is in proportion of 96 is to 4.

2)How do you find out categorical columns from the below dataset
7 0 2 2 5 1 0 0 1 0 0 0 0 0 0 0 11 0 1 0 0.7 0.2 0.718070331 10 1 -1 0 1 4 1 0 0 1 12 2 0.4 0.883678918 0.370809924 3.605551276 0.6 0.5 0.2 3 1 10 1 10 1 5 9 1 5 8 0 1 1 0 0 1

9 0 1 1 7 0 0 0 0 1 0 0 0 0 0 0 3 0 0 1 0.8 0.4 0.766077672 11 1 -1 0 -1 11 1 1 2 1 19 3 0.316227766 0.618816519 0.388715835 2.449489743 0.3 0.1 0.3 2 1 9 5 8 1 7 3 1 1 9 0 1 1 0 1 0

13 0 5 4 9 1 0 0 0 1 0 0 0 0 0 0 12 1 0 0 0 0 -1 7 1 -1 0 -1 14 1 1 2 1 60 1 0.316227766 0.641585716 0.347275107 3.31662479 0.5 0.7 0.1 2 2 9 1 8 2 7 4 2 7 7 0 1 1 0 1 0

and What should be the preferred way in this case to balance the data with respect to above dataset

3) What is Interval data and Ordinal data in Python
Please provide:
4) What have you tried so far?
5) Show code.