Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Basic help with a dataframe
Post: RE: Basic help with a dataframe
Hmm no one has any idea how to access the timestamp in a dataframe?? |
|
stylingpat |
Data Science |
2 |
2,609 |
May-21-2021, 05:49 PM |
|
|
Thread: Basic help with a dataframe
Post: RE: Basic help with a dataframe
I dont know what happened, or why my page is saying I've posted 4 of these posts. And I cant find a way to delete older posts. I "re-previewed" my post 4 times and for something reason it posted them.... |
|
stylingpat |
General Coding Help |
2 |
18 |
May-10-2021, 05:32 PM |
|
|
Thread: Basic help with a dataframe
Post: Basic help with a dataframe
Hello everyone, I am just running a loop through a data frame. Here is an example of it.
Output:{'NQ':
Date High Low Close MA_50 Return ... |
|
stylingpat |
Data Science |
2 |
2,609 |
May-10-2021, 05:23 PM |
|
|
Thread: Trying to separate a loop across multiple threads
Post: Trying to separate a loop across multiple threads
Hey guys, what I am trying to perform is a reqMktData pull (I'm pulling the bid,ask,last prices) for multiple tickers. Normally I would just change the ID number for each ticker.. but for this specifi... |
|
stylingpat |
General Coding Help |
0 |
1,678 |
May-05-2021, 05:21 PM |
|
|
Thread: Run one Python Script from Another Script
Post: Run one Python Script from Another Script
Hello, if I do import "scriptname" I can load one python script from another. I am trying to make a main script that launches 5 seperate python programs at the same time.. but in different shells.. or... |
|
stylingpat |
General Coding Help |
1 |
1,940 |
May-03-2021, 01:44 PM |
|
|
Thread: Two separate dataframes, two seperate programs
Post: RE: Two separate dataframes, two seperate programs
Awesome thank you so much! **cool** |
|
stylingpat |
General Coding Help |
2 |
2,004 |
Apr-28-2021, 07:56 PM |
|
|
Thread: Two separate dataframes, two seperate programs
Post: Two separate dataframes, two seperate programs
Hello, I am trying to get two programs to "talk" to each other. The information will be stored in a Pandas Dataframe. Is it possible to have them talk to each other? And how would you do it? |
|
stylingpat |
General Coding Help |
2 |
2,004 |
Apr-28-2021, 12:45 PM |
|
|
Thread: 2 Different Sorts in a Dataframe
Post: RE: 2 Different Sorts in a Dataframe
Got it right here, if anyone is interested in also learning!
https://datatofish.com/select-rows-pandas-dataframe/
**angel** |
|
stylingpat |
General Coding Help |
1 |
1,928 |
Apr-14-2021, 03:02 PM |
|
|
Thread: 2 Different Sorts in a Dataframe
Post: 2 Different Sorts in a Dataframe
Hello everyone!
I have a dataframe with 2 columns (A,B) and 3 rows.
A B
1 X
2 Y
3 Z
I am using this code right now
variable = df["A"].sort_values(ascending=True).values[-1]To assign the curren... |
|
stylingpat |
General Coding Help |
1 |
1,928 |
Apr-14-2021, 02:52 PM |
|
|
Thread: Timing of a while loop
Post: RE: Timing of a while loop
Yeah sorry about the confusing question, I tried my best to articulate it.
I’ll go through the above code this afternoon.
I was thinking this might work for me as well:
function_one():
if rese... |
|
stylingpat |
General Coding Help |
4 |
6,852 |
Mar-31-2021, 10:48 AM |
|
|
Thread: Timing of a while loop
Post: Timing of a while loop
I have a while loop that is happening every 30 seconds
def modelTimer():
starttime = time.time()
timeout = time.time() + 60*60*6.5
while time.time() <= timeout:
model(app)
... |
|
stylingpat |
General Coding Help |
4 |
6,852 |
Mar-30-2021, 09:23 PM |
|
|
Thread: Reconnect to an API?
Post: RE: Reconnect to an API?
So after some head aching searching, it seems the easiest way to do this is to have a totally separate script monitoring some type of connection, if the connection goes out, close the original script ... |
|
stylingpat |
General Coding Help |
1 |
1,602 |
Mar-27-2021, 05:42 PM |
|
|
Thread: Reconnect to an API?
Post: Reconnect to an API?
Hello everyone, my Python program connects to an API, is there any way to make it try and "auto reconnect" every 1 min to the said API if it gets disconnected?
My connection code is on a single threa... |
|
stylingpat |
General Coding Help |
1 |
1,602 |
Mar-27-2021, 03:24 PM |
|
|
Thread: Converting decimals
Post: RE: Converting decimals
OoOooOoo thats how you split the number and the decimal up! Thank you thank you!! **dance** **heart** |
|
stylingpat |
General Coding Help |
3 |
2,128 |
Mar-27-2021, 01:36 PM |
|
|
Thread: Converting decimals
Post: Converting decimals
Good morning!
If I have a variable that is let’s say 2000.846
What would be the easiest way to convert the decimals to a specific number?
If above .75 convert to .50
If above .50 convert to .25
If ... |
|
stylingpat |
General Coding Help |
3 |
2,128 |
Mar-27-2021, 11:23 AM |
|
|
Thread: How would I go about this error?
Post: How would I go about this error?
Output:Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users\zenfi\AppData\Local\Programs\Python\Python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
... |
|
stylingpat |
General Coding Help |
1 |
7,901 |
Mar-24-2021, 12:39 PM |
|
|
Thread: Why doesn't this print statement work?
Post: RE: Why doesn't this print statement work?
Its kinda funny thinking about this now, how I can't look at that yet and understand it. **biggrin** That block of code is a blur to my eyes and brain. Its not because its intellectually out of reac... |
|
stylingpat |
General Coding Help |
10 |
5,773 |
Mar-23-2021, 07:46 PM |
|
|
Thread: Why doesn't this print statement work?
Post: RE: Why doesn't this print statement work?
Like this stuff.. I just cannot comprehend
class classname:
def createname(self, name):
self.name = name;
def displayname(self):
return self.name;
def saying(self):
... |
|
stylingpat |
General Coding Help |
10 |
5,773 |
Mar-23-2021, 07:36 PM |
|
|
Thread: Why doesn't this print statement work?
Post: RE: Why doesn't this print statement work?
Awesome thank you so much, I'll go through the pages. Sorry alot of the stuff on stackoverflow just goes way over my head.. **cool** |
|
stylingpat |
General Coding Help |
10 |
5,773 |
Mar-23-2021, 07:27 PM |
|
|
Thread: Why doesn't this print statement work?
Post: RE: Why doesn't this print statement work?
This is my v3.9 IDLE
Output:Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>... |
|
stylingpat |
General Coding Help |
10 |
5,773 |
Mar-23-2021, 07:06 PM |