Code Monkey home page Code Monkey logo

Comments (8)

romainx avatar romainx commented on May 17, 2024

I was not able to reproduce the problem with the example provided.

import pandas as pd
import numpy as np
import io
import pandas_profiling

zz = """ts	b	c	d	e	f	g	h	i	j	k
1234576601963	63992632	320	97123492385	4	325	value234	520938	HASH	\\N	const
1234572654839	28444632	319	96761692385	4	325	value1	520938	HASH	\\N	const
1234573590399	58412632	320	96830092385	4	325	value1	520938	HASH	\\N	const
1234573550737	63312632	320	96822892385	4	325	value1	520938	HASH	\\N	const
1234575246094	74492632	320	96903892385	4	325	value234	520938	HASH	\\N	const
1234576285832	64342632	320	97067692385	4	325	value234	520938	HASH	\\N	const
1234567951818	35632	319	96759642785	4	310	value917	520938	HASH	\\N	const
1234574017225	90822632	320	96872692385	4	325	value1	520938	HASH	\\N	const
1234575810946	70392632	320	96992692385	4	325	value234	520938	HASH	\\N	const
"""

df = pd.read_table(io.StringIO(zz), delim_whitespace=True)
df.replace(to_replace=["\\N"," "],value=np.nan,inplace=True)
pandas_profiling.describe(df)

# {'freq': {'b': 70392632    1
#  58412632    1
# 74492632    1
# [...]

Please could you provide an example permitting to reproduce the error?

Many thanks.

Note: The RuntimeWarning: divide by zero encountered in long_scalars 'p_unique': distinct_count / count} has been fixed in #56.

from ydata-profiling.

navado avatar navado commented on May 17, 2024

Well, it might be version related.
How can I check pandas_profiling version?

from ydata-profiling.

romainx avatar romainx commented on May 17, 2024

You can check it with pip list | grep pandas-profiling

from ydata-profiling.

navado avatar navado commented on May 17, 2024

pandas-profiling (1.4.0) but I installed from the master branch on top. Is there a variable to check in runtime?

from ydata-profiling.

romainx avatar romainx commented on May 17, 2024

No I don't think so (I will check more closely). However, if your version does not work with the flag check_correlation you are running the 1.4 version and not the latest from the master branch.

from ydata-profiling.

romainx avatar romainx commented on May 17, 2024

Hello,

Can I close this issue? I don't know how to go further.

Thanks

from ydata-profiling.

navado avatar navado commented on May 17, 2024

Seems so, thank you.

from ydata-profiling.

romainx avatar romainx commented on May 17, 2024

Ok thanks for your reply.

from ydata-profiling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.