Learn practical skills, build real-world projects, and advance your career

# Import the library in your Jupyter notebook
import jovian
jovian.commit()
[jovian] Attempting to save notebook.. [jovian] Error: Failed to detect notebook filename. Please provide the correct notebook filename as the "filename" argument to "jovian.commit".
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import plotly.express as ex
import plotly.graph_objs as go
import plotly.figure_factory as ff
from plotly.subplots import make_subplots
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
df=pd.read_csv('C:/Users/cana/Desktop/文件python\BankChurners.csv')
df=df[df.columns[:-2]] # Drop the last two columns
df.head() # Inspect the first 5 rows
fig=make_subplots(rows=2,cols=1)
tr1=go.Box(x=df['Customer_Age'],name='Age Box Plot',boxmean='sd')
tr2=go.Histogram(x=df['Customer_Age'], name='Age Histogram')
fig.add_trace(tr1,row=1,col=1)
fig.add_trace(tr2,row=2,col=1)
fig.update_layout(height=500, width=600, title_text="Distribution of Customer Ages")
fig.show()