Jupyter笔记本中的熊猫输出需要完整数据

时间:2019-08-20 14:52:53

标签: python pandas machine-learning jupyter-notebook data-science

我想在jupyter笔记本输出单元格中查看完整数据。不会被'...'截断。

我想要完整的单元格数据

enter image description here

2 个答案:

答案 0 :(得分:0)

我认为它将始终向您显示被截断的输出。
最好的解决方案是使用

[System.Web.Services.WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public static string get_list_profiles_user(string _account_id) { var temp = new Entity.DBEntity.tblProfileUser(); temp._account_id = _account_id; string _query_string = temp.get_profile_name(); List<Entity.DBEntity.tblProfileUser> _list_profiles = Configurate.sqlBuilder.get_list_profiles(_query_string, Configurate.DBConnection._mysqlcon); return new JavaScriptSerializer().Serialize(new { _list_profiles }); }

它将生成数据框的Excel工作表,然后您可以有效地查看

答案 1 :(得分:0)

熊猫数据框__repr__ just calls .to_string,它接受​​max_rowsmax_cols。这是您需要的:

print(df.to_string(max_rows=float('inf'), max_cols=float('inf')))