Re: insert data in python script

2020-02-17 Thread alberto
Il giorno lunedì 17 febbraio 2020 17:48:07 UTC+1, alberto ha scritto: > Hi, > I would use this script to evaluate fugacity coefficient with PENG-ROBINSON > equation, but I don't understand the correct mode to insert data > > import numpy as np > import matplotlib.pyplot as plt > from scipy.optim

Re: insert data in python script

2020-02-17 Thread DL Neil via Python-list
Please help us to help you! 1 is all of this code in a single file or spread across (at least) two modules? What are their names? What is the directory structure? 2 copy-paste the actual error message received. It works for me! 1 not knowing your circumstances, I put all the code in one file 2

Re: Can anyone share experience about python backend developer?

2020-02-17 Thread DL Neil via Python-list
On 17/02/20 11:11 PM, lampahome wrote: I have 3+years developer experience in python, but I always develop about peer-to-peer service. Have no backend experience in python. But now I want to change to backend engineer, somebody shares their job is to do like 1. Develop customize API to receive d

Interpreter Python 3.8 not there to select from PyCharm

2020-02-17 Thread Maxime Albi
I'm very new to Python and wanting to learn the basics. I downloaded and installed Python 3.8 and PyCharm for my Windows 10 machine. All good. Launched PyCharm and I started a new Project and tried to select an 'interpreter' such as Python 3.8 but no interpreter was available for me to select

Re: I can't access dataframe fields

2020-02-17 Thread Markos
Hi MRAB, I changed last_cluster to tuple(last_cluster). From: print (updated_distance_matrix_df.loc [clusters [i], last_cluster]) to print (updated_distance_matrix_df.loc [clusters [i], tuple(last_cluster)]) And worked. Thank you, Markos Em 15-02-2020 23:36, MRAB escreveu: On 2020-02-16

Re: fugacity cofficient

2020-02-17 Thread Peter Pearson
On 17 Feb 2020 18:40:00 GMT, Peter Pearson wrote: > > Welcome, Alberto. > > Can you make this look more like a Python question and less like a > do-my-homework question? Show us what you've tried. Sorry. I see you already did exactly that. -- To email me, substitute nowhere->runbox, invalid-

Re: fugacity cofficient

2020-02-17 Thread Peter Pearson
On Sun, 16 Feb 2020 14:17:28 -0800 (PST), alberto wrote: > Hi, > how I could realize a script to calculate fugacity coefficients > with this formula > [snip] > > regards > > Alberto Welcome, Alberto. Can you make this look more like a Python question and less like a do-my-homework question? Sho

fugacity cofficient

2020-02-17 Thread alberto
Hi, how I could realize a script to calculate fugacity coefficients with this formula https://wikimedia.org/api/rest_v1/media/math/render/svg/8743fb5a1e85edb8f4334fb7154727057f395eb8 in my input file.txt I have this data #p z 10.0 0.9850 20.0 0.9703 30.0 0.9560 40.0 0.9421 50.0 0.9287 regards

insert data in python script

2020-02-17 Thread alberto
Hi, I would use this script to evaluate fugacity coefficient with PENG-ROBINSON equation, but I don't understand the correct mode to insert data import numpy as np import matplotlib.pyplot as plt from scipy.optimize import newton R = 8.314e-5 # universal gas constant, m3-bar/K-mol class Molecu

Re: What I learned today

2020-02-17 Thread 황병희
r...@zedat.fu-berlin.de (Stefan Ram) writes: > ... > But the book told me that you can unzip using ... »zip« again! > > z = zip( x, y ) > a, b = zip( *z ) > print( a ) > ('y', 'n', 'a', 'n', 't') > print( b ) >

Can anyone share experience about python backend developer?

2020-02-17 Thread lampahome
I have 3+years developer experience in python, but I always develop about peer-to-peer service. Have no backend experience in python. But now I want to change to backend engineer, somebody shares their job is to do like 1. Develop customize API to receive data from global 2. Develop tools with k8s