Looking for suggestions on how to compress this code into a couple of lines. One line for assigning columns, and the other for data. df_input = pd.DataFrame(columns=['supply_temp', 'liquid_mass_flow','air_inlet_temp']) flow = 60 inputs = np.array([45,flow*988/60000,35]) df_input['supply_temp'] = inputs[0] df_input['liquid_mass_flow'] = inputs[1] df_input['air_inlet_temp'] = inputs[2] Continue reading...