Question: Using a Pandas dataframe and the stats ols method, Im able to run a regression using the code 

```
import pandas as pd
from pandas.stats.api import ols
df = pd.DataFrame({"A": [56, 55, 57, 58, 56, 58, 59, 60, 63, 62, 63, 65, 66, 68], "B": [1,2,3,4,5,6,7,8,9,10,11,12,13,14]})
res = ols(y=df['A'], x=df[['B']])

```

However although this works

```
print res

```

Im trying to get just the fitted coefficient, and this does not work

```
print res.params

```

i get the error

```
AttributeError: 'OLS' object has no attribute 'params'

```

how can I access the parameters, I am particularly looking the extract the coefficient of the regression, that is all I am interested in.

Answer: 
What do you mean by "this doesn't work"? Is there an error? 

The following works as expected, as /server/main.js in a new meteor project:

```
import { Meteor } from 'meteor/meteor';
import { Mongo  } from 'meteor/mongo'

Projects = new Mongo.Collection("projects");

Meteor.startup(() => {
    Projects.remove({})
    Projects.insert( {
        "techInfo": {
            "equipInfo": [{
                    "item": {
                        "$ref": "equipment",
                        "$id": new Mongo.ObjectID("581a20cb4abab607fd17f07d")
                    },
                    "quantity": "22800",
                    "type": "module"
                },
                {
                    "item": {
                        "$ref": "equipment",
                        "$id": new Mongo.ObjectID("581a20cb4abab607fd17f07e")
                    },
                    "quantity": "1666",
                    "type": "inverter"
                }
            ]
        }
    } )
    let techInfo = Projects.findOne();
    Projects.update({ _id: techInfo._id }, 
      { $set: { "techInfo.equipInfo.1.quantity": 1000000 } }
    );
    console.log(Projects.findOne().techInfo);
});

```
I think you need this:

```
Projects.update(
    {_id: projectId},
    {$set: {"techInfo.equipInfo.1.quantity": 1000000}
);

```