xxxxxxxxxx
import pandas as pd
import numpy as np
# Define the size of the random data set
rows = 10
columns = 5
# Generate random data
data = np.random.rand(rows, columns)
# Create a DataFrame using Pandas
df = pd.DataFrame(data)
# Export the DataFrame to an Excel file
df.to_excel('random_data_set.xlsx', index=False)