Re: program python
Il giorno giovedì 4 marzo 2021 alle 23:51:39 UTC+1 Igor Korot ha scritto: > Hi, > On Thu, Mar 4, 2021 at 4:42 PM alberto wrote: > > > > Il giorno giovedì 4 marzo 2021 alle 22:04:57 UTC+1 Paul Bryan ha scritto: > > > I don't see a Python program in that link. > > > > > > Are you asking how to extract data from a CSV? > > > A good start will be to look into the csv.reader function and > > > csv.DictReader class. > > > > > > Paul > > > On Thu, 2021-03-04 at 12:36 -0800, alberto wrote: > > > > Hi I'm tring to write a program with python to evaluate data of csv > > > > data > > > > In particular I would extract this information > > > > > > > > View data on the presence of men and women in Affori over time. > > > > > > > > * Carry out an analysis relating to the last available year. Of the > > > > 10 most populous neighborhoods show: > > > > * the proportion of births out of the total > > > > * the proportion of 80+ to the total > > > > * The ratio of minors / number of kindergartens > > > > > > > > this is the file > > > > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing > > > > > > > > > > > > How could fix it? > > > > > > > > regards > > > > Hi, > > with this code > > import pandas as pd > > df = pd.read_csv('data.csv',usecols=['Uomini','Donne']) > > > > print(df) > > I extract two columns, but I would see 'Affori over time' > And if you add this column to the list - what happens? > Thank you. > > > > > regards > > -- > > https://mail.python.org/mailman/listinfo/python-list Hi, with pandas I obtain results! Now I would calculate ratio beetween columns of my csv import pandas as pd pd.set_option('display.max_rows', 500) df = pd.read_csv ('data_quartiere_2018.csv', usecols= ['Anno','Totale','Quartiere','Nati','80 e più soli','80 e più','Minori','Scuola_infanzia (numero)']) test = df.loc[df['Totale'] >= 31990, print (test) in particular I would calculate ratio beetween ('Nati'*100)/'Totale' when ['Totale'] >= 31990 How could fix it -- https://mail.python.org/mailman/listinfo/python-list
Re: program python
Hi, On Thu, Mar 4, 2021 at 4:42 PM alberto wrote: > > Il giorno giovedì 4 marzo 2021 alle 22:04:57 UTC+1 Paul Bryan ha scritto: > > I don't see a Python program in that link. > > > > Are you asking how to extract data from a CSV? > > A good start will be to look into the csv.reader function and > > csv.DictReader class. > > > > Paul > > On Thu, 2021-03-04 at 12:36 -0800, alberto wrote: > > > Hi I'm tring to write a program with python to evaluate data of csv > > > data > > > In particular I would extract this information > > > > > > View data on the presence of men and women in Affori over time. > > > > > > * Carry out an analysis relating to the last available year. Of the > > > 10 most populous neighborhoods show: > > > * the proportion of births out of the total > > > * the proportion of 80+ to the total > > > * The ratio of minors / number of kindergartens > > > > > > this is the file > > > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing > > > > > > How could fix it? > > > > > > regards > > Hi, > with this code > import pandas as pd > df = pd.read_csv('data.csv',usecols=['Uomini','Donne']) > > print(df) > I extract two columns, but I would see 'Affori over time' And if you add this column to the list - what happens? Thank you. > > regards > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: program python
Il giorno giovedì 4 marzo 2021 alle 22:04:57 UTC+1 Paul Bryan ha scritto: > I don't see a Python program in that link. > > Are you asking how to extract data from a CSV? > A good start will be to look into the csv.reader function and > csv.DictReader class. > > Paul > On Thu, 2021-03-04 at 12:36 -0800, alberto wrote: > > Hi I'm tring to write a program with python to evaluate data of csv > > data > > In particular I would extract this information > > > > View data on the presence of men and women in Affori over time. > > > > * Carry out an analysis relating to the last available year. Of the > > 10 most populous neighborhoods show: > > * the proportion of births out of the total > > * the proportion of 80+ to the total > > * The ratio of minors / number of kindergartens > > > > this is the file > > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing > > > > > > How could fix it? > > > > regards Hi, with this code import pandas as pd df = pd.read_csv('data.csv',usecols=['Uomini','Donne']) print(df) I extract two columns, but I would see 'Affori over time' regards -- https://mail.python.org/mailman/listinfo/python-list
Re: program python
I don't see a Python program in that link. Are you asking how to extract data from a CSV? A good start will be to look into the csv.reader function and csv.DictReader class. Paul On Thu, 2021-03-04 at 12:36 -0800, alberto wrote: > Hi I'm tring to write a program with python to evaluate data of csv > data > In particular I would extract this information > > View data on the presence of men and women in Affori over time. > > * Carry out an analysis relating to the last available year. Of the > 10 most populous neighborhoods show: > * the proportion of births out of the total > * the proportion of 80+ to the total > * The ratio of minors / number of kindergartens > > this is the file > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing > > How could fix it? > > regards -- https://mail.python.org/mailman/listinfo/python-list
Re: program python
Hi, and welcome to the list. On 05/03/2021 09.36, alberto wrote: > Hi I'm tring to write a program with python to evaluate data of csv data > In particular I would extract this information > > View data on the presence of men and women in Affori over time. > > * Carry out an analysis relating to the last available year. Of the 10 most > populous neighborhoods show: > * the proportion of births out of the total > * the proportion of 80+ to the total > * The ratio of minors / number of kindergartens > > this is the file > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing > > How could fix it? NB For security reasons, many will not follow this link/see the data-file! There are several libraries which can be import-ed into Python, which enable access to .csv-formatted files. The PSL (Python Standard Library) offers "csv — CSV File Reading and Writing" (https://docs.python.org/3/library/csv.html). Start by writing the Python code to open the .csv file, and close it again (as you would at the end of the program). Leave plenty of blank/empty lines between the two, and use that space to continue with the next steps... There are three objectives. To start, assume that the file is open in front of you. How will you solve the first problem? Can you describe this in English (and/or your preferred language)? Write this as a Python comment. Next, can you translate the spoken-language into Python? Thereafter tackle problems two and three. We don't know your level of Python skill. So, let us know how you get-on, and come back with sample code, if you strike a problem at any step. -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list
Re: program python
Hi, On Thu, Mar 4, 2021 at 2:42 PM alberto wrote: > > Hi I'm tring to write a program with python to evaluate data of csv data > In particular I would extract this information > > View data on the presence of men and women in Affori over time. > > * Carry out an analysis relating to the last available year. Of the 10 most > populous neighborhoods show: > * the proportion of births out of the total > * the proportion of 80+ to the total > * The ratio of minors / number of kindergartens > > this is the file > https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing > > How could fix it? What seems to be the problem? Thank you. > > regards > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
program python
Hi I'm tring to write a program with python to evaluate data of csv data In particular I would extract this information View data on the presence of men and women in Affori over time. * Carry out an analysis relating to the last available year. Of the 10 most populous neighborhoods show: * the proportion of births out of the total * the proportion of 80+ to the total * The ratio of minors / number of kindergartens this is the file https://drive.google.com/file/d/1zKflvSpB-oDAqYscLsEgUhSnqL1XPdql/view?usp=sharing How could fix it? regards -- https://mail.python.org/mailman/listinfo/python-list
Re: Program Python
On Thursday, March 6, 2014 3:11:10 AM UTC+5:30, Luciano Trespidi wrote: > I'm very grateful if anyone can helpme to find a good program to develop in > python lenguage. > Thanks > Inviato da: > Ernesto Luciano Trespidi > Email: keplero1... > Tel. 32... Hi and welcome Just a small warning in addition to what others have said Information such as your email and phone posted above will be publicly available on the net. You perhaps dont want that?? -- https://mail.python.org/mailman/listinfo/python-list
Re: Program Python
On 2014-03-05 22:41, Luciano Trespidi wrote: > I'm very grateful if anyone can helpme to find a good program to > develop in python lenguage. Thanks This reminds me of the old joke: Q: Why are you scratching yourself? A: Because I'm the only one who knows where I itch! The best place to find a good program to develop in Python is to look at what you want to be able to do, but haven't found something that does what you want. Perhaps you tire of manually processing files at work and want to automate it. Perhaps you want to email your Mum on one random day each month. Perhaps you want to calculate lottery numbers according to your own personal preference. Perhaps you want to make a game. So many possibilities. So look for something that would scratch an itch you have, and go for it! :-) -tkc -- https://mail.python.org/mailman/listinfo/python-list
Re: Program Python
Luciano Trespidi writes: > I'm very grateful if anyone can helpme to find a good program to develop in > python lenguage. > Thanks The best program to use for developing in the Python language is the Python interpreter :-) Beyond which, you may be interested in the Python community's “tutor” forum https://mail.python.org/mailman/listinfo/tutor>, a great resource for asking questions about the basics of Python. -- \ “The most common of all follies is to believe passionately in | `\the palpably not true. It is the chief occupation of mankind.” | _o__)—Henry L. Mencken | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list
Program Python
I'm very grateful if anyone can helpme to find a good program to develop in python lenguage. Thanks Inviato da: Ernesto Luciano Trespidi Email: keple...@hotmail.com Tel. 3299255463 -- https://mail.python.org/mailman/listinfo/python-list
hang in multithreaded program / python and gdb.
Hi I want to debug a locking situation in my program. http://wiki.python.org/moin/DebuggingWithGdb Where do I get binaries for ? - debug python 2.5 binary/rpm for FC7 Also, the description of the hang is as follows. 2 therads waiting in [EMAIL PROTECTED] ... from PyThread_acquire_lock() 1 thread in _poll from _socketmodule.so. Any ideas what might be going on. (Isnt PyThread_acquire_lock() trying to get the global interpreter lock ?) Any help.. pointers are welcome. Thanks /Jd -- http://mail.python.org/mailman/listinfo/python-list