How to edit a database in Python? [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am an absolute beginner in Python (3.3.2). I know the basic functions like writing text files, variables, loops ,etc but have never written complex code.
My research project requires applying a moving average filter on three columns of a large text file (150 MB in size, having more than 1 million rows). My question is: What should I study in order to develop a methodology to apply the moving average formula within Python?. Excel is not an option because doing so is very tedious in Excel and sometimes it crashes due to longer periods of loading.
Kindly direct me to the 'right' resources/ examples relevant to my problem. I have gone through several python tutorials but didn't find anything relevant.

Check out Pandas. It should have no problem handling 10**6 rows on commonly available modern hardware. And among its many goodies are functions for computing moving averages.

Related

Python 3.4 - Library for 2D graphics [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
As title says, I'm looking for a 2D graphic library, where I can create a window, and then draw lines and basic shapes on it. I was searching around for a similar topics, and I've found something about GTK & Cairo. I have some experience with drawing in Java 2D Graphics library, so I would like to be able to create some small games like Space Invaders, Snake...
If you are looking for a slightly more static version of GUI which is less about moving visuals, you should check out Tkinter which comes as python's default GUI
On the other hand, if you want to make "small games like Space Invaders, Snake...", the pygame module would provide you with a great set of tools to easily create these games. I suggest you check them both out and see which one suits your needs better.
Good Luck

Python image processing library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to modify image files (bmp, jpg, and png) by adding text on top of it in a specific area. For example if I were to draw an picture for an envelope and print different addresses on top in a designated area with specified fonts and colors which library would I use?
I am looking for something like this http://python-catalin.blogspot.com/2010/06/add-text-on-image-with-pil-module.html
But with a BSD license that can work with numpy and scipy with Python 3 since I just switched.
Is this a job for Scikit-image or Pillow (Not sure if it is BSD)? if not what can I use and which part of the library?
This can be achieved using freetype-py. See the example here: https://code.google.com/p/freetype-py/source/browse/trunk/examples/hello-world.py
This would also be a good fit for the skimage.draw module, and we can certainly consider adding it.

Prody for modeling protein structure python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Can we use ProDy to model the structure of proteins? Is there any other way we can model the structure of a protein using Python?
Thank you
Yes, ProDy may do the job.
If you like using "only" Python, then check aslo PyMOL (http://www.pymol.org/)
for visualizing proteins and molecular structures.
If you like to run simulations, then GROMACS package for molecular dynamics simulations will be my choice, but it is written (mainly) in C.
http://www.gromacs.org/

Cash flow diagram in python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to make a very simple image that will illustrate a cash flow diagram based on user input. Basically, I just need to make an axis and some arrows facing up and down and proportional to the value of the cash flow. I would like to know how to do this with matplot.
The best tool can be matplotlib. You can simply store the values in a list and then use 'stem' to draw the lines. Then you can use markers with triangle_up and triangle_down to show the arrow.
If you simply need arrows pointing up and down, use Unicode arrows like "↑" and "↓". This would be really simple if rendering in a browser.

Quickest way to plot ~400,000 points in python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a list which contains some data points which I need to plot.
The list is approximately 11,000 x 40 in size (2D Plot with numeric values).
Currently I am using matplotlib (as I moved to python from Matlab), however this is slow to plot so many points, and resizing the graph manually crashes my computer (MacBook Retina with 16Gb RAM).
The graph I would like needs to be interactive and therefore such delays are unacceptable.
Can anyone give me some advice with regards to perhaps a better (quicker) plotting library?
Thanks
EDIT: I am currently researching some tools but I am finding it difficult to work out which would be the fastest in terms of plotting...
I am looking at:
MathGL - http://mathgl.sourceforge.net/
Gnuplot.py - http://gnuplot-py.sourceforge.net/
PyQtGraph - http://www.pyqtgraph.org/
PyQwt - http://pyqwt.sourceforge.net/
guiqwt - http://pypi.python.org/pypi/guiqwt/

Categories

Resources