Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How do loop over curl and 'put' different values in API call?
Post: How do loop over curl and 'put' different values i...
Hi
Objective: How to loop through over curl statement and 'put' key and value into curl put statement
Input: This is my sql query output in json format. for example I mentioned two columns here.
[{... |
|
onenessboy |
General Coding Help |
0 |
1,216 |
Jun-05-2022, 05:24 AM |
|
|
Thread: Error while checking for key in Dictionary
Post: RE: Error while checking for key in Dictionary
(Aug-14-2020, 11:42 AM)ndc85430 Wrote: (Aug-13-2020, 05:20 PM)onenessboy Wrote: status = json.loads(response.text)
items = status.items()
tags = items['value']['tags']
print(tags)
... |
|
onenessboy |
General Coding Help |
5 |
2,658 |
Aug-14-2020, 01:06 PM |
|
|
Thread: Error while checking for key in Dictionary
Post: RE: Error while checking for key in Dictionary
(Aug-13-2020, 05:29 PM)ndc85430 Wrote: Are you passing the right thing to get? ['value'][0] gives you the string 'value' and then you're trying to look up 'tags' from that, which clearly doesn't mak... |
|
onenessboy |
General Coding Help |
5 |
2,658 |
Aug-14-2020, 09:08 AM |
|
|
Thread: Error while checking for key in Dictionary
Post: Error while checking for key in Dictionary
Hi,
I am trying below code to get values from dict
My sample dictionary look like this
{'value': [{'id': '/subscriptions/xxxxxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Compute/disks/xxxxxxx'... |
|
onenessboy |
General Coding Help |
5 |
2,658 |
Aug-13-2020, 05:20 PM |
|
|
Thread: How to compare two json and write to third json differences with pandas and numpy
Post: How to compare two json and write to third json di...
Hi
I am trying to compare two json and then write another json with columns names and with differences as yes or no. I am using pandas and numpy
Input files: And these input files are dynamic, for ... |
|
onenessboy |
Data Science |
0 |
4,695 |
Jul-24-2020, 01:56 PM |
|
|
Thread: help need with running python script on remote windows machine
Post: RE: help need with running python script on remote...
hmm. yeah saw some google post wmi , the above code taken from that reference only... its not executing intended file |
|
onenessboy |
General Coding Help |
2 |
11,092 |
Dec-14-2018, 03:02 PM |
|
|
Thread: help need with running python script on remote windows machine
Post: help need with running python script on remote win...
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
Code:
#!/usr/... |
|
onenessboy |
General Coding Help |
2 |
11,092 |
Dec-14-2018, 01:57 PM |
|
|
Thread: Taking screenshots with http authentication with username and password from website
Post: RE: Taking screenshots with http authentication wi...
Hi,
I tried below selenium/python code with partial success
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome(executa... |
|
onenessboy |
Web Scraping & Web Development |
3 |
4,088 |
Nov-30-2018, 04:17 AM |
|
|
Thread: Taking screenshots with http authentication with username and password from website
Post: Taking screenshots with http authentication with u...
Dear All,
Is that possible to open a url in chrome and then login with credentials and then click on particular link there ,then taking screenshot of that page via shell script ? I need to open an we... |
|
onenessboy |
Web Scraping & Web Development |
3 |
4,088 |
Nov-29-2018, 05:13 PM |
|
|
Thread: Python Oracle query
Post: RE: Python Oracle query
Hi,
apologies for delayed reply
Its still show error like this
[oracle@abora ~]$ python orcltest1.py ABTESTLOCK
Traceback (most recent call last):
File "orcltest1.py", line 23, in <module&g... |
|
onenessboy |
Data Science |
5 |
4,061 |
Oct-11-2018, 11:58 AM |
|
|
Thread: Python Oracle query
Post: RE: Python Oracle query
(Oct-08-2018, 05:00 PM)stullis Wrote: {name} is not formatted in your code. I'd wager that's the source of the problem. Just list the oracle_connection_string, try using the format method to replace... |
|
onenessboy |
Data Science |
5 |
4,061 |
Oct-08-2018, 05:17 PM |
|
|
Thread: Python Oracle query
Post: Python Oracle query
Hi Friends,
Trying to connect to oracle database and query a table based on value passed to it via runtime parameter and place result set in pandas dataframe.
import pandas as pd
from pandas import... |
|
onenessboy |
Data Science |
5 |
4,061 |
Oct-08-2018, 04:41 PM |
|
|
Thread: csv to Table format output
Post: RE: csv to Table format output
(Apr-01-2018, 11:14 PM)scidam Wrote: I like to use pandas in such cases.
import pandas as pd
data = pd.read_csv('your_file.csv')
# now we can do anything with the data easily
data['SERVICE NAME'... |
|
onenessboy |
Data Science |
5 |
3,954 |
Apr-02-2018, 12:00 PM |
|
|
Thread: csv to Table format output
Post: RE: csv to Table format output
(Apr-01-2018, 11:14 PM)scidam Wrote: I like to use pandas in such cases.
import pandas as pd
data = pd.read_csv('your_file.csv')
# now we can do anything with the data easily
data['SERVICE NAME'... |
|
onenessboy |
Data Science |
5 |
3,954 |
Apr-02-2018, 07:06 AM |
|
|
Thread: csv to Table format output
Post: csv to Table format output
Hi experts..
I have a program like below
import pytablewriter
writer = pytablewriter.MarkdownTableWriter()
writer.table_name = "example_table"
writer.header_list = ["SERVICE NAME", "TEAM NAME", "CI O... |
|
onenessboy |
Data Science |
5 |
3,954 |
Apr-01-2018, 02:05 PM |
|
|
Thread: need bit help in formatting
Post: RE: need bit help in formatting
(Mar-15-2018, 05:10 PM)buran Wrote: if you have control over the output of previous script - change it
Yes i tried to do that. this was the original line
MESSAGE = {'text': '\n'.join(msg_list).lstr... |
|
onenessboy |
General Coding Help |
3 |
2,862 |
Mar-15-2018, 05:33 PM |
|
|
Thread: need bit help in formatting
Post: need bit help in formatting
Dear experts
I have python script which gives output like..The below is string
b"{'text': 'Cluster1 is healthy\nNode 123.4.0.3:8091 is Up\nNode 123.4.0.2:8091 is Up\nNode 123.4.0.4:8091 is Up'}\n{'t... |
|
onenessboy |
General Coding Help |
3 |
2,862 |
Mar-15-2018, 04:56 PM |
|
|
Thread: Loop issue
Post: RE: Loop issue
(Feb-27-2018, 07:16 AM)Gribouillis Wrote: Alright, use msg_list.extend(['', msg1])
Thank you so much Gribouillis !
apologies for delayed reply...
It worked like a charm...all credit to you
Much gra... |
|
onenessboy |
General Coding Help |
11 |
6,672 |
Mar-03-2018, 08:40 AM |
|
|
Thread: Loop issue
Post: RE: Loop issue
(Feb-26-2018, 07:02 PM)Gribouillis Wrote: Do you understand what the code does? msg_list is a local variable in the function. The code that follows needs to be indented to become part of the functio... |
|
onenessboy |
General Coding Help |
11 |
6,672 |
Feb-27-2018, 05:39 AM |
|
|
Thread: Loop issue
Post: RE: Loop issue
(Feb-26-2018, 03:55 PM)Gribouillis Wrote: You only need to write this at line 25 and remove the rest of the function (this code needs to be indented at the same level as count = 0)
healthy = all(v =... |
|
onenessboy |
General Coding Help |
11 |
6,672 |
Feb-26-2018, 06:32 PM |