I install the xtensor by conda conda install -c conda-forge xtensor and I find the position where the xtensor is installed, path_xtensor="/amax/home/user/minic
I'm trying to compute the following definite integral: Integral I want to compute: where rho_ch is and a = 3.66 * 10^(-15) m (in meters) b = 0.54 * 10^(-15) m
I have a data frame that looks like this: Tag 0 skip_1 1 run 2 skip_1 3 run 4 skip_1 5
I have a column df['Date] which is a datetime64[ns] type and after doing the sheets= sorted(df['Date'].unique(), reverse =True) I get a numpy.datetime64('2022-
At the Top "right", there is the 2D-density plot of the recorded data (actual), fewer in number. On the top-left is the interpolated data (thin-plate), i.e. la
I'm running a Django app on Apache with mod_wsgi -- everything seems to be working but the following error has been clogging up my logs, running every 30 mins o
I need to use the librosa and tensorflow packages for a Neural Network audio classification project. librosa has a dependency on the numba package, which requir
I have a 2D numpy array from which I want to extract multiple sets of rows/ columns. # img is 2D array img = np.arange(25).reshape(5,5) array([[ 0, 1, 2, 3,
I want to create 10,000 sample (random phase but same power spectra) of my original time series using fourier transform. The method I want to opt is given in fi
Using python I'm trying to plot a sin wave and random distribution, then show where the ratio is greater than or equal to 3. I think I'm 90% of the way there bu
There are lots of constraints which I will use in optimization using scipy; so I need to generate the constraints by loop. Below there's a sample of my constrai
I am trying to create a sequential keras model with custom weights. The weights come from a row in a numpy array. When running the code I get the error: Value
I have a numpy array with columns that are in blocks. I want to transpose the blocks. It's conceptually simple, and I guess one can do it simply, but I dont kno
I implemented it but it prints all. print(ta.STOCHRSI(df["close"], 14, 5, 3, 0)[-1]) 2022-04-20 17:00:00 NaN 2022-04-20 18:00:00 NaN 2022-04-
I have an xarray.Dataset with two 1D variables sun_azimuth and sun_elevation with multiple timesteps along the time dimension: import xarray as xr import numpy
I'm trying to "paste" the values contained in the 1D array dataslice (1x8) into the 2D array values_matrix (9x9), following the position indices contained in th
My question is how to convert a vector on pandas data frame into tensors. The data frame has a resume column which has a vector representations of each resume d
Please I need someone to explain the function of excluded argument in Numpy vectorize function in a simple way.
I've seen the data types in the NumPy package of Python, but I found the description of the data type 'intp' a bit confusing. Its description is like: intp: Int
I'm currently working to diagonalize a 5000x5000 Hermitian matrix, and I find that when I use Julia's eigen function in the LinearAlgebra module, which produces