I have created a new calculated numeric column to my df. When I run describe function on this new column, I get all numbers with decimal placed in wrong place. For example, I get count as 2.04, when I know that df has 204 rows. When I run describe on the whole df, for all other variables I get count as 204, while for this one I get as 2.04. Is this because I dont have my variable in correct format? dtypes tells me it is a float64 type, which is what I expected. Could someone please help me understand and fix this?
describe giving wrong format numbers
163 Views Asked by user18334254 At
1
There are 1 best solutions below
Related Questions in PANDAS
- ModuleNotFoundError on .ipynb
- Str object is not callable in pandas
- Need help realigning python fill_between with data points
- AttributeError: module 'numba' has no attribute 'generated_jit'
- Fix error when assigning a list of values to dataframe row
- How to make pandas show large datasets in output?
- merge dataframe but do not sort by merge key
- vim python omnifunc not working some modules
- Preserving DataFrame Modifications Across Options in a Streamlit Application
- How to join 2 datasets by looking up based on a string (full match or part match)
- Python Pandas getting hierarchy path till top management
- How to convert pandas series to integer for use in datetime.fromisocalendar
- reformat numbers stored in array
- How can I resolve this error and work smoothly in deep learning?
- What is the best way to merge two dataframes that one of them has date ranges and the other one has date WITHOUT any shared columns?
Related Questions in FORMAT
- C++: Prevent method from expanding too early when passed as argument
- I am using the bash terminal in VS Code, I am new to coding, and the terminal displays very differently, how do I get them to match?
- How to assign a value to a string variable, that includes embedded '=' in the value
- VSCode not autoformating R lintr suggestions
- How to preserve json file format when writing a file
- Python search for the errors in the JSON
- Combine an audio and a text file as one single file
- SSRS - Do not want to round a percent
- Date Format mdy vs dmy
- command in bash contains printf but the format is not hand over to variable
- How can I change the dateformat of dateColumn in react-datasheet-grid
- How to format float to omit zeros at the end of the fraction
- R for loop to display mean and max of each row in a matrix
- Formatting IMF IFS data in R
- Having trouble setting x-axis endpoints in proc univariate
Related Questions in DESCRIBE
- Python - Pandas - What is the exact formula for percentile calculation by describe() method?
- running a script on an entire folder
- Is there a way to prevent springboot aplications to try to describe topics for which they have no permission
- describe() giving error: Error in rep(")", length(fp) - 1) : invalid 'times' argument, on a big dataframe
- I need a way to use SUM in a loop across columns
- pandas describe of describe
- (Python/Pandas) Replaced strings with ints but df.describe() doesn't calculate those columns
- Problem Concating and making a Sum in a Describe of some Columns
- Is there a way for using describe function in PySpark for more than one column?
- Getting an error message when trying to use the R describe function
- Drop Values from Pandas Dataframe Groups of a Column keeping 1 STD from mean of Groups
- describe( ) method gives false 75% quantile
- I am trying to append two dataframes but its giving an empty dataframes
- Asterisks in the output of R describe function
- Describe for third party's type
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I figured it out. Because I was multiplying with a small number, the describe gave display as count 2.040000e+02, and I believe that means I need to shift decimal to right by two numbers. I am posting so that maybe it will help someone else