pythoncodelab.com

ssl.SSLCertVerificationError [SSL CERTIFICATE_VERIFY_FAILED] certificate verify failed

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

Summary: Error occurs when Python cannot verify the SSL/TLS certificate of a remote server while making HTTPS requests, installing packages using pip or calling APIs in scripts, virtual environments, Docker containers or production servers.   Checkout cool headphones on Amazon What does ssl certificate_verify_failed mean ? While making an HTTPS request using Python we need

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed Read More »

Solve ValueError: Found Input Variables with Inconsistent Numbers of Sample

The error “ValueError: Found input variables with inconsistent numbers of samples” comes in python libraries like scikit-learn because our feature matrix (X) and target vector (y) do not have the same number of rows. Solution to the error is to verify dataset shapes and remove misaligned rows and have the same number of records for

Solve ValueError: Found Input Variables with Inconsistent Numbers of Sample Read More »

Get attributes of object in Python

Get attributes of object Python

While working with objects in Python, we will often need to inspect, list or access attributes dynamically. Whether we are debugging, building frameworks, or designing dynamic systems, understanding how to get attributes of objects in Python is a must have skill. In this tutorial we will explore multiple ways to get all attributes of object

Get attributes of object Python Read More »

QQ plot for multiple variable

QQ Plots in Python

Hi people, before we jump to implement QQ plots in Python. Let’s quickly understand what a QQ plot is and what QQ plot assumptions are. What is a QQ plot? A QQ plot is a graphical method to compare two probability distributions by plotting their quantiles against each other. How does the QQ plot work?

QQ Plots in Python Read More »

xgb feature importance

XGB feature importance

XGBoost or XGB stands for extreme gradient boosting. In XGB, feature importance points to how much a particular feature contributes to the model’s predictions. It is very important to know which features contribute most to the models’s prediction when we have a large number of columns in the dataset. XGBoost provides several ways to compute

XGB feature importance Read More »

Jaccard similarity

Jaccard similarity in Python.

When we want to measure the similarity between two sets, we tend to use cosine similarity or Jaccard similarity in general. In this blog, we will discuss Jaccard similarity and implement it using various libraries in Python. What is Jaccard Similarity? Jaccard similarity is also known by names like Jaccard index or interaction over union.

Jaccard similarity in Python. Read More »