Return numerical array in python

Posted by khan on Stack Overflow See other posts from Stack Overflow or by khan
Published on 2012-06-11T16:35:19Z Indexed on 2012/06/11 16:40 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

Okay..this is kind of an interesting question.

I have a php form through which user enters values for x and y like this:

X: [1,3,4]

Y: [2,4,5]

These values are stored into database as varchars. From there, these are called by a python program which is supposed to use them as numerical (numpy) arrays. However, these are called as plain strings, which means that calculation can not be performed over them. Is there a way to convert them into numerical arrays before processing or is there something else which is wrong?

Helpp!!

© Stack Overflow or respective owner

Related posts about php

Related posts about python