2017-05-16 12 views
1

パンダシリーズto_recordやto_dict(orient = "record")、 の出力方法は、データフレームのみのためです。 明らかな解決策はforループですが、それを行うには1つの方法がありますか?パンダシリーズto_record

答えて

2
Is this what you are after? 

s.to_frame().to_records() 
+0

はい、完璧で、問題を解決します。 – Tensor