Prefect Pandas This code defines a custom function that uses Prefect and Pandas libraries to generate a report with summary statistics of the provided data. It accepts a dictionary of data, converts it to a DataFrame, calculates descriptive statistics, and saves the results to a CSV file. The type of code 2024-12-16 12:15:56 12 views
Prefect NumPy This code uses the Prefect library to create a data processing flow. It first generates random data, then processes these data by adding a timestamp, and finally runs the flow and prints the result. The type of code 2024-12-16 12:10:31 4 views
Prefect datetime This function generates a random datetime within a specified range of dates and times. The type of code 2024-12-16 12:00:45 4 views
Prefect datetime This code defines a function named `generate_random_date` that takes two string arguments `start_date` and `end_date`, and generates a random date between these two dates. The `random_date_flow` is a Prefect flow that uses the `generate_random_date` function. The type of code 2024-12-16 11:56:08 3 views
The code This code defines a function to generate a random date between two given dates and creates a Prefect task to execute this function. The type of code 2024-12-16 11:38:12 4 views
Prefect Python This code simulates a simple random walk on a 2D grid, where each step of the walk is a unit distance on the grid. The type of code 2024-12-16 11:22:48 3 views
Prefect datetime This code defines a Prefect task that accepts a date string and a number, then generates a random number based on the day of the week of the date. Function 2024-12-07 16:06:42 7 views
Prefect sklearn This function uses the LogisticRegression model from the sklearn library to predict the class of the input data. It first defines a LogisticRegression model, then trains it with some example data. Finally, it uses the trained model to predict the input data. Machine learning tasks 2024-12-07 15:58:48 3 views
The code This code defines a function named `generate_random_model` that trains a logistic regression model on the Iris dataset and returns the model's accuracy. Function 2024-12-07 15:56:40 23 views
Prefect datetime This function takes a date string and a format string as input and returns the formatted date string. If the date format is incorrect, it returns an error message. Prefect task 2024-12-07 15:49:54 3 views