Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread boB Stepp
On Sat, Sep 21, 2019 at 9:01 PM Michael Torrie wrote: > > On 9/21/19 12:51 PM, Dave Martin wrote: > > You seem to have the expectation that you know more about coding than > > me and that you can insult me without me retaliating. If I were you, > > I would leave this forum and never respond to ano

Re: [Tutor] Most efficient way to replace ", " with "." in a array and/or dataframe

2019-09-21 Thread Cameron Simpson
On 21Sep2019 20:42, Markos wrote: I have a table.csv file with the following structure: , Polyarene conc ,, mg L-1 ,,, Spectrum, Py, Ace, Anth, 1, "0,456", "0,120", "0,168" 2, "0,456", "0,040", "0,280" 3, "0,152", "0,200", "0,280" I open as dataframe with the command: data = pd.read_csv ('

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Michael Torrie
On 9/21/19 12:51 PM, Dave Martin wrote: > You seem to have the expectation that you know more about coding than > me and that you can insult me without me retaliating. If I were you, > I would leave this forum and never respond to another person question > again, if you think that you can rudely ra

Re: Most efficient way to replace "," with "." in a array and/or dataframe

2019-09-21 Thread MRAB
On 2019-09-22 00:42, Markos wrote: Hi, I have a table.csv file with the following structure: , Polyarene conc ,, mg L-1 ,,, Spectrum, Py, Ace, Anth, 1, "0,456", "0,120", "0,168" 2, "0,456", "0,040", "0,280" 3, "0,152", "0,200", "0,280" I open as dataframe with the command: data = pd.read_

Book for Long Short-Term Memory for Sequential Data

2019-09-21 Thread Duc T. Ha
Please, help me the title of a book about Deep Learning with the Recurrent Neural Network network structure using Long Short-term Memory for Sequential Data (time-series data). The R or Python language is OK. I need a book like hand-on because I do not work in information technology. Thank you s

Most efficient way to replace "," with "." in a array and/or dataframe

2019-09-21 Thread Markos
Hi, I have a table.csv file with the following structure: , Polyarene conc ,, mg L-1 ,,, Spectrum, Py, Ace, Anth, 1, "0,456", "0,120", "0,168" 2, "0,456", "0,040", "0,280" 3, "0,152", "0,200", "0,280" I open as dataframe with the command: data = pd.read_csv ('table.csv', sep = ',', skiprow

Re: python is bugging

2019-09-21 Thread Piet van Oostrum
Dave Martin writes: > On Saturday, September 21, 2019 at 12:44:27 PM UTC-4, Brian Oney wrote: >> On Sat, 2019-09-21 at 08:57 -0700, Dave Martin wrote: >> > On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin >> > wrote: >> > > what does expected an indented block >> > >> > *what do

Re: python is bugging

2019-09-21 Thread Piet van Oostrum
Dave Martin writes: > On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin wrote: >> what does expected an indented block > > *what does an indented block mean? From the tutorial, https://docs.python.org/3/tutorial/ 3.2. First Steps Towards Programming: The body of the loop is ind

Re: Document Entire Apps

2019-09-21 Thread Albert-Jan Roskam
On 15 Sep 2019 07:00, Sinardy Gmail wrote: I understand that we can use pydoc to document procedures how about the relationship between packages and dependencies ? ==》 Check out snakefood to generate dependency graphs: http://furius.ca/snakefood/. Also, did you discover sphinx already? --

Re: python is bugging

2019-09-21 Thread DL Neil via Python-list
On 22/09/19 5:08 AM, Dave Martin wrote: On Saturday, September 21, 2019 at 12:44:27 PM UTC-4, Brian Oney wrote: On Sat, 2019-09-21 at 08:57 -0700, Dave Martin wrote: On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin wrote: what does expected an indented block *what does an in

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Chris Angelico
On Sun, Sep 22, 2019 at 4:56 AM Dave Martin wrote: > > On Saturday, September 21, 2019 at 2:46:15 PM UTC-4, boB Stepp wrote: > > On Sat, Sep 21, 2019 at 1:01 PM Dave Martin wrote: > > > > > > On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > > > > On 9/21/2019 11:53 AM, Da

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Mirko via Python-list
Am 21.09.2019 um 19:57 schrieb Dave Martin: > Can you provide an example of how to use the suite feature. Thank you. > There is no suite feature, Terry just tried to explain indented blocks to you in simple words. Really, indented blocks are one of the most basic aspects of Python. You *need* t

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 2:46:15 PM UTC-4, boB Stepp wrote: > On Sat, Sep 21, 2019 at 1:01 PM Dave Martin wrote: > > > > On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > > > On 9/21/2019 11:53 AM, Dave Martin wrote: > [...] > > > > #get the combined data and load

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread boB Stepp
On Sat, Sep 21, 2019 at 1:01 PM Dave Martin wrote: > > On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > > On 9/21/2019 11:53 AM, Dave Martin wrote: [...] > > > #get the combined data and load the fits files > > > > > > fits_filename="Gaia_DR2/gaiadr2_100pc.fits" > > > df=p

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 1:33:12 PM UTC-4, Terry Reedy wrote: > On 9/21/2019 11:53 AM, Dave Martin wrote: > > > > # starAbsMags=df['radial_velocity'] > > > > #GaiaPandasEscapeVelocityCode > > > > import pandas as pd > > import numpy as np > > from astropy.io import fits > > import astr

Re: Python shows error on line 15 that i cant fix

2019-09-21 Thread Terry Reedy
On 9/21/2019 11:53 AM, Dave Martin wrote: # starAbsMags=df['radial_velocity'] #GaiaPandasEscapeVelocityCode import pandas as pd import numpy as np from astropy.io import fits import astropy import matplotlib.pyplot as plt #get the combined data and load the fits files fits_filename="Gaia_DR

Re: python is bugging

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 12:44:27 PM UTC-4, Brian Oney wrote: > On Sat, 2019-09-21 at 08:57 -0700, Dave Martin wrote: > > On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin > > wrote: > > > what does expected an indented block > > > > *what does an indented block mean? >

Re: python is bugging

2019-09-21 Thread Brian Oney via Python-list
On Sat, 2019-09-21 at 08:57 -0700, Dave Martin wrote: > On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin > wrote: > > what does expected an indented block > > *what does an indented block mean? It means that the line of code belongs to a certain body as defined above its position

Re: python is bugging

2019-09-21 Thread Dave Martin
On Saturday, September 21, 2019 at 11:55:29 AM UTC-4, Dave Martin wrote: > what does expected an indented block *what does an indented block mean? -- https://mail.python.org/mailman/listinfo/python-list

python is bugging

2019-09-21 Thread Dave Martin
what does expected an indented block -- https://mail.python.org/mailman/listinfo/python-list

Python shows error on line 15 that i cant fix

2019-09-21 Thread Dave Martin
# starAbsMags=df['radial_velocity'] #GaiaPandasEscapeVelocityCode import pandas as pd import numpy as np from astropy.io import fits import astropy import matplotlib.pyplot as plt #get the combined data and load the fits files fits_filename="Gaia_DR2/gaiadr2_100pc.fits" df=pd.DataFrame() wit