Dagster SQLAlchemy This function uses the Dagster library and SQLAlchemy to create an in-memory SQLite database and generates a random table of people with names and ages. The type of code 2024-12-16 12:17:58 27 views
numpy datetime This code defines a Dagster operation (op) that generates a random matrix of specified size and a random date within a given date range. First, it generates a random matrix using the numpy library, then it generates a random date using the datetime library. The type of code 2024-12-16 12:16:45 24 views
Dagster Pandas This function randomly shuffles a specified number of columns in a pandas DataFrame and returns the new DataFrame. The type of code 2024-12-16 11:59:43 6 views
Code packages The code defines a function named xxx that accepts a DataFrame as input, generates a random matrix with the same number of rows as the input DataFrame, performs a summation operation on the columns of the matrix, and returns the result. The type of code 2024-12-16 11:54:03 8 views
Dagster Pandas This Dagster operation generates a random datetime between specified start and end dates. Dagster Op 2024-12-16 11:51:06 3 views
Dagster Pandas This function takes two arguments, where the first argument specifies the number of rows for column A in the DataFrame, and the second argument specifies the number of rows for column B. The function generates a random DataFrame with two columns and returns the sum of column B. Dagster Custom Function 2024-12-16 11:50:38 4 views
Dagster Python This code defines a Dagster operation (op) that takes an integer input, generates a DataFrame containing random dates and random numbers, and then returns this DataFrame. The code uses Python's datetime and pandas libraries. The type of code 2024-12-16 11:32:58 7 views
Dagster numpy This function uses the Dagster library to create an operation that generates random data and calculates the mean, median, and standard deviation of these data. First, it uses the numpy and pandas libraries to generate random data, then calculates the required statistics and returns them. The type of code 2024-12-16 11:30:19 3 views
Dagster requests This function fetches a random quote from the quotable.io API and returns it along with a specified author and topic. The type of code 2024-12-16 11:27:54 3 views
Dagster This code defines a Dagster operation named process_random_date that takes a date string as input, converts it to a datetime object, and returns the processed datetime object. Dagster Custom Function 2024-12-16 11:25:11 3 views