Python This code block defines a main function `main` that utilizes random string generation, average calculation, and sorting techniques. 2024-12-16 12:14:04 Python Function 10 views
Hashids library This function uses the Hashids library to encode a given string. It allows setting a salt and minimum length for the encoded string. 2024-12-16 12:14:03 Custom function 10 views
pygame This code uses the pygame library to create a window that displays random colors. The color changes every second. 2024-12-16 12:14:03 Game 11 views
pandas, scipy This function performs the Shapiro-Wilk test to check if the data follows a normal distribution. It takes a pandas.Series object as input and returns a tuple containing the statistic and the p-value from the test. 2024-12-16 12:14:03 Function 9 views
pandas, numpy, random This function randomly selects a specified number of columns from a given DataFrame and filters the rows such that only the rows with at least one non-null value in the selected columns are returned. 2024-12-16 12:14:03 Data filtering 9 views
Celery, requests This code defines a Celery task that fetches a random fact from an external API. The task makes an HTTP request to retrieve data and returns the result. 2024-12-16 12:14:02 Celery task 12 views
Mimesis library, Python This function uses the Mimesis library's Person module to generate a random phone number and formats it based on the country code. 2024-12-16 12:14:02 Function 13 views
SHAP library, pandas DataFrame, machine learning model, SHAP explainer, SHAP values, waterfall plot This function uses the SHAP library to generate a feature importance plot for a specified feature. It first creates a SHAP explainer, then computes the SHAP values for the feature, and displays these values using a waterfall plot. 2024-12-16 12:14:02 The type of code 14 views
Kivy, App, Button, GridLayout This code creates a simple Kivy application that includes a 2-column GridLayout with 5 buttons. 2024-12-16 12:14:02 The type of code 11 views
Basemap, Numpy This function uses the Basemap library to draw circles on a map centered at a specific latitude and longitude with a given radius. 2024-12-16 12:14:01 Function 10 views