
<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
how to create dummy variables for dataframe df1

<ASSISTANT_TASK:>
Python Code::
import pandas as pd
pd.get_dummies(df1.town)

<END_TASK>
