All Questions
Tagged with continuous python
51 questions
1
vote
1
answer
277
views
How do I call a function "x" amount of times in python? Using a for loop?
I have a cap.read() function where I am reading in frames from a video. The first call of the function is the zeroth frame, the second call is the 1st frame, etc... I am trying to call the function ...
0
votes
1
answer
64
views
How to write a loop random selected data and where the output is continuous data in python?
I am trying to run the following code multiple times. Each time I run it I get different results because of the df.sample function. The output is a dataframe with 2 rows by 750 columns of continuous ...
2
votes
1
answer
616
views
python implementation of matlab "d2c" function
I'm trying to convert a discrete transfer function to a continuous one (z to s) in python. It works perfectly fine in Matlab:
>> H = tf([0.0, 0.00011109058274028799, 0.0, 0.0, 0.0, 0.0],[1.0, -4....
1
vote
2
answers
475
views
Can I include continuous variable when optimising with CPMpy?
I need to run a model, where I optimise a diet within a set of constraints and call all integer solutions in the end. I have found a diet example matching almost what I need here: hakank.org. However, ...
0
votes
0
answers
66
views
Dataframe treat data with different decimal houses
I have this column in my dataset where the values are not consistent.
You can either find values with just one decimal house or four decimal values.
I need this columns to calculate some means.
How ...
0
votes
2
answers
588
views
python time series plot problem (discontinuous datetime, plot weird for some files)
Hi I am trying to plot some timeseries data but there are two problems.
Before describing the problems, there are many stations and data files that I use are for each station.
I mean, the files are ...
0
votes
0
answers
229
views
continuous Colormap over Surface Plot
I'd like to create a continuous colormap with matplotlib on a 3D Surface Plot, where the color depends on the z-value of the surface. But with the "normal" plt functions the colormap fills ...
0
votes
1
answer
116
views
Replace NaNs of a categorical variable by grouping them with respect to continuous variable
I'm facing problem while grouping the 'Weather cond' based on 'temperature' as it is a continuous variable. So, I need it to be grouped by converting 'temperature' to int64 and then replacing (by mode)...
0
votes
1
answer
207
views
Continuous Color Scale Adjusts on Filtering
I am working on a presidential elections project that involves filtering a choropleth map. My data is at the county level, and I have a drop down box that allows a user to select a state. The ...
0
votes
0
answers
534
views
continuous wavelet transform for csv file with python
I need help from someone who is good at cwt to help me. I want to perform CWT on a csv file with signal data, and then after processing the data file, to save it as a processed csv file, but I am ...
0
votes
0
answers
208
views
Simple effect of a variable at different levels of a continuous variable in linear mixed model
I have variable x which is continuous, and
variable y which is also continuous and
I have variable z (continuous) as the dependent variable.
Participants are the random effect variable and
I should do ...
0
votes
1
answer
296
views
How to derive odds-ratios and p-values to see if the difference is significant?
I have two different groups of samples: samples1 and samples2.
Moreover, I have 18 different elements and for each element, there is the corresponding score attained from using all samples of samples1 ...
0
votes
1
answer
424
views
How to read and push to an SQL database using pandas a file that is constantly getting data
I have a CSV file that is constantly getting new data chugged in (new rows appended at the end) by another program.
My goal is to read this file in python and push the incoming data on-line in a SQL ...
2
votes
2
answers
2k
views
Differential entropy is calculated with integrate.quad in scipy.stats?
scipy.stats.entropy calculates the differential entropy for a continuous random variable. By which estimation method, and which formula, exactly is it calculating differential entropy? (i.e. the ...
0
votes
2
answers
61
views
identify groups of ending contunious numbers from dataframe/list
data looks like this:
data=["q11-23-45","q11-23-46","q11-23-47","b11-73-50","q12-93-55","p11-23-59","p11-23-60","p11-23-61&...