44 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
104
views
python swifter rolling() runtime error "__init__() got an unexpected keyword argument 'axis'"
When I'm running rolling() with swifter like below, I get a runtime error "init() got an unexpected keyword argument 'axis'".
import numpy as np
import pandas as pd
import swifter
t = np....
0
votes
1
answer
401
views
Can't import Swifter for python
I got installed Pandas 2.1.3 and Swifter 1.4.0.
When I try import swifter I got:
AttributeError: module 'pandas.core.strings' has no attribute 'StringMethods'
That's is going wrong?
This version of ...
0
votes
0
answers
48
views
h5py conflicts with swifter.apply
I am currently working with .h5 files. The file contains several tables, which I have to process (row filtering and other basic stuff). Then, as one of the steps, I have to compute an integral for ...
1
vote
1
answer
273
views
How can I set up a web application server using swifter?
I have an angular project that I want to deploy using swifter in swiftUI. I have tried the below code.
import Foundation
import Swifter
class WebServer {
let server = HttpServer()
let path: ...
0
votes
1
answer
275
views
How can I change launchEnvironment dictionary after UI test launching?
I use special server to substitute real url server responses (like Swifter). I send bunch of url path and new substitution url to launchEnvironment before app launching:
func launchNewApp(...
0
votes
0
answers
112
views
Genetic Programming with Numpy, Pandas and Swifter, how to speed up tree evaluation/fitness calculation?
I'm trying to implement a GP algorithm.
This is my first time using numpy/pandas/swifter, so perhaps that explains a lot.
I have a tree class (only relevant methods shown):
FUNCTIONS = [np.add, np....
2
votes
1
answer
61
views
Swifter error "AppRegistryNotReady: Apps aren't loaded yet." with Django models
I'm trying to populate a database with django models and I've used the Swifter structure to parallelize a pandas apply, like this:
df.swifter.force_parallel(enable=True).apply(lambda row: migrate(row),...
2
votes
0
answers
595
views
Reasons why swifter/dask/ray only use one core for an apply task?
I have this function that I would like to apply to a large dataframe in parallel:
from rdkit import Chem
from rdkit.Chem.MolStandardize import rdMolStandardize
from rdkit import RDLogger
RDLogger....
0
votes
1
answer
54
views
Is there a better way than Pandas apply?
I'm trying to find the distance from each point to the nearest shoreline.
I have two data.
Latitude, longitude information for each point
About the shoreline
ex) sample_Data (Point Data) =
...
0
votes
2
answers
811
views
Increase performance of df.rolling(...).apply(...) for large dataframes
Execution time of this code is too long.
df.rolling(window=255).apply(myFunc)
My dataframes shape is (500, 10000).
0 1 ... 9999
2021年11月01日 0.011111 0.054242
2021年11月04日 ...
1
vote
1
answer
59
views
Using Swifter to pull a twitter list will only pull tweets with media links and not ones with full text based on my case let statement in SwiftUI
I am currently building an app to display tweets from a twitter list. For some reason I am only appending tweets with media links, and skipping over tweets with just full text and no media. The JSON ...
0
votes
0
answers
263
views
Swift: Call function in ContentView
I have the following code, which is basically a template of a blank app that Xcode created, and I'm using a library called Swifter (renamed here Swifter2 because of name conflict) where Im trying to ...
0
votes
1
answer
478
views
How Does the Swifter Library Introduce a New Attribute to Objects?
Recently, I came upon this useful library called swifter to speed up the processing of pandas series in python. I am sure it does a lot of vectorized processing and optimization under the hood, but I ...
0
votes
1
answer
199
views
How to speed up (parallelize) a grouped row-wise rolling mean calculation?
I am calculating a grouped row-wise moving average on a large data set. However, the process takes a too long time on a single thread. How can I efficiently speed up the process?
Please find a ...
1
vote
0
answers
485
views
Python Pandas: Partition size is less than overlapping window size
I am trying to compute the slope of a time series using Pandas with Switfer by doing this.
My code:
import os.path
from os import listdir
from os.path import isfile, join
import numpy as np
import ...