Try more than 20 machine learning models with only a few lines of code using LazyPredict

Image by Author

Installation

pip install lazypredict

Example

import pandas as pd
import numpy as np
from lazypredict.Supervised import…


An easy and creative way of ML debugging

Image by Author


One of the best python frameworks!

Photo by Solaiman Hossen on Unsplash

Installation

pip install fastapi


Programming

The Easiest Way To Create Python Apps

Image by Author

Getting the data from Instagram


Get started with Shopify API calls

Photo by Cam Morin on Unsplash

Create a private APP in Shopify


A Complete Guide To Time Series Forecasting

Photo by K Hsu on Unsplash
  • AR: Autoregression. This indicates that the time series is regressed on its own lagged values.
  • I: Integrated. This indicates that the data values have been replaced with the difference between their…


Time Series Analysis Made Easy

Image by Author


Data Science

Reshaping Data

pd.pivot: Spread columns into rows


Data Science

A great tool to remove the effect of a factor

  • Campaign 1: Smartphone related
  • Campaign 2: Camera related
  • Campaign 3: Computer related
import pandas as pd
import numpy as np
import statsmodels.formula.api as smf
import plotly.express as px

Smartphone = pd.DataFrame(…


3 Simple Solutions that Every Data Scientist Should Know

Photo by Leif Christoph Gottwald on Unsplash
import pandas as pd
import numpy as np
import statsmodels.api as sm
import statsmodels.formula.api as smf

df=pd.DataFrame(
{
'Gender':np.random.choice(["m","f"],200,p=[0.6,0.4]),
'Age':np.random.choice(["[<30]","[30-65]", "[65+]"],200,p=[0.3,0.6,0.1]),
"Response":np.random.binomial(1,size=200,p=0.2)
}
)

df.head()
Gender Age Response
0 f [30-65] 0
1 m [30-65] 0
2 m [<30] 0
3 f [30-65] 1
4 f [65+] 0

Logistic Regression on Non-Aggregate Data

Billy Bonaros

Data Scientist @ Persado | Co-founder of the Data Science blog: https://predictivehacks.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store