Basic Data Analysis: Panda, NumpyPlot Data: Matplotlib, Seaborn, PlotlyOptimization of Math: Scipy, Gurobi, CP...
Wednesday, May 29, 2024
Monday, May 27, 2024
Trend Analysis using linear and non-linear Regression

If you want to show regression effect of two numerical variable with two different categorical or binary variable then you can use this styleimport seaborn as snsimport matplotlib.pyplot as pltimport numpy as npfrom sklearn.linear_model import LinearRegressionfrom sklearn.metrics import r2_scoresns.set_theme(style="ticks")#...
Box Plot in Python with Sig-Bar

You can show your dependent variable effect with other two categorical or binary variables suign this method.Step 1: make a pivot tableimport pandas as pd# Assuming df is your existing DataFrame# Create the pivot tablepivot_table = df.pivot_table(values='tit', index='g_type', columns='n_lane', aggfunc='count',...
Subscribe to:
Posts (Atom)