The code The code defines a function named xxx that takes two parameters: the number of rows to generate and an instance of the Luigi task. The function first checks the parameter types, then runs the task to generate data, reads the generated data, filters the data based on age, and returns the filtered data. The type of code 2024-12-16 12:17:52 27 views
pandas numpy This function generates a random DataFrame with specified number of rows and columns. The DataFrame is created using numpy's random normal distribution. The type of code 2024-12-16 12:17:26 19 views
Luigi pandas This code defines two Luigi tasks: GenerateData and AggregateData. The GenerateData task generates a DataFrame with a random date and a random number of rows, while the AggregateData task reads the data generated by GenerateData, calculates the sum of all numbers. The type of code 2024-12-16 12:14:49 7 views
Luigi Pandas This code defines a Luigi task to generate a random DataFrame and save it as a CSV file. The type of code 2024-12-16 12:14:32 6 views
Luigi PostgreSQL This code defines a Luigi task that creates a database table, populates it with data, and queries the data. Luigi Task 2024-12-16 12:11:59 3 views
Luigi random This function defines a Luigi task that generates a JSON report containing the current date and a random number. Luigi Task 2024-12-16 12:11:12 3 views
The code The code defines a function that randomly selects a function from Luigi's dependencies and generates a task based on that function. The task can be creating a Luigi task, performing numerical calculations, processing Pandas DataFrames, using SQLAlchemy for database operations, using psycopg2 for PostgreSQL operations, or using Redis for key-value storage. The type of code 2024-12-16 12:09:05 3 views
Luigi Pandas This code defines a Luigi workflow that first generates random data, then processes these data. Luigi task chain 2024-12-16 12:07:20 4 views
Luigi pandas This code defines a Luigi task that reads a CSV file, converts its data to numeric types, and outputs the processed data to a new CSV file. The type of code 2024-12-16 12:04:22 5 views
Luigi Pandas This function reads a CSV file, generates random numbers for each column, and saves the result to a new CSV file. Data processing 2024-12-16 12:04:20 2 views