I need an urgent help, there is a parameter which is used in the differential equation using odeint but while running the program it gives the result in this form
[3.9781147468878235e-07]
[3.978114566293721e-07]
[3.978114566293732e-07]
[3.978114385699638e-07]
[3.978114385699661e-07]
[3.9772752826022973e-07]
[3.9772752825921393e-07]
[3.976436327022632e-07]
[3.9764363270023663e-07]
[3.975597519134887e-07]
[3.9755975191145903e-07]
[3.967803957563199e-07]
[3.967803956800371e-07]
[3.969157328547086e-07]
[3.969157328031919e-07]
[3.9627259501862364e-07]
[3.9627259506351596e-07]
[3.95630346874153e-07]
[3.9563034686830913e-07]
[3.9498899627374144e-07]
[3.9498899626798617e-07]
[3.9370901950683014e-07]
[3.937090194798784e-07]
[3.924327267996166e-07]
[3.924327268156608e-07]
[3.9116017856934783e-07]
[3.9116017858553363e-07]
[3.8989143332455075e-07]
[3.898914333268123e-07]
[3.886265478202662e-07]
[3.886265478225091e-07]
[3.825216169025574e-07]
[3.8252161730583395e-07]
[3.765153170261968e-07]
[3.765153175903483e-07]
[3.706125635424506e-07]
[3.706125621824539e-07]
[3.6481744303763293e-07]
[3.6481744243884125e-07]
[3.5913329487781545e-07]
[3.5913329448230183e-07]
[3.5356276439356424e-07]
[3.535627640111652e-07]
[3.4306498365657534e-07]
[3.430649801057599e-07]
[3.330127340327062e-07]
[3.330127270270594e-07]
[3.2340830990710364e-07]
[3.2340831935157553e-07]
[3.142487583718173e-07]
[3.142487645389542e-07]
[3.0552691094534634e-07]
[3.055269130854581e-07]
[2.972324310178446e-07]
[2.972324328987815e-07]
[2.893526253371907e-07]
[2.893526269763174e-07]
[2.789857080226692e-07]
[2.7898571275279274e-07]
[2.693608591111459e-07]
[2.693608664393268e-07]
[2.604329820263632e-07]
[2.6043297277434004e-07]
[2.5215646023570007e-07]
[2.5215645178281667e-07]
[2.444864310691831e-07]
[2.4448642776855084e-07]
[2.3737952460984802e-07]
[2.3737952297084316e-07]
[2.3079436713005016e-07]
[2.3079436600849415e-07]
[2.2469189233902347e-07]
[2.2469189136446598e-07]
[2.1675377551100702e-07]
[2.1675377272177883e-07]
[2.0962559300770345e-07]
[2.096255834160249e-07]
[2.0321999668254984e-07]
[2.0321998936666024e-07]
[1.9745910720886717e-07]
[1.9745910207364424e-07]
[1.9227371765477192e-07]
[1.9227371444473138e-07]
[1.8760247313945583e-07]
[1.876024711762492e-07]
[1.83391043663551e-07]
[1.8339104236761058e-07]
[1.7959133881057254e-07]
[1.7959133806416996e-07]
[1.7434063492996288e-07]
[1.7434063248738718e-07]
[1.6986437125982695e-07]
[1.6986436164907127e-07]
[1.6604430135446286e-07]
[1.6604429564291197e-07]
[1.6278218325033112e-07]
[1.6278218225973718e-07]
[1.5999607049044268e-07]
[1.5999607162141243e-07]
[1.576173426634836e-07]
[1.5761734497073748e-07]
[1.5558831738007812e-07]
[1.555883195174398e-07]
[1.5386031552309796e-07]
[1.5386031757983086e-07]
[1.523921050563648e-07]
[1.5239210688202115e-07]
[1.511486359127842e-07]
[1.5114863742293563e-07]
[1.5010001331092176e-07]
[1.5010001459565824e-07]
[1.488567620904041e-07]
[1.4885676664237774e-07]
[1.479138598707743e-07]
[1.4791387803121908e-07]
[1.4721674979203476e-07]
[1.472167661388841e-07]
[1.4672140100059195e-07]
[1.4672141359839685e-07]
[1.463921540858473e-07]
[1.4639216406537566e-07]
[1.4620001732247464e-07]
[1.4620002366808194e-07]
[1.4612133204651164e-07]
[1.4612133768576438e-07]
[1.4613674698763881e-07]
[1.4613675106409493e-07]
[1.4628404745084808e-07]
[1.4628405771298774e-07]
[1.4654786123780307e-07]
[1.4654789657891352e-07]
[1.4690269931785964e-07]
[1.4690272533104862e-07]
[1.4732892503823597e-07]
[1.4732894491047039e-07]
[1.4781145400698215e-07]
[1.4781147086842694e-07]
[1.483386646351463e-07]
[1.483386719690905e-07]
[1.4890155490520674e-07]
[1.4890156442751846e-07]
[1.4949318971345693e-07]
[1.4949319550741394e-07]
[1.5022925928086162e-07]
[1.5022926589160072e-07]
[1.509916750546776e-07]
[1.5099169568426692e-07]
[1.517753421544262e-07]
[1.5177534464577188e-07]
[1.5257643248338546e-07]
[1.525764154292109e-07]
[1.5339210534154217e-07]
[1.533920926289665e-07]
[1.5422029769956243e-07]
[1.5422028535006378e-07]
[1.55059455316872e-07]
[1.5505944625767863e-07]
[1.561330006054114e-07]
[1.5613298996131265e-07]
[1.5722058013942317e-07]
[1.5722056087948272e-07]
[1.5832101429415848e-07]
[1.583210320950862e-07]
[1.594335973605199e-07]
[1.5943362467172946e-07]
[1.6055780954722976e-07]
[1.6055782355204657e-07]
[1.6169327300134554e-07]
[1.6169328713396146e-07]
[1.6320051031317212e-07]
[1.632005307682339e-07]
[1.647264814806338e-07]
[1.6472648680853364e-07]
[1.6627104220835178e-07]
[1.6627100768538067e-07]
[1.6783406478499277e-07]
[1.678340417872913e-07]
[1.6941558038319564e-07]
[1.6941557066558657e-07]
[1.7140476727741382e-07]
[1.714047530159313e-07]
[1.7342256292996608e-07]
[1.73422565528877e-07]
[1.754690819858373e-07]
[1.7546908975488055e-07]
[1.775444167865732e-07]
[1.7754441462290306e-07]
[1.8053796970451054e-07]
[1.805379526683601e-07]
[1.8358975003165003e-07]
[1.8358973701394234e-07]
[1.8669977707915966e-07]
[1.8669977851552692e-07]
[1.8986798141612288e-07]
[1.898679714007005e-07]
[1.9309408883565208e-07]
[1.9309408028040893e-07]
[1.9790265828752232e-07]
[1.9790266348882112e-07]
[2.0283166425812424e-07]
[2.028316421752317e-07]
[2.0787832300213562e-07]
[2.078782786960457e-07]
[2.1303889299394577e-07]
[2.1303888036952844e-07]
[2.1830872329741624e-07]
[2.1830871367429772e-07]
[2.261032605005059e-07]
[2.2610314595763027e-07]
[2.3409171936543533e-07]
[2.340916455577798e-07]
[2.4224676845443955e-07]
[2.422471026847495e-07]
[2.3753229873867762e-07]
[2.3753232800218684e-07]
[2.410007358735712e-07]
[2.410007145394337e-07]
[2.444943385201872e-07]
[2.444943284084593e-07]
[2.480104185331995e-07]
[2.4801043644955294e-07]
[2.515461490233653e-07]
[2.5154614702453637e-07]
[2.5521030826618675e-07]
[2.5521030627931834e-07]
[2.588885389325094e-07]
[2.588885449241628e-07]
[2.6257715030738677e-07]
[2.6257715286417166e-07]
[2.6627225854143304e-07]
[2.6627226119527366e-07]
[2.6996984152348874e-07]
[2.6996984649334767e-07]
[2.7393290804720994e-07]
[2.7393291408393313e-07]
[2.778887607829484e-07]
[2.778887687950817e-07]
[2.81831995208907e-07]
[2.8183200402839836e-07]
[2.8575710586480965e-07]
[2.8575711540348695e-07]
[2.8965852226674005e-07]
[2.896585327452249e-07]
[2.9483153948835147e-07]
[2.9483156465299814e-07]
[2.999387617854709e-07]
[2.9993876946525683e-07]
[3.049669969238866e-07]
[3.0496696651743677e-07]
[3.099033152302827e-07]
[3.099033227082251e-07]
[3.147354737290885e-07]
[3.1473548029395605e-07]
[3.194518077890472e-07]
[3.1945179122788257e-07]
[3.2257517580768746e-07]
[3.225751776980004e-07]
[3.2563728488326345e-07]
[3.256372837891905e-07]
[3.2863520563054417e-07]
[3.286352034001892e-07]
[3.3156625596595914e-07]
[3.315662572520077e-07]
[3.344280107466667e-07]
[3.3442800968308907e-07]
[3.372182814482331e-07]
[3.3721828064907934e-07]
[3.410420998806673e-07]
[3.4104209866847605e-07]
[3.4471436397283123e-07]
[3.4471435833069035e-07]
[3.4823162240561215e-07]
[3.482316164392633e-07]
[3.515915102980429e-07]
[3.5159150493087607e-07]
[3.547927164640099e-07]
[3.5479271025681123e-07]
[3.5783493878902007e-07]
[3.5783493338608135e-07]
[3.620546232195566e-07]
[3.620546050824416e-07]
[3.61243850779236e-07]
[3.6124384255898704e-07]
[3.6443203799018884e-07]
[3.644320350706019e-07]
[3.674038355470587e-07]
[3.6740384983372284e-07]
[3.7016502690175355e-07]
[3.7016502925892395e-07]
[3.7272252985880404e-07]
[3.72722530401886e-07]
[3.750842808452602e-07]
[3.750842897624831e-07]
[3.7725903249981944e-07]
[3.7725902883596784e-07]
[3.792560611594897e-07]
[3.792560639284721e-07]
[3.8108510094762223e-07]
[3.810851057484746e-07]
[3.827561072930157e-07]
[3.827561045607881e-07]
[3.842790925995002e-07]
[3.8427909599948426e-07]
[3.8566406226979296e-07]
[3.856640632829388e-07]
these parameters are obtained using the print command from the certain variable , but the problem is while using the pandas command to shift the variables it to the excel , it takes only the last value from the array shift to the excel sheet. Which command can shift all the values to the excel sheet
Give a minimal reproducible example of code so others can better understand!
import numpy as np
from scipy.integrate import odeint
import math
import System
from System import IO
import matplotlib.pyplot as plt
import pandas as pd
def dehyd(y,z):
kg=kg0exp(-Ea/RT))
r1=kgC1
dTdz= ((-delHr1rhob)/(rho1us*CpDBT1)) #energy balance
data={‘Rate constant’:[kg]}
df1=pd1.DataFrame(data,columns=[‘Rate constant’])
df1.to_excel(excel_writer=“D:/Pythoncode1-D/overallkineticrate2.xlsx”)
#exporting kg values from excel
df = pd.read_excel (r"D:\Pythoncode1-D\overallkineticrate2.xlsx")
kg=df.iloc[0]
kg1=kg.iloc[0]