Did you mean linear regression? Linear optimization isn't a use case that Pandas covers, but there are other tools that I can recommend.