PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, October 7, 2022

[FIXED] Why is .describe show the the descriptive statistic with exponents?

 October 07, 2022     describe, exponential, python, statistics     No comments   

Issue

Descriptive Stats in Exponential form pixHello there thanks in advance for reading. I am probably making a mistake but I was wondering why when I try to get descriptive statistics it gives them in exponential form. This is quite cumbersome to read. I have previously went through to remove the commas does that have anything to do with it.

I really would just like to have it present in plain interger form with no commas or decimals

I am sorry I didn't explain this well enough. This is my first post on stack and I am excited to be a part of the community.


Solution

You could try using round:

df["column"].describe().round(1)

Scientific notation is used to display very large or small values, so probably this happened because of the range of your values



Answered By - aaossa
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing