How To Do Data Profile To A Table Using Pandas_profiling
When I'm trying to do data profiling one sql server table by using pandas_profiling throwing an error like An attempt has been made to start a new process before the curre
Solution 1:
try using multiprocessing.freeze_support() as below:
import multiprocessing
import numpy as np
import pandas as pd
import pandas_profiling
def test_profile():
df = pd.DataFrame(
np.random.rand(100, 5),
columns=['a', 'b', 'c', 'd', 'e']
)
profile = pandas_profiling.ProfileReport(df)
profile.to_file(outputfile="output.html")
if __name__ == '__main__':
multiprocessing.freeze_support()
test_profile()
Post a Comment for "How To Do Data Profile To A Table Using Pandas_profiling"