Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Sign InSign Up

Softans

Softans Logo Softans Logo
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
Home/python

Softans Latest Questions

Charlis
Charlis
Asked: May 12, 2022

How to iterate each row according to values of row above?

Suppose sensors are attached to 3 climbers scaling a structure and these sensors capture a certain measurement at random times. The data are captured into the data frame below (the data frame is a lot longer than this): df ...

panadaspython
  • 0
  • 1 1 Answer
  • 7 Views
  • 0 Followers
Answer
Max
Max
Asked: April 26, 2022

Can’t convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first

I am trying to show results of GAN network on some specified epochs. The function for printing the current result was used previously with TF. I need to change in to pytorch. def show_result(G_net, z_, num_epoch, show=False, save=False, path='result.png'): ...

numpypythonpytorch
  • 0
  • 1 1 Answer
  • 9 Views
  • 0 Followers
Answer
Ghulam Nabi
Ghulam Nabi
Asked: March 24, 2022

I am getting this error pip : The term ‘pip’ is not recognized as the name of a cmdlet

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try ...

cmdletpippython
  • 0
  • 0 0 Answers
  • 19 Views
  • 0 Followers
Answer
Gary Christan
Gary Christan
Asked: March 21, 2022

When will the Python special method (i.e. magic method) __len__ be called?

I’m trying to make a Link-List Node class for a Link-List, as shown in the code: class LNode: def __init__(self, data=None, pnext=None): self.data = data ...

len()magic-methodpython
  • 0
  • 1 1 Answer
  • 13 Views
  • 0 Followers
Answer
Gary Christan
Gary Christan
Asked: March 1, 2022

Converting a python list into a dictionary while specifying certain elements as keys and values

I have the below list called My_list and want to convert it to a dictionary called My_dict. My_list=['I=113','PLAN=1','A=0PDFGB','B=23FGC','C=26TGFGD','D=19TGE','E=18TGA', 'I=120','PLAN=2','A=0PDFGB','B=23FGC','C=26TGFGD','D=19TGE','E=18TGA'] the output should be as below: My_dict={'I=113': ['PLAN=1', 'A=0PDFGB', 'B=23FGC', 'C=26TGFGD','D=19TGE', 'E=18TGA'], ...

dictionarylistpython
  • 0
  • 1 1 Answer
  • 10 Views
  • 0 Followers
Answer
Ashwin
Ashwin
Asked: March 1, 2022

“errorMessage”: “‘daily'”, “errorType”: “KeyError”,

I’m trying to test my lambda function and it’s telling me there’s a key error for ‘daily’ and I have no idea why. Everything else next to daily is fine somehow. Here’s my entire error message and the daily key ...

awserrormessagekeyerrorpython
  • 0
  • 0 0 Answers
  • 28 Views
  • 0 Followers
Answer
Ashwin
Ashwin
Asked: March 1, 2022

Combine two python codes doesn’t work well

I have two python codes. The first code is designed to split pdf to images then crop each image into four parts and the final output of images is put in Stickers folder from pathlib import Path import shutil import fitz from PIL import ...

python
  • 0
  • 1 1 Answer
  • 12 Views
  • 0 Followers
Answer
Ghulam Nabi
Ghulam Nabi
Asked: February 26, 2022

Automatically update dictionary values?

I have a list like this df = [‘20180001\tJane\t84\t73\n’, ‘20180002\tLee\t92\t89\n’, ‘20180007\tSteve\t57\t62\n’, ‘20180009\tDonald\t81\t84\n’, ‘20180011\tLuke\t58\t68\n’] and I put it in to the dictionary with this code: temp_dict = {} for i in range(len(df)): temp_dict[df[i].split(“\t”)[0]] ...

dictionarylistpython
  • 1
  • 0 0 Answers
  • 11 Views
  • 0 Followers
Answer
Gary Christan
Gary Christan
Asked: February 19, 2022

Extract ranges from sequential values

Task 1: I have my collection with documents in mongodb with value from sequential ranges as follow : {x:1} {x:2} {x:3} {x:5} {x:6} {x:7} {x:8} {x:20} {x:21} I need to extract a list of sequential ranges in the form(the count ...

mongodbpython
  • 0
  • 1 1 Answer
  • 40 Views
  • 0 Followers
Answer

Sidebar

Ask A Question

Recent Jobs

  • 9t5

    Jobs in Lahore

    • Anywhere
    • 9t5
    • Full Time
  • DPL

    Latest Jobs at DPL

    • Multiple
    • DPL
  • Smedia

    QA Consultant (Remote Job)

    • Remote
    • Smedia
  • Popular
  • Answers
  • Ghulam Nabi

    Why are the British confused about us calling bread rolls ...

    • 5 Answers
  • Alex

    application has failed to start because no appropriate graphics hardware ...

    • 4 Answers
  • Ghulam Nabi

    Is this statement, “i see him last night” can be ...

    • 4 Answers
  • Jesson Holder
    Jesson Holder added an answer You need to publish a version of your container. If it is… May 23, 2022 at 5:30 am
  • David Smith
    David Smith added an answer Well this seems to work, so it tells me I… May 17, 2022 at 1:05 pm
  • Jesson Holder
    Jesson Holder added an answer And I believe it means that we skip first 8… May 17, 2022 at 9:14 am

Trending Tags

android cypress flutter java javascript language python selenium typescript ubuntu

Top Members

Robert

Robert

  • 3 Questions
  • 1k Points
Luci

Luci

  • 5 Questions
  • 1k Points
Kevin O Brien

Kevin O Brien

  • 2 Questions
  • 1k Points

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Softans

Softans is a social questions & Answers Engine which will help you establish your community and connect with other people.

About Us

  • Blog
  • Jobs
  • About Us
  • Meet The Team
  • Contact Us

Legal Stuff

Help

Follow

© 2021 Softans. All Rights Reserved
With Love by Softans.