Skip to main content

Pandas_read_csv was regarded as invalid argument

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Alison Cozad
    • Gurobi Staff

    Hi Yang,

    I recommend checking the type of

    dataBeta.loc[(dataBeta['b']==b)&(dataBeta['k']==k)&(dataBeta['n']==n),:].iloc[:,4].values

    Gurobi is expecting a scalar number here and this would return an array, as far as I can tell.  The array may only have one element but will need to be converted into a number.

    If the above does not help, could you post a minimal working example to make the issue reproducible?

    0

Post is closed for comments.