Die Suche ergab 4 Treffer

von tobentobentoben
Freitag 16. Februar 2018, 16:59
Forum: Allgemeine Fragen
Thema: Optimize.minimize
Antworten: 0
Zugriffe: 1091

Optimize.minimize

Hallo zusammen, ich habe ein verrauschtes Signal df.measdata und möchte durch dieses eine Modellfunktion fitten. Die Modellfunktion ist ein Sinus, dessen Frequenz und Amplitude für die Optimierung freigegeben werden. Ich habe schon so einiges ausprobiert, bekomme aber nur Unsinn als Optimierungserge...
von tobentobentoben
Samstag 20. Januar 2018, 20:12
Forum: Allgemeine Fragen
Thema: loc in for-loop
Antworten: 5
Zugriffe: 1101

Re: loc in for-loop

i got rid of most parentheses, should still be executable df2=deepcopy(df1) for i in range(10,len(df2)-1): if (df2.loc[i+1,'Klemme03Value2'])>(df2.loc[i,'Klemme03Value2']): if df2.loc[i-1,'Klemme03Value2']>df2.loc[i,'Klemme03Value2']: df2.loc[i,'Klemme03Value2']=df2.loc[i+1,'Klemme03Value2'] thanks ...
von tobentobentoben
Samstag 20. Januar 2018, 18:21
Forum: Allgemeine Fragen
Thema: loc in for-loop
Antworten: 5
Zugriffe: 1101

Re: loc in for-loop

i tried the code several times and tried some things but its just not working.
von tobentobentoben
Samstag 20. Januar 2018, 17:36
Forum: Allgemeine Fragen
Thema: loc in for-loop
Antworten: 5
Zugriffe: 1101

loc in for-loop

Hello everybody, i want to check whether the values in a dataframe are smaller than their predecessors AND their successors. If so, the value should be overwritten. Can anyone explain to me, why this is not working? df2=deepcopy(df1) i=0 for i in range(10,(len(df2)-1)): if (df2.loc[i+1,('Klemme03Val...