How to separate Data Frame into Categorical and numeric Columns

How to separate Data Frame into Categorical and numeric Columns 


Object variables are similar to a string, numeric, and integer variables; they act as holders for data. An object variable is a universal holder; it can contain any kind of data. Object variables are distinguished from other variable types by an exclamation mark at the end of the name.

There are four distinct numeric types: plain integers, long integers, floating-point numbers, and complex numbers. In addition, Booleans are a subtype of plain integers. Plain integers (also just called integers) are implemented using long in C, which gives them at least 32 bits of precision (sys.maxint is always set to the maximum plain integer value for the current platform, the minimum value is -sys.maxint - 1). Long integers have unlimited precision. Floating-point numbers are usually implemented using double in C; information about the precision and internal representation of floating-point numbers for the machine on which your program is running is available in sys.float_info. Complex numbers have a real and imaginary part, which are each a floating-point number. To extract these parts from a complex number z, use z.real and z.imag. (The standard library includes additional numeric types, fractions that hold rationals, and decimals that hold floating-point numbers with user-definable precision.)





Output :





Comments

Popular posts from this blog

Health Insurance Fraud Claim Detection