def create_ft(self, target_file):
        table = {
            "name": self.title,
            "description": self.description,
            "isExportable": True,    # FIXME
            "columns": []
        }

        with open(target_file, 'rb') as csv_file:
            csv_reader = csv.reader(csv_file)
            cols = csv_reader.next()

            self.ft_headers = cols

            # FIXME:
            if self.ft_location_column and self.ft_latlng_column:
                if cols not in self.ft_location_column:
                    raise Exception(
                        "Column %s not found in the csv file" %
                        self.ft_location_column)

                if self.csv_column_define is None:
                    for c in cols:
                        if c == self.ft_latlng_column:
                            d = {"type": "LOCATION"}
                        else:
                            d = {"type": "STRING"}
                        d["name"] = c

                        table["columns"].append(d)
                else:
                    table["columns"] = self.user_define_column(
                        cols, self.csv_column_define)

            elif self.ft_location_column and not self.ft_latlng_column:
                if self.ft_location_column not in cols:
                    raise Exception(
                        "Column %s not found in the csv file" %
                        self.ft_location_column)
                if self.csv_column_define is None:
                    for c in cols:
                        if c == self.ft_location_column:
                            d = {"type": "LOCATION"}
                        else:
                            d = {"type": "STRING"}
                        d["name"] = c

                        table["columns"].append(d)
                else:
                    table["columns"] = self.user_define_column(
                        cols, self.csv_column_define)

            else:

                if self.csv_column_define is None:
                    for c in cols:
                        d = {"type": "STRING", "name": c}
                        table["columns"].append(d)
                else:
                    table["columns"] = self.user_define_column(
                        cols, self.csv_column_define)

        return table
dataset/ETHPy150Open tienfuc/gdcmdtools/gdcmdtools/put.py/GDPut.create_ft/swapped operands of `not in`