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
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
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
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
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
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
>>&
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
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
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
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':
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
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
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
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
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
15 matches
Mail list logo