Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Grouping Data based on 30% bracket
Post: RE: Grouping Data based on 30% bracket
I want result as
(a,b,c) and (b,c,d)
With current implementation I think we will get
(a,b) (b,c) (c,a) (c,d)(b,d) |
|
purnima1 |
General Coding Help |
4 |
1,141 |
Mar-09-2023, 06:31 PM |
|
|
Thread: Grouping Data based on 30% bracket
Post: RE: Grouping Data based on 30% bracket
(Mar-09-2023, 06:26 PM)deanhystad Wrote: What do you want done if a, b, and c are within 30% of each other, and b, c and d are within 30% of each other. Should the groups be:
(a, b, c), (d)
(a, b. ... |
|
purnima1 |
General Coding Help |
4 |
1,141 |
Mar-09-2023, 06:28 PM |
|
|
Thread: Grouping Data based on 30% bracket
Post: Grouping Data based on 30% bracket
I want to one group where all values are with 30% of each other.
working code is follows :
from itertools import combinations
def pctDiff(A,B):
return abs(A-B)*200/(A+B)
def main():
dict2... |
|
purnima1 |
General Coding Help |
4 |
1,141 |
Mar-09-2023, 05:42 PM |
|
|
Thread: Grouping Data based on 30% bracket
Post: Grouping Data based on 30% bracket
Hello All,
I am sharing use case which I am not sure falls under this forum or not , so need guidance for that. I only have basic knowledge of python.
I have scenario where we have some Vendor data... |
|
purnima1 |
Data Science |
0 |
940 |
Feb-16-2023, 07:14 PM |
|
|
Thread: unable to run unix command using spur
Post: RE: unable to run unix command using spur
Hi team
Please help in resolving the issue |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-07-2018, 07:57 AM |
|
|
Thread: unable to run unix command using spur
Post: RE: unable to run unix command using spur
hi Experts,
I tried 3 changes at line no. 7 but none of them worked
shell.run(["sh", "-c", "echo $PATH"])
shell.run(["echo $PATH"])
shell.run(["echo Hello"])Error:Traceback (most recent call las... |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-05-2018, 08:39 AM |
|
|
Thread: unable to run unix command using spur
Post: RE: unable to run unix command using spur
hi All,
I am getting same error.
import spur
import spur.ssh
try:
shell = spur.SshShell(hostname="EDQDVTAPP01.XXXXX.com",port=22,username="applogs",password="XXXXX",missing_host_key=spur.ssh.Miss... |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-05-2018, 07:16 AM |
|
|
Thread: unable to run unix command using spur
Post: RE: unable to run unix command using spur
hi In my post I have mentioned l only . I am not using ls . Still it is giving same error with l |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-05-2018, 06:48 AM |
|
|
Thread: unable to run unix command using spur
Post: RE: unable to run unix command using spur
Hi expert,
As you said I have changed my code as follows but still getting error. How can I ensure before running any command I am hit that server .Till now I am trying to do this by running ls comm... |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-05-2018, 06:32 AM |
|
|
Thread: [split] Is there any issue related to path defined somewhere
Post: RE: [split] Is there any issue related to path def...
Hi,
I am really sorry . I thought I was writing on my post. Please ignore my question |
|
purnima1 |
General Coding Help |
2 |
2,392 |
Sep-05-2018, 06:28 AM |
|
|
Thread: [split] Is there any issue related to path defined somewhere
Post: [split] Is there any issue related to path defined...
Hi Team,
Is there any issue related to path defined somewhere |
|
purnima1 |
General Coding Help |
2 |
2,392 |
Sep-05-2018, 04:22 AM |
|
|
Thread: unable to run unix command using spur
Post: RE: unable to run unix command using spur
Hi Barun,
I think you have included [] around command. I tried that also but getting same error |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-05-2018, 04:14 AM |
|
|
Thread: unable to run unix command using spur
Post: unable to run unix command using spur
Hi Experts ,
I am trying to run simple command but getting an error
import spur
import spur.ssh
try:
shell = spur.SshShell(hostname="EDQDVTAPP01.XXXXXX.com",port=22,username="applogs",password="XXX... |
|
purnima1 |
General Coding Help |
11 |
6,908 |
Sep-04-2018, 01:43 PM |
|
|
Thread: Getting extra charter in result
Post: RE: Getting extra charter in result
Hi All,
I got solution for this. We are getting  extra character because file is probably encoded in UTF-8 with BOM. So to resolve this we need to open file in below mentioned way :
data = op... |
|
purnima1 |
General Coding Help |
2 |
2,722 |
Apr-03-2018, 10:49 AM |
|
|
Thread: unable to convert text file in dictionary
Post: RE: unable to convert text file in dictionary
(Mar-29-2018, 12:39 PM)snippsat Wrote: As mention key will be overwritten because of key collision.
Can use defaultdict which can collect values in a list.
Output:CC_FIPS FULL_NAME_ND
AN Aixas
A... |
|
purnima1 |
General Coding Help |
6 |
4,231 |
Apr-02-2018, 07:44 AM |
|
|
Thread: Getting extra charter in result
Post: Getting extra charter in result
Hi All,
When I am trying to create dictionary from file. I am getting some additional characters. Can anyone confirm why Am I getting this
filename='C:/Users/pubhatia/Documents/learning/python/quer... |
|
purnima1 |
General Coding Help |
2 |
2,722 |
Apr-02-2018, 07:36 AM |
|
|
Thread: unable to convert text file in dictionary
Post: RE: unable to convert text file in dictionary
hi All,
I have changed my code and its working fine. But yes Thanks for giving new solution of defult dict.
I have shared sample data , I have 2.5 million of rows and collision can happen so should I... |
|
purnima1 |
General Coding Help |
6 |
4,231 |
Mar-29-2018, 02:49 PM |
|
|
Thread: unable to convert text file in dictionary
Post: unable to convert text file in dictionary
Hi Team,
I am trying to convert one text file in dictionary but it remains empty . Please help .
text files sample records are as follows
CC_FIPS FULL_NAME_ND
AN Aixas
AN Aixirivall
AN Aixovall
A... |
|
purnima1 |
General Coding Help |
6 |
4,231 |
Mar-29-2018, 09:37 AM |
|
|
Thread: unable to load file using python selenium
Post: RE: unable to load file using python selenium
Hi All,
Please help in resolving this issue. |
|
purnima1 |
Web Scraping & Web Development |
4 |
6,461 |
Dec-12-2017, 05:02 AM |
|
|
Thread: How to click the button automatically using python
Post: RE: How to click the button automatically using py...
Hi Nilamo,
You were right there was some dynamic parts which were getting uploaded later on.
I was stuck on this issue from last 5 days. Thank you so much, at-least now I can move forward and do w... |
|
purnima1 |
Web Scraping & Web Development |
22 |
46,654 |
Dec-07-2017, 04:58 AM |