Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to call a variable declared in a function in another python script
Post: How to call a variable declared in a function in a...
Hi,
I had two python scripts r1.py and r2.py
In r1.py I used a variable named "test" in a function and I want to use this in r2.py.
I tried but not able to get it.
Please help
r1.py
test = 10
def f1... |
|
lravikumarvsp |
General Coding Help |
2 |
2,932 |
Jun-04-2018, 02:49 AM |
|
|
Thread: how to start a seperate thread for every item in a list
Post: how to start a seperate thread for every item in a...
Hi,
I want to create a separate thread for every item in a list.
But with my script, each thread is taking all the items in a list.
Please help.
import glob
import os
import csv
import executor
impor... |
|
lravikumarvsp |
General Coding Help |
1 |
2,910 |
May-31-2018, 12:33 AM |
|
|
Thread: How to run different processes in a pool of 5
Post: How to run different processes in a pool of 5
Hi,
I had a python script which executes different processes in parallel.
How can I modify this script so that it can run the parallel processes in a pool of 5 at a time?
Please help
from multiproces... |
|
lravikumarvsp |
General Coding Help |
0 |
2,353 |
May-29-2018, 09:43 AM |
|
|
Thread: How to restart the processes in the pool after the pool got completed
Post: How to restart the processes in the pool after the...
Hi,
I had a python script which runs the processes in parallel in a pool of 3.
Is there any way to restart these process automatically after the pool of processes got completed?
Please help
from mu... |
|
lravikumarvsp |
General Coding Help |
0 |
3,876 |
May-27-2018, 02:18 PM |
|
|
Thread: How to run existing python script parallel using multiprocessing
Post: RE: How to run existing python script parallel usi...
Hi,
I had a python script that searches for an item in a list.
Now my requirement is to start a separate thread for each item search in the for loop.
How can I achieve this?
Please help
import glob
i... |
|
lravikumarvsp |
Data Science |
3 |
4,760 |
May-24-2018, 05:23 AM |
|
|
Thread: How to run existing python script parallel using multiprocessing
Post: Threading in Python for each item in list
Hi,
I had a python script that searches for an item in a list.
Now my requirement is to start a separate thread for each item search in the for loop.
How can I achieve this?
Please help
import glob
... |
|
lravikumarvsp |
Data Science |
3 |
4,760 |
May-24-2018, 03:31 AM |
|
|
Thread: How to run existing python script parallel using multiprocessing
Post: How to run existing python script parallel using m...
Hi
I had a python script which will search for directories containing the specific name and then search for the error files in those directories.
I want to run this script as a process, so that I can... |
|
lravikumarvsp |
Data Science |
3 |
4,760 |
May-23-2018, 03:04 AM |
|
|
Thread: python script for inserting rows into hbase table
Post: RE: python script for inserting rows into hbase ta...
Hi Buran,
How can I insert unique row key in this code
Please help
Thanks
Hi Buran,
Please find the code and output below
import glob
import connect_to_hbase
import os
import csv
import testingsu... |
|
lravikumarvsp |
General Coding Help |
7 |
7,095 |
May-22-2018, 06:33 AM |
|
|
Thread: python script for inserting rows into hbase table
Post: RE: python script for inserting rows into hbase ta...
Hi
I tried in that way also, still getting the same.
import glob
import connect_to_hbase
import os
import csv
import testingsun1
#Changing to the directory path to search for the directory name cont... |
|
lravikumarvsp |
General Coding Help |
7 |
7,095 |
May-22-2018, 06:21 AM |
|
|
Thread: python script for inserting rows into hbase table
Post: RE: python script for inserting rows into hbase ta...
I am not expecting anyone to write a code for me.
I need a suggestion.
I had a script for inserting data into hbase table.
import glob
import connect_to_hbase
import os
import csv
import testingsun1
#... |
|
lravikumarvsp |
General Coding Help |
7 |
7,095 |
May-22-2018, 03:28 AM |
|
|
Thread: python script for inserting rows into hbase table
Post: python script for inserting rows into hbase table
Hi,
I want to insert multiple rows into hbase table using for loop.
Please help |
|
lravikumarvsp |
General Coding Help |
7 |
7,095 |
May-21-2018, 08:36 AM |
|
|
Thread: How to call one python script and use its output in another python script
Post: RE: How to call one python script and use its outp...
|
lravikumarvsp |
General Coding Help |
3 |
32,383 |
May-16-2018, 02:08 AM |
|
|
Thread: How to call one python script and use its output in another python script
Post: How to call one python script and use its output i...
Hi,
I have two python scripts and I want to call 1st python script and use the output of this script in another python script.
For example:
I have two python scripts t1.py and t2.py
t1.py
a = 9
pri... |
|
lravikumarvsp |
General Coding Help |
3 |
32,383 |
May-15-2018, 03:05 AM |
|
|
Thread: for loop in while loop
Post: RE: for loop in while loop
Thanks Buran,
Its worked.
Thank you very much. |
|
lravikumarvsp |
General Coding Help |
5 |
3,090 |
May-15-2018, 02:55 AM |
|
|
Thread: for loop in while loop
Post: RE: for loop in while loop
Hi
The print statement in the while loop is printing the values but in the for loop it is not giving any thing |
|
lravikumarvsp |
General Coding Help |
5 |
3,090 |
May-14-2018, 05:51 PM |
|
|
Thread: for loop in while loop
Post: for loop in while loop
import glob
import os
a = ['ACM','ACX','GSK']
i = 0
while i < len(a):
print a[i]
b=str(a[i])
os.chdir('/ai2/data/dev/admin/inf/')
for file in glob.glob('*b*'):
print file
i = i + 1In the abo... |
|
lravikumarvsp |
General Coding Help |
5 |
3,090 |
May-14-2018, 05:07 PM |
|
|
Thread: groupby and window function
Post: RE: groupby and window function
test.groupBy('symbol','tradingDay',Window('timestamp','5 min')).agg({'open':'first','high':'max','low':'min','close':'last','volume':'sum'}).withColumnRenamed('first(open)',"Open").withColumnRenamed('... |
|
lravikumarvsp |
General Coding Help |
3 |
3,118 |
May-13-2018, 03:42 AM |
|
|
Thread: groupby and window function
Post: groupby and window function
test.groupBy('symbol','tradingDay',Window('timestamp','5 min')).agg({'open':'first','high':'max','low':'min','close':'last','volume':'sum'}).withColumnRenamed('first(open)',"Open").withColumnRenamed('... |
|
lravikumarvsp |
General Coding Help |
3 |
3,118 |
May-12-2018, 03:04 PM |
|
|
Thread: How to search and open an error file whose entity id is stored in hbase table
Post: How to search and open an error file whose entity ...
Team,
My task is to read an ENTITY_ID from a table and then search for the directory name containing that ENTITY_ID and open the error file in that directory to check for error message.
Please help.... |
|
lravikumarvsp |
General Coding Help |
2 |
2,846 |
May-08-2018, 03:05 AM |