Python Forum
Problem with bracket in my output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with bracket in my output
#2
The line 49 defines what the content of the csv file will be:
data = [datetime[0:6], datetime[6:12], values]
It creates three cells, the third one being a list of 8 values, exactly what the output represents.

In order to get the 8 values in separated cells, you just need to add the two lists together, so the line 49 becomes:
data = [datetime[0:6], datetime[6:12]] + values
Reply


Messages In This Thread
Problem with bracket in my output - by Steffenwolt - Dec-20-2017, 10:52 AM
RE: Problem with bracket in my output - by squenson - Dec-20-2017, 12:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in output of a snippet code akbarza 2 425 Feb-28-2024, 07:15 PM
Last Post: deanhystad
  output shape problem with np.arange alan6690 5 773 Dec-26-2023, 05:44 PM
Last Post: deanhystad
  problem in output of a function akbarza 9 1,317 Sep-29-2023, 11:13 AM
Last Post: snippsat
  Grouping Data based on 30% bracket purnima1 4 1,253 Mar-10-2023, 07:38 PM
Last Post: deanhystad
  Python Pandas Syntax problem? Wrong Output, any ideas? Gbuoy 2 961 Jan-18-2023, 10:02 PM
Last Post: snippsat
  Facing problem with Pycharm - Not getting the expected output amortal03 1 889 Sep-09-2022, 05:44 PM
Last Post: Yoriz
  single input infinite output problem Chase91 2 1,983 Sep-23-2020, 10:01 PM
Last Post: Chase91
  Output to a json file problem Netcode 3 3,794 Nov-22-2019, 01:44 AM
Last Post: Skaperen
  DHT11 output to website problem cjdock 0 1,488 Oct-01-2019, 08:29 PM
Last Post: cjdock
  How to print counter without bracket in python and sort data. phob0s 1 2,802 Jul-25-2019, 05:33 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020