Unconverted data remains

2012-11-08 Thread Nikhil Verma
'Sunday December 9 2012 7:00pm ', 'Friday November 9 2012 6:00pm ', \ 'Friday November 9 2012 7:00pm ', 'Friday November 9 2012 7:00pm '] final_event_time = [datetime.strptime(iterable, '%A %B %d %Y %I:%M%p') for iterable i

random number

2012-03-25 Thread Nikhil Verma
. Thanks in advance -- Regards Nikhil Verma +91-958-273-3156 -- http://mail.python.org/mailman/listinfo/python-list

Re: random number

2012-03-25 Thread Nikhil Verma
; When i am using this it is sometimes giving me five digit and sometimes 6 >> . I want to avoid encryption . Can i have alphanumeric 6 digit random >> number from this . >> >> Thanks in advance >> >> -- >> Regards >> Nikhil Verma >> +91-958-273-

Re: random number

2012-03-26 Thread Nikhil Verma
: > * Nikhil Verma [2012-03-26 08:49]: > > Hi > > > > I want something to achieve like this :- > > > > def random_number(id): # I am passing it from request > > # do something > > return random_number > > > > Output > > > &

Re: How to filter a dictionary ?

2012-04-09 Thread Nikhil Verma
Thanks Shashank . It worked. On Tue, Apr 10, 2012 at 11:34 AM, Shashank Singh < shashank.sunny.si...@gmail.com> wrote: > > > On Mon, Apr 9, 2012 at 10:49 PM, Nikhil Verma wrote: > >> >> for_patient_type = {37: u'Test', 79: u'Real', 80: u&#

Re: How to filter a dictionary ?

2012-04-10 Thread Nikhil Verma
my concept which i just forgot. On Tue, Apr 10, 2012 at 12:54 PM, Shashank Singh < shashank.sunny.si...@gmail.com> wrote: > > > On Tue, Apr 10, 2012 at 12:16 AM, Dave Angel wrote: > >> On 04/10/2012 02:04 AM, Shashank Singh wrote: >> > On Mon, Apr 9, 2012 at 10:49

DateTime objectFormatting

2012-05-02 Thread Nikhil Verma
en GI Monday AM, May 7 Pancreas Tuesday PM, May 8 How can achieve AM and PM also ? with this datetime object Thanks in advance -- Regards Nikhil Verma +91-958-273-3156 -- http://mail.python.org/mailman/listinfo/python-list

Re: DateTime objectFormatting

2012-05-02 Thread Nikhil Verma
Thanks On Wed, May 2, 2012 at 8:27 PM, Chris Rebert wrote: > On Wed, May 2, 2012 at 7:49 AM, Nikhil Verma > wrote: > > > def __unicode__(self): > > return "%s %s" % (self.name, self.date_created.strftime("%A %B > %d")) > > > &g

return respective values when mutiple keys are passed in dictionary

2012-05-07 Thread Nikhil Verma
pple' What i want is some i pass keys in get and in return i should have all the values of those keys which i pass. ## mydict.get('a','b','c')###demo for what i want 'apple','boy','cat'### Output i want # -- Regards Nikhil Verma +91-958-273-3156 -- http://mail.python.org/mailman/listinfo/python-list

Re: return respective values when mutiple keys are passed in dictionary

2012-05-09 Thread Nikhil Verma
Thanks Arnaud List comprehension method really works nicely.sorry for late reply. On Mon, May 7, 2012 at 7:10 PM, Arnaud Delobelle wrote: > On 7 May 2012 12:31, Nikhil Verma wrote: > > HI All > > > > I was clearing my concepts on dictionary and stuck in this

tweaking random number

2012-05-09 Thread Nikhil Verma
like this "Kkrgt56r" Thanks in advance -- Regards Nikhil Verma +91-958-273-3156 -- http://mail.python.org/mailman/listinfo/python-list

Re:rndom number tweaks

2012-05-09 Thread Nikhil Verma
-- Forwarded message -- From: Chris Angelico To: python-list@python.org Cc: Date: Wed, 9 May 2012 17:44:00 +1000 Subject: Re: tweaking random number On Wed, May 9, 2012 at 5:01 PM, Nikhil Verma wrote: > Hi All > > I want to generate a random number of 8 digits which involve 3 number and

increment date present list of tuple by weeks python

2012-05-11 Thread Nikhil Verma
Neuropancreatic')('21 May monday AM Neuropancreatic')('28 May monday AM Neuropancreatic'), ('8 May tuesday PM Cardiovascular'),('15 May monday AM Neuropancreatic'),('22 May monday AM Neuropancreatic'),('29 May monday AM Neuropancreatic')] Th

How can we covert string into Datetime object

2012-05-11 Thread Nikhil Verma
string let say date_created = '11 May Friday PM ' and i want to convert it into datetime object like this datetime.datetime(2012, 5, 11, 4, 12, 44, 24734) Thanks in advance. Any help will be appreciated -- Regards Nikhil Verma +91-958-273-3156 -- http://mail.python.org/mailman/listinfo/python-list

Merge Two List of Dict

2016-11-30 Thread Nikhil Verma
Hey guys What is the most optimal and pythonic solution forthis situation A = [{'person_id': '1', 'adop_count': '2'}, {'person_id': '3', 'adop_count': '4'}] *len(A) might be above 10L* B = [{'person_id': '1', 'village_id': '3'}, {'person_id': '3', 'village_id': '4'}] *len(B) might be above 20L*

Fwd: Merge Two List of Dict

2016-12-01 Thread Nikhil Verma
Just editing the count it was from Indian place value notation. -- Forwarded message -- From: Nikhil Verma Date: Thu, Dec 1, 2016 at 12:44 PM Subject: Merge Two List of Dict To: python-list@python.org Hey guys What is the most optimal and pythonic solution forthis situation