Question: Normally I would use ansible to deploy my code to a server.

Using k8s, what options are there?

Since everything is in a container, I guess the best practice is for immutable deployments as oppose to updating the code on a running instance?

Is it possible to just update the git revision # in your .yaml file and you can make it so it pulls from a specific version to deploy?

Answer: 
Use the **ast module**.

**Ex:**

```
import ast
import pandas as pd
l =   "['expert executive', 'internal committee period', 'report name', 'entry']"
df = pd.DataFrame({"a": [l]})
print(type(df["a"][0]))
df["a"]  = df["a"].apply(ast.literal_eval)
print(type(df["a"][0]))

```

**Output:**

```
<type 'str'>
<type 'list'>

```
```
    a=   ['expert executive', 'internal committee period', 'report name', 'entry']
    c=list(a)
    type(c)

```

out[1]:
 list 

```
    c[1]

```

out[2]: expert executive

> 
> update your python , you should not even need the casting c=list(a). because your code 
> 
> 
> 

```
    a=   ['expert executive', 'internal committee period', 'report name', 'entry']

```

> 
> is working as a list for me ,fine
> 
> 
>