Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How can i convert a string to an array with elements type float 64
Post: RE: How can i convert a string to an array with el...

Ok i'll replace "input" by "test". it's the same result. print test [  6.36505950e+10   6.36505951e+10   6.32830000e+01 ...,   0.00000000e+00 0.00000000e+00   0.00000000e+00] FV = np.array(test) pri...
zoya2385 Data Science 3 6,118 May-11-2017, 03:03 PM
    Thread: How can i convert a string to an array with elements type float 64
Post: How can i convert a string to an array with elemen...

Hello, I have to convert the variable input to an array with dtype float64. The variable input is as below: [code]print input [  6.36505950e+10   6.36505951e+10   6.32830000e+01 ...,   0.00000000e+...
zoya2385 Data Science 3 6,118 May-11-2017, 01:08 PM
    Thread: Error when converting MATLAB's datenum to Python's datetime
Post: RE: Error when converting MATLAB's datenum to Pyth...

Thank you for your reply, I met some difficulties to understand your proposition. The result is 2010-10-23 10:17:10 and does not belongs to [2010-11-04 00:00:00, 2011-06-11 00:00:00]. You proposed th...
zoya2385 General Coding Help 5 8,356 Apr-03-2017, 11:22 AM
    Thread: Error when converting MATLAB's datenum to Python's datetime
Post: RE: Error when converting MATLAB's datenum to Pyth...

Thank you for your reply, In fact, the datenum is number of milliseconds matlab_datenum = 6.365057116950260162e+10 python_datetime = datetime.datetime.fromtimestamp(matlab_datenum / 1e3) print (pyt...
zoya2385 General Coding Help 5 8,356 Mar-31-2017, 11:12 AM
    Thread: Error when converting MATLAB's datenum to Python's datetime
Post: Error when converting MATLAB's datenum to Python's...

Hello, I have to convert a MATLAB's datenum to Python's datetime. The following code is as below: import datetime matlab_datenum = 63650571169.50261 python_datetime = datetime.date.fromordinal(int(m...
zoya2385 General Coding Help 5 8,356 Mar-31-2017, 10:00 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020