Generation

generate functionWed, 15 Mar 2023

There is the "sl" list and there is the "sw" list. Write code that will create a scaled_data dataframe with the values from "sl" in the first column and "sw" in the second column. The values in the lists are contained in the following format: [[-0.90068117] [-1.14301691] [-1.38535265] [-1.50652052] [-1.02184904] [-0.53717756] [-1.50652052] [-1.02184904] [-1.74885626] [-1.14301691]]

sl = [0.067,0.067,0.067,0.067,0.067,0.067,0.067,0.067,0.067,0.067] sw = [0.050,0.050,0.050,0.050,0.050,0.050,0.050,0.050,0.050,0.050] scaled_data = { } # Add code here df = pd.DataFrame(scaled_data, columns=['sl', 'sw'])

Questions about programming?Chat with your personal AI assistant