Re: [py-usr] flake8 gives me a W605 but Python don't

2022-09-10 Thread Reto
On Sat, Sep 10, 2022 at 06:46:33PM +, c.bu...@posteo.jp wrote: > > But running this with Python 3.9.2 makes no problem. Python doesn't > give me a `SyntaxWarning` or anything else. Python doesn't give me an > error or warning. Only `flymake8` gives me this error. Well, it's not a syntax error

Re: score function in linear regression model

2022-10-24 Thread Reto
cs as to how good that performed. In the case of linear regression that be R^2, the coefficient of determination of the prediction. Cheers, Reto -- https://mail.python.org/mailman/listinfo/python-list

Re: issue with seaborn

2021-02-20 Thread Reto
` data_url = r"https://github.com/italia/covid19-opendata-vaccini/blob/master/dati/somministrazioni-vaccini-latest.csv?raw=true"; df = pd.read_csv(data_url, parse_dates=True, index_col="data_somministrazione") plt.figure(figsize=(15,10)) plt.xticks(rotation=70) sns.lineplot(x=df.index, y="prima_dose", data=df, hue="nome_area", ci=None) ``` Yields: https://labrat.space/irc/3b0be1f11e6c687b/download%20(1).png Cheers, Reto -- https://mail.python.org/mailman/listinfo/python-list

Re: Saving/exporting plots from Jupyter-labs?

2022-02-14 Thread Reto
On Mon, Feb 14, 2022 at 08:54:01PM +, Martin Schöön wrote: > 1) In notebooks I can save a plot by right-clicking on it and do > save image as. In Jupyter-lab that does not work and so far I > have not been able to figure out how to do it. Yes, I have looked > in the documentation. Shift + righ

Re: venv and executing other python programs

2022-02-14 Thread Reto
On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via Python-list wrote: > How to people here deal with that? Don't activate the venv for those programs then? The point of a venv is that you only enter it when you actually want that specific python stack. Get yourself a terminal that can either mul

Re: Python string with character exchange

2019-07-14 Thread Reto
On Sun, Jul 14, 2019 at 12:20:56PM -0400, Matt Zand wrote: > Given a string, return a new string where the first and last chars have > been exchanged. This sounds awfully like a homework question. What did you try? What concepts are you missing? Did you already look into slicing / getting element

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-06 Thread Reto
ilable, csv, json, html... Take your pick. You can find all those in the dframe.to_$something namespace (again, those are methods, make sure to call them). Import it again with pandas.read_$something, choosing the same serialization format you picked for the output in the first place.

Re: print small DataFrame to STDOUT and read it back into dataframe

2020-04-06 Thread Reto
just csv data. Cheers, Reto -- https://mail.python.org/mailman/listinfo/python-list

Re: Fake news Detect

2020-07-17 Thread Reto
What you want is called "natural language processing" and whole research papers have been written about this topic. Search your favorite research paper index for those keywords, say google scholar. -- https://mail.python.org/mailman/listinfo/python-list

Re: don't quite understand mailing list

2018-09-06 Thread Reto Brunner
On Thu, Sep 06, 2018 at 07:10:10PM +, VanDyk, Richard T wrote: > Can you please take me off the mailing list or prevent questions from coming > to me. Can you advise me on my problem or point me in the right direction? > Thanks. > https://mail.python.org/mailman/listinfo/python-list What do y

Re: Creating a hot vector (numpy)

2016-04-17 Thread Reto Brunner
Hi, It is called broadcasting an array, have a look here: http://docs.scipy.org/doc/numpy-1.10.1/user/basics.broadcasting.html Greetings, Reto On Mon, Apr 18, 2016, 02:54 Paulo da Silva wrote: > Hi all. > > I have seen this "trick" to create a hot vector. > > In [45]:

Re: Call for Assistance

2016-08-09 Thread Reto Brunner
What on earth isn't "free" enough about You are free to: Share — copy and redistribute the material in any medium or format Adapt — remix, transform, and build upon the material The licensor cannot revoke these freedoms as long as you follow the license terms. It is even a viral (copy left) lic

Re: creating multiple python Django projects in Windows environment

2016-03-19 Thread Reto Brunner
o download the results. The only dependency the user has is a web browser then and only the server needs python, django and the other stuff you need for the parsing. On Sat, Mar 19, 2016, 01:07 Ivan Jankovic wrote: > Hi Reto. > > I understand that i need to run Django on a serve

Re: creating multiple python Django projects in Windows environment

2016-03-19 Thread Reto Brunner
Well you can just put it on a proper server. In the end that's what django is for yes? In case that isn't an option and you don't want to install python there's docker, but then you would need to install that... On Fri, Mar 18, 2016, 20:05 jogaserbia wrote: > Hello, > > At work, I have a window