Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-27 Thread Adam Davis
On Wednesday, 27 April 2016 07:37:42 UTC+1, Chris Angelico wrote: > On Wed, Apr 27, 2016 at 4:26 PM, Adam Davis wrote: > > I understand what you're saying! But where you say: " the_set = set()", > > what would go within the set brackets? > > Nothing. The em

Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-26 Thread Adam Davis
On Tuesday, 26 April 2016 21:23:58 UTC+1, MRAB wrote: > On 2016-04-26 21:07, Adam Davis wrote: > > On Tuesday, 26 April 2016 20:52:54 UTC+1, Ian wrote: > >> On Tue, Apr 26, 2016 at 1:05 PM, Joaquin Alzola > >> wrote: > >> > Just an example. Didn&#x

Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-26 Thread Adam Davis
On Tuesday, 26 April 2016 20:52:54 UTC+1, Ian wrote: > On Tue, Apr 26, 2016 at 1:05 PM, Joaquin Alzola > wrote: > > Just an example. Didn't use the csv but just hope that it helps. > > > > name=[] > > name_exist="Dop" > > > > with open("dop.csv") as f: > > for line in f: > >

Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-26 Thread Adam Davis
On Tuesday, 26 April 2016 17:01:41 UTC+1, Adam Davis wrote: > I am wondering how to make my code function so it does not allow any of the > same values to be entered into a column in my CSV file created through > python. So I need to read into the CSV file and check if any names have

Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-26 Thread Adam Davis
On Tuesday, 26 April 2016 17:09:10 UTC+1, Joel Goldstick wrote: > On Tue, Apr 26, 2016 at 12:01 PM, wrote: > > I am wondering how to make my code function so it does not allow any of the > > same values to be entered into a column in my CSV file created through > > python. So I need to read in

Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-26 Thread Adam Davis
On Tuesday, 26 April 2016 17:14:36 UTC+1, Ian wrote: > On Tue, Apr 26, 2016 at 10:01 AM, wrote: > > I am wondering how to make my code function so it does not allow any of the > > same values to be entered into a column in my CSV file created through > > python. So I need to read into the CSV