[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 optio

[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): # +++your

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 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 same to ls1. > > so

[Tutor] creating a cluster

2017-05-02 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": fa

[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', 'depe

Re: [Tutor] airflow dag

2017-05-28 Thread shubham goyal
Does anybody have answer? On May 27, 2017 1:53 PM, "Cameron Simpson" wrote: > On 25May2017 18:02, Alan Gauld wrote: > >> On 25/05/17 13:15, shubham goyal wrote: >> >>> I want to ask that can we pass the parameters as commandline arguments in >>&

Re: [Tutor] airflow dag

2017-05-29 Thread shubham goyal
on"}, params={'auth_token': args.passwd}, response_check=lambda response: True if response.status_code == 200 else False, dag=dag ) if i use this its not able to trigger the dag. for triggering the dag we use airflow trigger_dag dagid -r runid argumentpa

[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 ___ Tut

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" wrote: Thankyou all. Great place to learn. On Jun 29, 2017 5:55 PM, "Mats Wichmann" wrote: > On 06/29/2017 03:02 AM, Alan Gauld via Tutor wrote: > > On 29/06/17 03:14, shubh

[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] 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': > > {'i

Re: [Tutor] dictionaries are same but returning false

2017-07-05 Thread shubham goyal
On Jul 5, 2017 11:09 PM, "shubham goyal" 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" wrote: > > Hi Peter, > The way you find the issue i

[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 tf

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

2017-10-25 Thread shubham goyal
17 1:58 AM, "Alan Gauld via Tutor" 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 assume you > are

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. https://www.python.org/ftp/python/3.6