Re: [Tutor] (no subject)

2018-03-28 Thread shubham goyal
Use this link to install python package and make sure to add the path in environment variables (just click the option it asks when you run the setup, Add Python to path or something). Recent python packages include pip also so you will get your problem solved.

Re: [Tutor] Not able to import Tensorflow in python script

2017-10-25 Thread shubham goyal
, "Alan Gauld via Tutor" <tutor@python.org> wrote: > On 25/10/17 19:24, shubham goyal wrote: > > I was trying to run this check script of tensorflow after installing the > > tensorflow successfully. > > Its not part of the standard library so I'll need to assu

[Tutor] Not able to import Tensorflow in python script

2017-10-25 Thread shubham goyal
Hello all, I was trying to run this check script of tensorflow after installing the tensorflow successfully. but it is not able to import tensorflow properly i think. but sometimes in python shell it gets imported. it is giving the error "can't import name template" script import tensorflow as

Re: [Tutor] dictionaries are same but returning false

2017-07-05 Thread shubham goyal
On Jul 5, 2017 11:09 PM, "shubham goyal" <skgoyal...@gmail.com> wrote: > Yha that's very smart. Only experience can drive you this way. Otherwise I > was checking value by value. > > On Jul 5, 2017 10:21 PM, "Ashfaq" <quazi.ash...@gmail.com> wrote

Re: [Tutor] dictionaries are same but returning false

2017-07-05 Thread shubham goyal
Thank you Peter. Silly mistakes  On Jul 5, 2017 5:10 PM, "Peter Otten" <__pete...@web.de> wrote: > shubham goyal wrote: > > > null=None > > x={'_udp_options': None, '_icmp_options': None, 'attribute_map': > > {'icmp_options': 'icmpOptions', 'proto

[Tutor] dictionaries are same but returning false

2017-07-05 Thread shubham goyal
null=None x={'_udp_options': None, '_icmp_options': None, 'attribute_map': {'icmp_options': 'icmpOptions', 'protocol': 'protocol', 'source': 'source', 'tcp_options': 'tcpOptions', 'is_stateless': 'isStateless', 'udp_options': 'udpOptions'}, '_is_stateless': False, 'swagger_types': {'icmp_options':

Re: [Tutor] Query regarding output

2017-06-29 Thread shubham goyal
Thanks all Great place to learn Python. On Jun 29, 2017 7:24 PM, "shubham goyal" <skgoyal...@gmail.com> wrote: Thankyou all. Great place to learn. On Jun 29, 2017 5:55 PM, "Mats Wichmann" <m...@wichmann.us> wrote: > On 06/29/2017 03:02 AM, Alan Gauld via

[Tutor] Query regarding output

2017-06-29 Thread shubham goyal
Hello all, This Question is asked in some exam. i am not able to figure it out. a = [0, 1, 2, 3] for a[-1] in a: print(a[-1]) its giving output 0 1 2 2 it should be 3 3 3 3 as a[-1] belongs to 3. can anyone help me figuring it out. Thanks ___

Re: [Tutor] airflow dag

2017-05-29 Thread shubham goyal
runid argumentparser work in python python script.py --passwd passwd #this work but this is not a python script airflow trigger_dag dagid -r runid --passwd passwd sorry for my english. On Sun, May 28, 2017 at 9:17 PM, shubham goyal <skgoyal...@gmail.com> wrote: > Hello all, > > >

Re: [Tutor] airflow dag

2017-05-28 Thread shubham goyal
Does anybody have answer? On May 27, 2017 1:53 PM, "Cameron Simpson" <c...@zip.com.au> wrote: > On 25May2017 18:02, Alan Gauld <alan.ga...@yahoo.co.uk> wrote: > >> On 25/05/17 13:15, shubham goyal wrote: >> >>> I want to ask that can we pass the p

[Tutor] airflow dag

2017-05-25 Thread shubham goyal
He guys, I want to ask that can we pass the parameters as commandline arguments in airflow when we are triggering the dag and access them inside the dag's python script/file. script: from airflow import DAG from datetime import datetime,timedelta default_args = { 'owner': 'airflow',

[Tutor] creating a cluster

2017-05-03 Thread shubham goyal
Hello tutors, here i am trying to create a cluster on cloud using json data but its giving some error can you walk me through it. thankyou import urllib2 import requests data="""{ "spark_version": null, "presto_version": null, "label": [ "test" ], "disallow_cluster_termination":

Re: [Tutor] sorted function

2017-04-15 Thread shubham goyal
Thankyou. got it. On Sat, Apr 15, 2017 at 5:44 AM, Steven D'Aprano <st...@pearwood.info> wrote: > On Fri, Apr 14, 2017 at 11:59:25PM +0530, shubham goyal wrote: > > > sorted(ls) > > sorted(ls1) > > Here you sort ls and throw the result away, then you do the s

[Tutor] sorted function

2017-04-14 Thread shubham goyal
Dear mentors, sorted function is not working when i am trying to sort the list of strings but list.sort() is working. can you please help me understand.In this question i was trying to sort the list but first sorting the letter starting from x and taking them first. def front_x(words): #

[Tutor] (no subject)

2017-04-09 Thread shubham goyal
Hello, I am a c++ programmer and wants to learn python for internship purposes. How can i learn the advanced python fast mostly data science packages, I know basic python. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription