Plotting e**x and ln(x) and seeing a nice inverse
I'm not sure what I'm goofing up here but I was expecting to be able to see a nice inverse graph with the following code but it's coming out a bit goofy here.
import numpy as np
from matplotlib.pyplot import (plot, subplot, cm, imread, imshow, xlabel,
ylabel, title, grid, axis, show, savefig, gcf,
figure, close, tight_layout, legend)
from math import e
print()
###############################################################################
def f_inv(n):
return np.log(n)
def f(n):
return e**n
###############################################################################
close('all')
t = np.linspace(-10, 10, 100)
e_to_x = f(t)
ln_x = f_inv(t)
plot(t, e_to_x, 'g-o', t, ln_x, 'b-o')
show()
I'm sure it's something pretty basic, cheers
/r/pystats
https://redd.it/3y8i7o
I'm not sure what I'm goofing up here but I was expecting to be able to see a nice inverse graph with the following code but it's coming out a bit goofy here.
import numpy as np
from matplotlib.pyplot import (plot, subplot, cm, imread, imshow, xlabel,
ylabel, title, grid, axis, show, savefig, gcf,
figure, close, tight_layout, legend)
from math import e
print()
###############################################################################
def f_inv(n):
return np.log(n)
def f(n):
return e**n
###############################################################################
close('all')
t = np.linspace(-10, 10, 100)
e_to_x = f(t)
ln_x = f_inv(t)
plot(t, e_to_x, 'g-o', t, ln_x, 'b-o')
show()
I'm sure it's something pretty basic, cheers
/r/pystats
https://redd.it/3y8i7o
reddit
Plotting e**x and ln(x) and seeing a nice inverse • /r/pystats
I'm not sure what I'm goofing up here but I was expecting to be able to see a nice inverse graph with the following code but it's coming out a bit...
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
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
reddit
Learning Python - 2 or 3? • /r/pystats
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?
Web Scraping, data analysis and GUI development with Pokemon!
https://www.youtube.com/watch?v=egYVP-TeSg8&list=PLuVTNX0oceI87L2sPUTODZmwn-ORos-9Z
/r/pystats
https://redd.it/3w61ya
https://www.youtube.com/watch?v=egYVP-TeSg8&list=PLuVTNX0oceI87L2sPUTODZmwn-ORos-9Z
/r/pystats
https://redd.it/3w61ya
YouTube
PokeScrape 1: Scraping an online PokeDex (Pokemon data) with Python
On this video, we will learn how to scrape an online Pokedex for getting Pokemon data with common Python libraries.
Ipython Notebook:
https://github.com/snazrul1/PyRevolution/blob/master/Puzzles/PokeScraper.ipynb
Ipython Notebook:
https://github.com/snazrul1/PyRevolution/blob/master/Puzzles/PokeScraper.ipynb
Scoreboards for Presidential Candidates -- A tutorial by Github User empet
http://nbviewer.jupyter.org/github/empet/Plotly-plots/blob/master/Scoreboard-republican-candidates.ipynb
/r/JupyterNotebooks
https://redd.it/47rq4x
http://nbviewer.jupyter.org/github/empet/Plotly-plots/blob/master/Scoreboard-republican-candidates.ipynb
/r/JupyterNotebooks
https://redd.it/47rq4x
nbviewer.jupyter.org
Notebook on nbviewer
Check out this Jupyter notebook!
Automating Django Deployments with Fabric and Ansible
https://realpython.com/blog/python/automating-django-deployments-with-fabric-and-ansible#.WGPLJbXGC1U.reddit
/r/django
https://redd.it/5kqgcc
https://realpython.com/blog/python/automating-django-deployments-with-fabric-and-ansible#.WGPLJbXGC1U.reddit
/r/django
https://redd.it/5kqgcc
reddit
Automating Django Deployments with Fabric and Ansible • /r/django
12 points and 0 comments so far on reddit
Python, Flask and MySQL integration template for AnyChart JS (data visualization)
https://github.com/anychart-integrations/python-flask-mysql-template
/r/flask
https://redd.it/5kpt27
https://github.com/anychart-integrations/python-flask-mysql-template
/r/flask
https://redd.it/5kpt27
GitHub
anychart-integrations/python-flask-mysql-template
This example shows how to use Anychart library with the Python programming language, Flask microframework and MySQL database. - anychart-integrations/python-flask-mysql-template
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
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
nbviewer.jupyter.org
Notebook on nbviewer
Check out this Jupyter notebook!
A comprehensive list of alternative kernels for Jupyter--R, Javascript, Coffeescript, Matlab, even Bash
https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
/r/JupyterNotebooks
https://redd.it/47pjbf
https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
/r/JupyterNotebooks
https://redd.it/47pjbf
GitHub
IPython kernels for other languages
Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc. - ipython/ipython
Data analysis of Surfing Conditions on Irish East Coast
http://marcoforte.github.io/blog/2015/30/11/Data-analysis-of-Surfing-Conditions-on-Irish-East-Coast/
/r/pystats
https://redd.it/3v06t9
http://marcoforte.github.io/blog/2015/30/11/Data-analysis-of-Surfing-Conditions-on-Irish-East-Coast/
/r/pystats
https://redd.it/3v06t9
Django Fellowship Program: 2016 retrospective
https://www.djangoproject.com/weblog/2016/dec/28/fellowship-2016-retrospective/
/r/django
https://redd.it/5kt98t
https://www.djangoproject.com/weblog/2016/dec/28/fellowship-2016-retrospective/
/r/django
https://redd.it/5kt98t
reddit
Django Fellowship Program: 2016 retrospective • /r/django
2 points and 0 comments so far on reddit
Machine Learning and Data Science Tutorials
https://github.com/rasbt/pattern_classification
/r/JupyterNotebooks
https://redd.it/47n03c
https://github.com/rasbt/pattern_classification
/r/JupyterNotebooks
https://redd.it/47n03c
GitHub
GitHub - rasbt/pattern_classification: A collection of tutorials and examples for solving and understanding machine learning and…
A collection of tutorials and examples for solving and understanding machine learning and pattern classification tasks - rasbt/pattern_classification
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
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
GitHub
pm8k/dataspyre_tutorial
Contribute to pm8k/dataspyre_tutorial development by creating an account on GitHub.
Armin explains the Flask globals. I've always wanted to know the reasoning behind this design choice..
https://www.youtube.com/watch?v=1ByQhAM5c1I
/r/Python
https://redd.it/5kqoou
https://www.youtube.com/watch?v=1ByQhAM5c1I
/r/Python
https://redd.it/5kqoou
YouTube
Armin Ronacher, "Flask for Fun and Profit", PyBay2016
Learn about building small and large projects with Flask in ways you probably did not see yet.
Abstract
This talk explores how you can build applications and APIs with Flask step by step by being easy to test and scale to larger and more complex scenarios.…
Abstract
This talk explores how you can build applications and APIs with Flask step by step by being easy to test and scale to larger and more complex scenarios.…
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
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
reddit
Is Django a good framework for multi-tenancy SaaS app? • /r/django
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...
donnemartin has a great collection of notebooks on his Git page
https://github.com/donnemartin/data-science-ipython-notebooks
/r/JupyterNotebooks
https://redd.it/47mk4y
https://github.com/donnemartin/data-science-ipython-notebooks
/r/JupyterNotebooks
https://redd.it/47mk4y
GitHub
GitHub - donnemartin/data-science-ipython-notebooks: Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras)…
Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials,...
Real-time LED strip music visualization written in Python and uses an ESP8266
https://github.com/scottlawsonbc/audio-reactive-led-strip
/r/Python
https://redd.it/5kswq3
https://github.com/scottlawsonbc/audio-reactive-led-strip
/r/Python
https://redd.it/5kswq3
GitHub
GitHub - scottlawsonbc/audio-reactive-led-strip: :musical_note: Real-time LED strip music visualization using Python and the ESP8266…
:musical_note: :rainbow: Real-time LED strip music visualization using Python and the ESP8266 or Raspberry Pi - GitHub - scottlawsonbc/audio-reactive-led-strip: :musical_note: Real-time LED strip m...
Performance comparison of various python clustering implementations
http://nbviewer.jupyter.org/github/lmcinnes/hdbscan/blob/master/notebooks/Benchmarking%20scalability%20of%20clustering%20implementations.ipynb
/r/pystats
https://redd.it/3qcvcz
http://nbviewer.jupyter.org/github/lmcinnes/hdbscan/blob/master/notebooks/Benchmarking%20scalability%20of%20clustering%20implementations.ipynb
/r/pystats
https://redd.it/3qcvcz
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
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
reddit
Highly custom validation? • /r/django
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...
[Free for Limited Time] Python Fundamentals
https://www.udemy.com/python-fundamentals/
I have also added other development and programming courses at http://meritcoupon.com
/r/Python
https://redd.it/5kupaa
https://www.udemy.com/python-fundamentals/
I have also added other development and programming courses at http://meritcoupon.com
/r/Python
https://redd.it/5kupaa
Udemy
Python Fundamentals | Udemy
Probably the best Python Beginner course on the internet
An example machine learning notebook for newcomers
https://github.com/rhiever/Data-Analysis-and-Machine-Learning-Projects/blob/master/example-data-science-notebook/Example%20Machine%20Learning%20Notebook.ipynb
/r/JupyterNotebooks
https://redd.it/47mqpt
https://github.com/rhiever/Data-Analysis-and-Machine-Learning-Projects/blob/master/example-data-science-notebook/Example%20Machine%20Learning%20Notebook.ipynb
/r/JupyterNotebooks
https://redd.it/47mqpt
GitHub
Data-Analysis-and-Machine-Learning-Projects/example-data-science-notebook/Example Machine Learning Notebook.ipynb at master · rhiever/Data…
Repository of teaching materials, code, and data for my data analysis and machine learning projects. - rhiever/Data-Analysis-and-Machine-Learning-Projects
Amazon Machine Learning: use cases and a real example in Python
http://cloudacademy.com/blog/aws-machine-learning/
/r/pystats
https://redd.it/3qbcxh
http://cloudacademy.com/blog/aws-machine-learning/
/r/pystats
https://redd.it/3qbcxh
Cloud Academy
Amazon Machine Learning: Use Cases and a Real Example in Python
Read my personal experience with Amazon Machine Learning and learn about some important - and sometimes misleading - machine learning concepts.