Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Learning Python - 2 or 3?

Learn Python the Hard Way (as many recommend) is adamant about using Python 2, but it is not as focused on DS. Which version should I be learning?

/r/pystats
https://redd.it/3xdhq0
Help with making empirical CDF using statsmodels

It's a minor problem, but can someone explain to me why statsmodels' ECDF function returns an extra value for x and and extra value for y in my [example](http://nbviewer.jupyter.org/github/pybokeh/jupyter_notebooks/blob/master/statistics/nonparametric_methods/Distribution_Free_Methods.ipynb)?. I have to remove them so that I can plot the confidence interval along with my ecdf. I have 44 values in my data set, but the ECDF returns 45 values. So if I try to plot the confidence intervals with my ecdf, it will bomb. So I remove those extra values. Here's the [source](http://statsmodels.sourceforge.net/devel/_modules/statsmodels/distributions/empirical_distribution.html) for the empirical_distribution module. Thanks in advance!

/r/pystats
https://redd.it/3w6iti
Leveraging Python for Data Visibility - A tutorial on how to leverage python's Data Spyre, Bokeh, and Pygal libraries (xpost from /r/DataScience)

Hi /r/pystats,

I got a recommendation to post this here from /r/python, so here you go!

Last night I gave a talk at the Kansas City Data Science Meetup on how to use Data Spyre to create a lightweight and easy to use web application. On top of that, I give examples on how you can incorporate Bokeh and Pygal plots to add interactivity to your web application as well. I've put my Jupyter notebook along with all of my example scripts into a Git Repo for all to use. Enjoy!

https://github.com/pm8k/dataspyre_tutorial

/r/pystats
https://redd.it/3sm9ju
Is Django a good framework for multi-tenancy SaaS app?

I am evaluating difference frameworks right now and it seems like Django is not as mature for building multi-tenancy app. I just tried out django-tenant-schemas today and the repository is not quite caught up with the recent version of Django. I wonder whether anyone have experiences building SaaS app with Django and what do you think of it. Thanks!

/r/django
https://redd.it/5kubzl
Highly custom validation?

Ok so I have a model that asks for an event from a dropdown menu and then depending on what event that is a certain number of people, both men and women, have to be entered before submitting.
An example would be event A requires 3 people, at least 2 male and 1 female or 2 female and 1 male. But the rules for each event are different. Is there any way to go about doing this in django? Thank you so much for the help.

Edit* Im using model forms btw if that matters at all

/r/django
https://redd.it/5ksoaf