Search code examples
pythoncsvmachine-learninganalyticsdata-analysis

I am unable to import csv file in python


I am facing an issue regarding in python , when I import the csv file in python it is showing the data in VSCode. means file is running and successfully imported but when I want to create a report of same csv file by using from pandas_profiling import ProfileReport it shows me an error code and error mentioned:

import pandas as pd
from pandas_profiling import ProfileReport

df = pd.read_csv('housing.csv')
print(df)

profile = ProfileReport(df)
profile.to_file(output_file ="housing.html")

enter image description here

I want to generate **Pandas Profiling Report **


Solution

  • From the error i can guess you have some environment issues. The code you have written is errorless. Run your code in colab and you should see the results.