osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove comma from tuples in python.


This is just a tuple of integers and not a tuple of tuples of integers, the parentheses around the number is just there for the evaluation.



> On 21 f?vr. 2014, at 08:02 AM, Mircescu Andrei <mircescu.andrei at gmail.com> wrote:
> 
> vineri, 21 februarie 2014, 08:49:01 UTC+2, Jaydeep Patil a scris:
>> I am getting below tuple from excel.
>> 
>> How should i remove extra commas in each tuple to make it easy for operations.
>> 
>> 
>> 
>> tuples is:
>> 
>> seriesxlist1 = ((0.0), (0.01), (0.02), (0.03), (0.04), (0.05), (0.06), (0.07), (0.08), (0.09), (0.1), (0.11))
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> please suggest me solution.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Regards
>> 
>> jay
> 
> i think you have a tuple of tuples there. a tuple of 12 tuples.
> 
> you need to parse each one and represent it as you wish
> -- 
> https://mail.python.org/mailman/listinfo/python-list