sfu-db / dataprep

Open-source low code data preparation library in python. Collect, clean and visualization your data in python with a few lines of code.
http://dataprep.ai
MIT License
2.07k stars 206 forks source link

EDA plot() not showing properly in VScode #952

Open ldavidr3 opened 1 year ago

ldavidr3 commented 1 year ago

Describe the bug EDA plot() not showing properly in VScode

To Reproduce Steps to reproduce the behavior:

  1. Open new Jupyter notebook
  2. Import from dataprep.eda import plot, plot_correlation, create_report, plot_missing
  3. Try .head() method on any test dataset so it shows first DF rows as output
  4. Next cell call .plot() method from dataprep
  5. Near finishing execution, the method adds padding to the left of all Output cells and it's impossible to scroll to the right to see the full output

Or:


import numpy as np
import pandas as pd
import datetime
from datetime import date
import matplotlib
import seaborn as sns
import matplotlib.pyplot as plt
import plotly.graph_objects as go
from sklearn.preprocessing import StandardScaler, normalize
from sklearn import metrics
from sklearn.mixture import GaussianMixture
from mlxtend.frequent_patterns import apriori
from mlxtend.frequent_patterns import association_rules
import warnings
warnings.filterwarnings('ignore')
data=pd.read_csv('marketing_campaign.csv',header=0,sep=';')

from dataprep.eda import plot, plot_correlation, create_report, plot_missing
plot(data)

Expected behavior I expected to be shown the output normally in the screen

Screenshots

Images: image_2022-12-20_105546368

image_2022-12-20_105618462

image_2022-12-20_105702601

Desktop (please complete the following information):

Additional context

dovahcrow commented 1 year ago

Nice catch! The visualization is implemented/tested for jupyter notebook at the very beginning. With the popularity of VSCode increasing, I think supporting it should be the next step. Will circle around the issue with the team to see what exactly happens.

yimin-demo commented 1 year ago

I have the same issue when I run it in VSCode. Could I know which plot package you use to generate plots? Probably I can try to search for if the issue is from the plot function itself. Thanks.

Krysalide commented 4 months ago

Same issue on vscode, i have seen a config dict in plot function. is there a way to use config to get rid of the left padding?