前提・実現したいこと
下記のコードを書きました。
しかし、なぜかstdv_Cpだけが何もないファイルが出力されます。
その他の平均、最大値、最小値は出力されているのですが
なぜこんなことがおきるのですか?
尚、cp_remove_lstは3000行309列のデータです。
該当のソースコード
statistic = [] mean_Cp = np.mean(cp_remove_lst,0) stdv_Cp = np.std(cp_remove_lst,0) max_Cp = np.max(cp_remove_lst,0) min_Cp = np.min(cp_remove_lst,0) statistic += [mean_Cp, stdv_Cp, max_Cp, min_Cp] statistic_with_label = pd.DataFrame(statistic, columns = header_probe, index = index_statisitcs) statistic_with_label.to_csv('cp_statistic.csv', header=True, index=True, float_format='%.8f')
cp_statistic.csv(本来は4行309列のデータ、今は字数制限のため)
ここに問題に対して試したことを記載してください。
,probe1,probe2,probe3,probe4,probe5,probe6,probe7,probe8,probe9,probe10,probe11,probe12,probe13,probe14,probe15,probe16,probe17,probe18,probe19,probe20 ave,-0.48426667,-0.45623333,-0.50583333,-0.60376667,-0.61413333,-0.63286667,-0.64523333,0.14686333,0.37383333,0.55433333,0.6367,0.61373333,0.4073,0.14936667,-0.69416667,-0.72303333,-0.67103333,-0.53223333,-0.45603333,-0.40296667 rms,,,,,,,,,,,,,,,,,,,, max,0.00079443,0.0084507,-0.12238,-0.21261,-0.18114,-0.19689,-0.19429,0.59851,0.93338,1.1148,1.1711,1.0244,0.77834,0.52742,-0.083574,-0.080499,-0.097397,-0.016492,-0.010448,0.029793 min,-1.5555,-1.0793,-1.0828,-1.6755,-1.2882,-1.1672,-1.3542,-0.24961,-0.025646,0.11112,0.17411,0.16979,0.00007081,-0.23024,-1.9209,-2.1275,-1.7796,-1.2985,-1.0629,-1.2129
cp_remove_lst.csvの最初の2行
-0.42106,-0.45293,-0.48462,-0.47957,-0.45358,-0.45442,-0.45974,0.016145,0.09953,0.18293,0.19053,0.17782,0.036611,-0.11068,-0.37687,-0.36469,-0.25793,-0.19891,-0.19615,-0.22074,-0.25581,-0.34282,-0.31062,-0.31067,-0.32983,-0.3397,-0.37702,-0.39557,-0.48896,-0.50264,-0.50018,-0.50622,-0.4533,-0.45953,-0.45037,0.00081345,0.14727,0.22745,0.25555,0.23254,0.13755,-0.018168,-0.41994,-0.38944,-0.32417,-0.25336,-0.27865,-0.24532,-0.27302,-0.33412,-0.31731,-0.31423,-0.33078,-0.35201,-0.38238,-0.40987,-0.6135,-0.51432,-0.51502,-0.48684,-0.46843,-0.4641,-0.46041,-0.014247,0.12276,0.19689,0.23086,0.22,0.20282,0.15073,-0.49887,-0.48451,-0.36675,-0.23179,-0.31656,-0.29442,-0.32848,-0.52582,-0.34878,-0.32658,-0.32758,-0.33588,-0.3738,-0.42014,-0.60941,-0.59543,-0.51505,-0.45689,-0.46147,-0.45728,-0.44882,-0.00723,0.1451,0.23591,0.29198,0.31314,0.2958,0.16701,-0.53767,-0.54157,-0.55611,-0.34384,-0.22063,-0.2936,-0.34081,-0.27678,-0.33522,-0.36591,-0.37204,-0.38169,-0.41549,-0.49338,-0.61511,-0.60056,-0.5281,-0.47649,-0.47253,-0.47093,-0.471,0.045657,0.2144,0.30477,0.35089,0.32184,0.21345,0.023915,-0.52058,-0.5337,-0.54751,-0.53942,-0.39291,-0.32165,-0.27164,-0.20446,-0.22542,-0.33098,-0.36715,-0.36385,-0.41706,-0.47827,-0.83743,-0.6083,-0.50744,-0.49203,-0.51897,-0.52123,-0.53964,0.22064,0.42563,0.49233,0.49991,0.42712,0.29122,0.083682,-0.53017,-0.53086,-0.55789,-0.671,-0.38105,-0.35233,-0.23743,-0.26282,-0.21389,-0.22877,-0.28638,-0.33556,-0.39408,-0.44255,-0.50809,-0.87676,-0.87422,-0.84977,-0.78422,-0.69575,-0.70329,-0.74579,0.4115,0.70388,0.83188,0.84299,0.72034,0.55781,0.30314,-0.4644,-0.47968,-0.51765,-0.62452,-0.48993,-0.39395,-0.34511,-0.3199,-0.32647,-0.33989,-0.34979,-0.3473,-0.36156,-0.42358,-0.58575,-0.6871,-0.71168,-0.8962,-1.0367,-1.0643,-1.0157,0.55277,0.9471,1.0928,1.1146,1.0254,0.86327,0.55044,-0.44339,-0.43057,-0.44456,-0.43409,-0.44759,-0.42818,-0.42133,-0.39444,-0.38278,-0.37494,-0.37255,-0.39194,-0.44596,-0.50274,-0.56619,-0.7639,-0.80381,-0.95774,-0.75889,-0.65297,-0.68605,0.5955,0.9198,1.0635,1.1205,1.074,0.92273,0.64915,-0.41336,-0.40679,-0.40327,-0.4103,-0.38714,-0.39652,-0.39382,-0.37994,-0.38717,-0.38825,-0.38974,-0.41534,-0.44956,-0.47599,-0.94355,-0.89813,-0.88586,-0.73621,-0.82425,-0.68961,-0.70929,0.53844,0.88108,1.0052,1.0615,1.0055,0.88394,0.61416,-0.42468,-0.41916,-0.4106,-0.38243,-0.37241,-0.37027,-0.37109,-0.38322,-0.39766,-0.4127,-0.41789,-0.41454,-0.43871,-0.50289,-0.65179,-0.6997,-0.89743,-0.90985,-0.84607,-0.88671,-0.86828,0.51859,0.80882,0.88185,0.91324,0.84337,0.76103,0.51731,-0.43971,-0.43105,-0.42915,-0.39095,-0.35741,-0.38077,-0.3967,-0.37764,-0.38313,-0.40702,-0.43146,-0.39415,-0.37364,-0.44014 -0.42558,-0.45562,-0.48455,-0.48166,-0.45479,-0.45517,-0.45959,0.010983,0.096062,0.17944,0.18934,0.17527,0.030169,-0.10991,-0.38367,-0.37173,-0.26246,-0.20304,-0.20122,-0.22629,-0.25941,-0.34408,-0.31275,-0.31248,-0.33204,-0.34205,-0.37874,-0.39801,-0.49276,-0.50566,-0.50163,-0.50632,-0.45505,-0.46015,-0.45013,-0.0017357,0.14629,0.22629,0.25428,0.22952,0.13286,-0.022072,-0.43007,-0.39588,-0.32412,-0.25666,-0.28734,-0.24788,-0.27864,-0.3368,-0.32097,-0.31676,-0.33254,-0.3533,-0.38425,-0.41181,-0.61507,-0.51492,-0.51476,-0.48777,-0.47093,-0.46571,-0.46022,-0.017519,0.11973,0.19516,0.22877,0.21702,0.199,0.1419,-0.50602,-0.49412,-0.36524,-0.23446,-0.31751,-0.29822,-0.34174,-0.52665,-0.35331,-0.32912,-0.32951,-0.33727,-0.37529,-0.42276,-0.61152,-0.59568,-0.51373,-0.45674,-0.4624,-0.45909,-0.45278,-0.0034761,0.1436,0.23372,0.29014,0.30977,0.29141,0.16093,-0.5448,-0.55073,-0.56941,-0.35188,-0.22279,-0.29357,-0.34776,-0.27919,-0.33704,-0.36924,-0.37342,-0.38256,-0.41571,-0.49266,-0.61526,-0.59901,-0.52636,-0.47707,-0.47422,-0.47284,-0.47468,0.044571,0.21296,0.30578,0.35046,0.32055,0.21234,0.023738,-0.52924,-0.54178,-0.55714,-0.55197,-0.40151,-0.32822,-0.27749,-0.20878,-0.22823,-0.33283,-0.37041,-0.36476,-0.41785,-0.47856,-0.82826,-0.60934,-0.50508,-0.49394,-0.52618,-0.52832,-0.54861,0.2258,0.43157,0.49671,0.50239,0.42968,0.28957,0.074263,-0.53602,-0.53846,-0.56536,-0.68199,-0.39189,-0.36222,-0.23893,-0.26402,-0.2146,-0.22927,-0.2888,-0.33871,-0.40002,-0.44806,-0.51463,-0.89676,-0.87398,-0.84834,-0.78517,-0.69819,-0.71316,-0.75639,0.41812,0.71106,0.83892,0.85058,0.72855,0.56492,0.30673,-0.47402,-0.48698,-0.52259,-0.63303,-0.5,-0.401,-0.35036,-0.32177,-0.32833,-0.34174,-0.3531,-0.35161,-0.36584,-0.43064,-0.58995,-0.68978,-0.7033,-0.89598,-1.0258,-1.0664,-1.0215,0.55005,0.94541,1.0917,1.1156,1.0289,0.8695,0.55187,-0.4455,-0.4342,-0.44795,-0.4378,-0.45229,-0.43524,-0.42642,-0.39887,-0.38648,-0.37832,-0.37649,-0.39588,-0.45084,-0.508,-0.57185,-0.76687,-0.80062,-0.93923,-0.75208,-0.65452,-0.6885,0.59371,0.9149,1.0609,1.1185,1.0727,0.92263,0.65211,-0.42028,-0.40903,-0.40605,-0.41442,-0.39053,-0.39937,-0.39766,-0.38335,-0.39011,-0.39037,-0.39207,-0.41855,-0.45304,-0.47946,-0.95081,-0.88795,-0.87707,-0.73505,-0.82456,-0.69106,-0.70954,0.53438,0.87892,1.0042,1.061,1.0044,0.88309,0.6193,-0.42703,-0.421,-0.41352,-0.38534,-0.37524,-0.37213,-0.37269,-0.3851,-0.39984,-0.41544,-0.42093,-0.41757,-0.44175,-0.50842,-0.66449,-0.71193,-0.90834,-0.90896,-0.84633,-0.89313,-0.87722,0.52187,0.80703,0.88185,0.9129,0.84239,0.76119,0.5157,-0.44811,-0.43348,-0.43225,-0.39475,-0.36025,-0.38261,-0.39754,-0.37845,-0.3847,-0.4083,-0.43343,-0.39703,-0.37601,-0.44045
あなたの回答
tips
プレビュー