Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

1 vote
2 answers
5k views

pip --version led to open raise FileNotFoundError("Can't open orphan path")

I am working on calling the Rest-API from Python. All the Rest-API I have tested using Postman and are working fine. But, While executing those using Python scripts I am facing certification error. I ...
eddie's user avatar
  • 33
0 votes
0 answers
33 views

Exporting chart from existing xlsm

I have multiple xlsm files that contains charts. I want to export the charts in png format using python. Found multiple posts to export charts in xlsx but not xlsm. Could someone help me?
Fin123's user avatar
  • 11
0 votes
3 answers
315 views

How to import other Python files

I have this file, abc.py: def asb(): print("Hello, ") def xyz(): print("World!") In my main.py file, from abc import asb from abc import xyz I want to import both asb ...
Shivam Pandey's user avatar
0 votes
1 answer
812 views

How to solve this? Error install cryptography for dirsearch tool

I don't know why this error, I want to solve this error, so that I can run the dirsearch tool properly. Note: pip3 install cryptography not helpful. Click to see screenshot
Kabar Kabari's user avatar
0 votes
0 answers
11 views

How to convert CrossTab data to simple dataframe in Pandas or python? [duplicate]

I have a crosstab: 1 Erratic Intermittent Lumpy Smooth 2 Intermittent 20 77 9 450 Lumpy ...
Kyra's user avatar
  • 29
-1 votes
2 answers
79 views

how to compare given date (string) is current date to last 8 date or not? [closed]

I have an one date in a string. How can I figure out this date REFRESH = ("2021-11-25 00:27:23") to current date from last 8 days from datetime import datetime from datetime import ...
Ajith MsM's user avatar
-1 votes
2 answers
227 views

i have thes exam and i dont know what is the problem in my answer

Write a Python code snippet use 'if-elif' flow control along with a 'while' loop that will: Instruct a user to input a number that is greater than 0 and less than or equal to 10 and store the input ...
Yassin Askour's user avatar
0 votes
0 answers
26 views

Merging two Dictionaries with togrther [duplicate]

I try to merge two dictionaries with together with out update() method. What is your offer to use with new ways?
faridmohammadi chianeh's user avatar
0 votes
1 answer
171 views

Python Genetic Algorithm: Setting Functions for Usage

I am experimenting with python about genetic algorithm. In other words, I want to make a program to simulate random process and control come parts (like experiment) to play around with variables and ...
python noobie's user avatar
-3 votes
2 answers
55 views

Palindrome using recursion [closed]

Please help me to code correctly in Python. T = int(input("Number of test cases: ")) for i in range(T+1): def checkPalindrome(str): l=len(str) ...
Shivangi's user avatar
0 votes
1 answer
38 views

How can I give a column the same number every 7 times in a dataframe?

How can I give a column the same number every 7 times in a dataframe? In the last column, 'ww' I want to put the same 1 from 1-21 to 1-27, the same 2 from 1-28 to 2-3,.. 2 for the next 7 days 3 for ...
Aaron's user avatar
  • 5
1 vote
1 answer
706 views

Python BeautifulSoup getting KeyError for image src

I am trying to get product image url from this page . I am getting image src but aslo getting this error KeyError: 'data-lazy-src' here is my code: image = soup.select('img.attachment-shop_single') ...
boyenec's user avatar
  • 1,637
1 vote
1 answer
26 views

module thats not producing output

Heres is the main driver code. import Proj05Runner str = 'The lazy brown fox jumped over the fence.' subStr = 'fox' result = Proj05Runner.run(str,subStr) print(result) Here is the code i have so far ...
MMx15's user avatar
  • 11
0 votes
1 answer
75 views

Create repetative rows by iterating between dates in two column

I have three column in a data frame ID - A001 DoA - 15-03-2014 - Date of Admission DoL - 17-08-2020 - Date of Leaving Create three new column: Cal_Yr - Calender Year Str_Date - Start of Date ...
d unpredictible's user avatar
0 votes
1 answer
75 views

Python DataFrame chunk extract issue

I want to divide a data frame into chunks (eg: if we have 100 rows, I divide them as 20 chunks) and for each chunk with 5 values in it, I need to apply 5 update queries(5 different tables) on this ...
Raghav's user avatar
  • 161

15 30 50 per page
1
2 3 4 5
15