简体   繁体   English

如何为大输入运行 python 代码

[英]How to run a python code for large inputs

In my code,在我的代码中,

  1.  Samp_size
  2.  MSI
  3.  MRI
  4.  M_ASRS
  5.  a_h
  6.  d_h
  7.  a_v
  8.  d_v
  9.  max_hor_vel
  10.  max_ver_vel

These are randomly generated parameters above.Each can all take different numbers of values, lets say each has 2 different value.这些是上面随机生成的参数。每个都可以采用不同数量的值,假设每个都有 2 个不同的值。 I print them as dataframes to an excel file each in different sheets.(sheet1,sheet2 etc.) So I have 2^10 different parameter set.我将它们作为数据框打印到每个不同工作表中的 excel 文件中。(工作表 1、工作表 2 等)所以我有 2^10 个不同的参数集。 How can I print the all the solutions for all this parameter set in order to an excel file?如何将所有这些参数集的所有解决方案打印到 excel 文件中?

It seems like you want to combine sheets into one single excel file, if so, the following post will solve your problem: Combine Multiple Excel sheets within Workbook into one sheet Python似乎您想将工作表合并到一个 Excel 文件中,如果是这样,以下帖子将解决您的问题:将Workbook 中的多个 Excel 工作表合并为一张 Python

The code from # And then append all the Workbooks into single Excel Workbook sheet will help. # 然后将所有工作簿附加到单个 Excel 工作簿表中的代码将有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM