All Questions
26 questions
1
vote
0
answers
53
views
BoundingBox dataclass implementation with cupy, cudf, and nvector
The dataset I'm working with is rather large so I've been experimenting with cudf and cupy. Here you can find instructions for ...
2
votes
0
answers
237
views
Do Mann-Kendall and Pettitt tests on each CSV file
Here is a function that will take each text file in a directory, do the Mann-Kendall and Pettitt tests, and then write the output to a text file. Would you please suggest me improve the code to make ...
1
vote
1
answer
79
views
Stacking Z axis on multiple [1440x720] DataFrames (X, Y)
Each datum represents a point in a 1440x720 image of the globe, The values are 0-9. Each new layer is of a higher elevation. I need to structure a DataFrame in a ...
2
votes
1
answer
79
views
dataframe mean outliers to NaN to derive a higher quality mean for area,speed,azimuth
I have some data that represents the area, speed(meters per second), and azimuth(rads) of a polygon. The objective is to determine the mean for each set of parameters. With that mean value, apply a ...
3
votes
1
answer
234
views
pandas dataframe of temps and numpy.linalg.lstsq
The problem is this. Forecast model data indicates at 0700Z the 1000 milibar temps will be -4C°. The forecaster knows that is incorrect, so they choose to make a correction. This correction should ...
5
votes
1
answer
134
views
pandas conditions across rows and columns
Is there a better way to accomplish this? The function determines the Category for each row based on some conditions. Another set of conditions determines the <...
1
vote
0
answers
56
views
Pandas Numpy Nvector to generate a storm track algorithm
I made previous post here, relating to this topic.
The class uses now uses some additional 3rd party libs nvector & pygc.
...
1
vote
1
answer
142
views
Multiple GeoJSON Feature Collections to a Pandas MultiIndex DataFrame
Edit: The end objective is to monitor the movement of severe weather, determine its vector and make a prediction.
I'm working with a GeoJSON ...
1
vote
1
answer
1k
views
Calculate a time weighted average of a feature
I'm trying to calculate a time weighted average of a feature (feat) based on previous rows by date for a given ...
2
votes
2
answers
115
views
Downloading COVID data and uploading graphs
So this is a project I have been working on for the last few weeks. Just started learning Python. Started out with bash scripting and got the itch to learn more. Anyway code fetches covid-19 data from ...
2
votes
1
answer
71
views
Resource reservation system
I'm using a function to determine if resources can be used again or not.
This is the numpy array I'm using.
...
1
vote
1
answer
52
views
Pandas : Apply Merge operations from a column
I have a data frame, which contains three columns:
...
6
votes
1
answer
133
views
Code optimisation: Converting dataframe to numpy's ndarray
I am working with a dataframe of over 21M rows.
...
2
votes
1
answer
258
views
Get the last activity per user per day in a dataframe
I have many users. Each time a user uses their smartphone it register them. I am determining the last time each user used their smartphone each day.
Additionally smartphone usages from 18:00 to 06:00, ...
3
votes
0
answers
117
views
Analyze Stock Market Bottom Timing without Looping over Data Frame Rows
I am replicating this blog post in Python.
The blog post shows that even if you know future stock market bottoms, only buying stocks when the stock market is below future stock market bottoms provides ...