workspace
stringclasses 1
value | channel
stringclasses 1
value | sentences
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
| sentence_id
stringlengths 44
53
| timestamp
float64 1.5B
1.56B
| __index_level_0__
int64 0
106k
|
---|---|---|---|---|---|---|---|
pythondev | help | and that did it | 2019-05-07T13:45:55.385800 | Holly | pythondev_help_Holly_2019-05-07T13:45:55.385800 | 1,557,236,755.3858 | 22,521 |
pythondev | help | :taco: <@Sasha> | 2019-05-07T13:46:01.386000 | Holly | pythondev_help_Holly_2019-05-07T13:46:01.386000 | 1,557,236,761.386 | 22,522 |
pythondev | help | tacos for everyone today :slightly_smiling_face: | 2019-05-07T13:46:06.386200 | Holly | pythondev_help_Holly_2019-05-07T13:46:06.386200 | 1,557,236,766.3862 | 22,523 |
pythondev | help | Has anyone here used the pipeline feature of Heroku with django (and or python)?
I am trying to automatically load fixtures in when deploying 'Review Apps'. Basically so i have some testing data and doesn't have to create it every time manually. i would also like to have some helper functionality for staging to flush as well.. not sure how. any clues any one? | 2019-05-07T14:44:52.388700 | Christina | pythondev_help_Christina_2019-05-07T14:44:52.388700 | 1,557,240,292.3887 | 22,524 |
pythondev | help | it's been a while since I put much effort into that, but you'd want to use a postdeploy script: <https://devcenter.heroku.com/articles/github-integration-review-apps#the-postdeploy-script> | 2019-05-07T14:58:24.389900 | Joette | pythondev_help_Joette_2019-05-07T14:58:24.389900 | 1,557,241,104.3899 | 22,525 |
pythondev | help | what you need to watch out for is configuration inheritance | 2019-05-07T14:59:31.391000 | Joette | pythondev_help_Joette_2019-05-07T14:59:31.391000 | 1,557,241,171.391 | 22,526 |
pythondev | help | e.g. if `DATABASE_URL` is inherited from your staging app, then your review app could end up using the staging DB which is _probably_ not what you want | 2019-05-07T15:00:05.391800 | Joette | pythondev_help_Joette_2019-05-07T15:00:05.391800 | 1,557,241,205.3918 | 22,527 |
pythondev | help | i actually found postdeploy script eventually. sorry i din't see your nice answer <@Joette>. it seems that heroku actually creates a new database instance for each review app | 2019-05-07T15:57:55.393000 | Christina | pythondev_help_Christina_2019-05-07T15:57:55.393000 | 1,557,244,675.393 | 22,528 |
pythondev | help | yes, the issue is the attached names | 2019-05-07T15:58:28.393400 | Joette | pythondev_help_Joette_2019-05-07T15:58:28.393400 | 1,557,244,708.3934 | 22,529 |
pythondev | help | oh wait you are correct yes. hmm | 2019-05-07T15:58:55.393800 | Christina | pythondev_help_Christina_2019-05-07T15:58:55.393800 | 1,557,244,735.3938 | 22,530 |
pythondev | help | do you have any clue of how to fix it. it seems like an issue a lot of people would face. so i use Jaws for my db, but it saves the environment value as 'JAWSDB_URL' but django heroku looks for 'DATABASE_URL' :3 | 2019-05-07T16:01:25.395100 | Christina | pythondev_help_Christina_2019-05-07T16:01:25.395100 | 1,557,244,885.3951 | 22,531 |
pythondev | help | can i create like a relative environment value? is that a thing like DATABASE_URL = $JAWSDB_URL | 2019-05-07T16:04:27.395800 | Christina | pythondev_help_Christina_2019-05-07T16:04:27.395800 | 1,557,245,067.3958 | 22,532 |
pythondev | help | no, they're values not references - I'd probably look into some kind of conditional logic based on the environment, or fallback on `JAWSDB_URL` in your own app if `DATABASE_URL` is empty/missing | 2019-05-07T16:06:14.397000 | Joette | pythondev_help_Joette_2019-05-07T16:06:14.397000 | 1,557,245,174.397 | 22,533 |
pythondev | help | yep, i have utility function called `make_database_url` that checks for the `DATABASE_URL` and if it isn’t there builds it. | 2019-05-07T16:10:05.399600 | Eliana | pythondev_help_Eliana_2019-05-07T16:10:05.399600 | 1,557,245,405.3996 | 22,534 |
pythondev | help | ```
def make_database_url():
# Check for DATABASE_URL that is provided by heroku
if 'DATABASE_URL' in os.environ and os.environ['DATABASE_URL']:
return os.environ.get('DATABASE_URL')
else:
return 'postgresql+psycopg2://{0}:{1}@{2}:{3}/{4}'.format(
os.environ.get('DB_USER', 'postgres'),
os.environ.get('DB_PASSWORD', ''),
os.environ.get('DB_HOST', '127.0.0.1'),
os.environ.get('DB_PORT', '5432'),
os.environ.get('DB_NAME', 'postgres'),
)
``` | 2019-05-07T16:11:25.400200 | Eliana | pythondev_help_Eliana_2019-05-07T16:11:25.400200 | 1,557,245,485.4002 | 22,535 |
pythondev | help | I have a big dumb question: what is a *handler* and how does it differ from a *controller* in Rails? | 2019-05-07T16:12:13.401300 | Ann | pythondev_help_Ann_2019-05-07T16:12:13.401300 | 1,557,245,533.4013 | 22,536 |
pythondev | help | do you use `django_heroku` then? does it check the constant values as well? :slightly_smiling_face: | 2019-05-07T16:12:36.401500 | Christina | pythondev_help_Christina_2019-05-07T16:12:36.401500 | 1,557,245,556.4015 | 22,537 |
pythondev | help | no i use flask but the concept is the same. | 2019-05-07T16:12:53.401700 | Eliana | pythondev_help_Eliana_2019-05-07T16:12:53.401700 | 1,557,245,573.4017 | 22,538 |
pythondev | help | oh yeah i see now | 2019-05-07T16:13:02.401900 | Christina | pythondev_help_Christina_2019-05-07T16:13:02.401900 | 1,557,245,582.4019 | 22,539 |
pythondev | help | django_heroku use `locals()` | 2019-05-07T16:13:15.402100 | Christina | pythondev_help_Christina_2019-05-07T16:13:15.402100 | 1,557,245,595.4021 | 22,540 |
pythondev | help | what’s the context? | 2019-05-07T16:13:41.402600 | Hiroko | pythondev_help_Hiroko_2019-05-07T16:13:41.402600 | 1,557,245,621.4026 | 22,541 |
pythondev | help | Writing handlers in Tornado | 2019-05-07T16:13:58.402900 | Ann | pythondev_help_Ann_2019-05-07T16:13:58.402900 | 1,557,245,638.4029 | 22,542 |
pythondev | help | Is it just a function that "handles" routes, i.e. receives requests and does things based on them, including generating responses? | 2019-05-07T16:14:38.403600 | Ann | pythondev_help_Ann_2019-05-07T16:14:38.403600 | 1,557,245,678.4036 | 22,543 |
pythondev | help | For extremely specific context, I'm going through a tutorial that contains this code block: | 2019-05-07T16:16:28.404000 | Ann | pythondev_help_Ann_2019-05-07T16:16:28.404000 | 1,557,245,788.404 | 22,544 |
pythondev | help | ```class AltimeterHandler(web.RequestHandler):
SUPPORTED_METHODS = ("GET")
ALTIMETER_ID = 1
def get(self, id):
if int(id) is not self.__class__.ALTIMETER_ID:
self.set_status(HTTPStatus.NOT_FOUND)
return
unit = self.get_arguments('unit')
if 'meters' in unit:
altitude_multiplier = 0.3048
response_unit = 'meters'
else:
altitude_multiplier = 1
response_unit = 'feet'
print("I've started retrieving the altitude")
altitude = round(drone.altimeter.altitude * altitude_multiplier, 4)
print("I've finished retrieving the altitude")
response = {
'altitude': altitude,
'unit': response_unit}
self.set_status(HTTPStatus.OK)
self.write(response) ``` | 2019-05-07T16:16:30.404200 | Ann | pythondev_help_Ann_2019-05-07T16:16:30.404200 | 1,557,245,790.4042 | 22,545 |
pythondev | help | Just want to understand what Handler means in this context | 2019-05-07T16:16:51.404600 | Ann | pythondev_help_Ann_2019-05-07T16:16:51.404600 | 1,557,245,811.4046 | 22,546 |
pythondev | help | seems like they’re pretty similar | 2019-05-07T16:18:56.404800 | Hiroko | pythondev_help_Hiroko_2019-05-07T16:18:56.404800 | 1,557,245,936.4048 | 22,547 |
pythondev | help | eg, handler in tornado is similar to a view in django/flask and controller in rails | 2019-05-07T16:19:14.405600 | Hiroko | pythondev_help_Hiroko_2019-05-07T16:19:14.405600 | 1,557,245,954.4056 | 22,548 |
pythondev | help | ```A Tornado web application generally consists of one or more RequestHandler subclasses, an Application object which routes incoming requests to handlers``` | 2019-05-07T16:19:28.405800 | Hiroko | pythondev_help_Hiroko_2019-05-07T16:19:28.405800 | 1,557,245,968.4058 | 22,549 |
pythondev | help | :thinking_face: Thanks <@Hiroko>! | 2019-05-07T16:52:27.406500 | Ann | pythondev_help_Ann_2019-05-07T16:52:27.406500 | 1,557,247,947.4065 | 22,550 |
pythondev | help | I'm kinda stuck. I was trying to write something clean in an excel doc with Openpyxl. in order to shorten my code instead of saying , | 2019-05-07T17:17:25.407900 | Walton | pythondev_help_Walton_2019-05-07T17:17:25.407900 | 1,557,249,445.4079 | 22,551 |
pythondev | help | What do you mean by cleaner? The loop looks like covers your needs (unless you need to cover more then one row).
I don't exactly understand the significance of the top portion (`sheet['A1'].value == one fish` etc) | 2019-05-07T17:22:48.408200 | Krista | pythondev_help_Krista_2019-05-07T17:22:48.408200 | 1,557,249,768.4082 | 22,552 |
pythondev | help | Well, with the first four lines, thats me writing every entry manually.
with lines 7,8 i'd like it to just take an array of values and write it across the row. | 2019-05-07T17:24:11.408400 | Walton | pythondev_help_Walton_2019-05-07T17:24:11.408400 | 1,557,249,851.4084 | 22,553 |
pythondev | help | it should give the same result as lines 1-4, but all be done in 2 lines by looping through the array | 2019-05-07T17:24:54.408600 | Walton | pythondev_help_Walton_2019-05-07T17:24:54.408600 | 1,557,249,894.4086 | 22,554 |
pythondev | help | i'll have to apply a similar logic when I copy a list of results out of one excel document and start writing it to another | 2019-05-07T17:26:21.408800 | Walton | pythondev_help_Walton_2019-05-07T17:26:21.408800 | 1,557,249,981.4088 | 22,555 |
pythondev | help | Ok, I'm with you. Is the data you are writing in each row the same. i.e. are you always writing "one fish" in the first column, "two fish" in the second column, etc.? | 2019-05-07T17:28:46.409000 | Krista | pythondev_help_Krista_2019-05-07T17:28:46.409000 | 1,557,250,126.409 | 22,556 |
pythondev | help | For this i'm establishing all the headers for Row 1, First Name, Last Name, Organization, Email
For the other portions, i'll be importing the columns of data from row 2 to max row. | 2019-05-07T17:30:20.409200 | Walton | pythondev_help_Walton_2019-05-07T17:30:20.409200 | 1,557,250,220.4092 | 22,557 |
pythondev | help | I just used one fish, two fish as an example | 2019-05-07T17:30:32.409400 | Walton | pythondev_help_Walton_2019-05-07T17:30:32.409400 | 1,557,250,232.4094 | 22,558 |
pythondev | help | Do you need to write all the imported data using the same code, or is that being handled somewhere else? | 2019-05-07T17:32:00.409600 | Krista | pythondev_help_Krista_2019-05-07T17:32:00.409600 | 1,557,250,320.4096 | 22,559 |
pythondev | help | I'll do a variation of this solution elsewhere to import the data | 2019-05-07T17:33:10.409800 | Walton | pythondev_help_Walton_2019-05-07T17:33:10.409800 | 1,557,250,390.4098 | 22,560 |
pythondev | help | The most straightfoward way to do this is with a list of lists:
`[['one fish', 'two fish', 'red fish', 'blue fish'], ['next rowA', 'next rowB', 'next rowC', 'next rowD'] , etc]` | 2019-05-07T17:35:59.410000 | Krista | pythondev_help_Krista_2019-05-07T17:35:59.410000 | 1,557,250,559.41 | 22,561 |
pythondev | help | When writing, you will use a nested loop to grab each value that you need, | 2019-05-07T17:36:21.410200 | Krista | pythondev_help_Krista_2019-05-07T17:36:21.410200 | 1,557,250,581.4102 | 22,562 |
pythondev | help | huh | 2019-05-07T17:37:01.410400 | Walton | pythondev_help_Walton_2019-05-07T17:37:01.410400 | 1,557,250,621.4104 | 22,563 |
pythondev | help | i mean i get it, it's jsut weird to me. | 2019-05-07T17:37:13.410600 | Walton | pythondev_help_Walton_2019-05-07T17:37:13.410600 | 1,557,250,633.4106 | 22,564 |
pythondev | help | '''
data = [[], []] # the list of lists
for row_index in range(0, len(data)):
current_row = data[row_index]
for column_index in range(0, len(current_row)):
data_for_cell = current_row[column_index]
# Write the data to the document using row_index and column_index
''' | 2019-05-07T17:39:03.411000 | Krista | pythondev_help_Krista_2019-05-07T17:39:03.411000 | 1,557,250,743.411 | 22,565 |
pythondev | help | Yeah, it can be a little strange, but I don't think there's a more efficient way to handle spreadsheet data | 2019-05-07T17:39:37.411200 | Krista | pythondev_help_Krista_2019-05-07T17:39:37.411200 | 1,557,250,777.4112 | 22,566 |
pythondev | help | I get no errors witht he logic, but I see no values entered. | 2019-05-07T17:46:44.411400 | Walton | pythondev_help_Walton_2019-05-07T17:46:44.411400 | 1,557,251,204.4114 | 22,567 |
pythondev | help | I see it says range 0. shouldn't it be 1 for openpyxl? | 2019-05-07T17:47:00.411600 | Walton | pythondev_help_Walton_2019-05-07T17:47:00.411600 | 1,557,251,220.4116 | 22,568 |
pythondev | help | Probably, based on your example. Things are typically zero-indexed, but they might not be for openpyxl, I've never used the library | 2019-05-07T17:51:26.411800 | Krista | pythondev_help_Krista_2019-05-07T17:51:26.411800 | 1,557,251,486.4118 | 22,569 |
pythondev | help | And you will need to populate `data` with the actual information you are trying to put in | 2019-05-07T17:51:49.412000 | Krista | pythondev_help_Krista_2019-05-07T17:51:49.412000 | 1,557,251,509.412 | 22,570 |
pythondev | help | Try ` data = [['one fish', 'two fish', 'red fish', 'blue fish']]` for a POC | 2019-05-07T17:52:15.412200 | Krista | pythondev_help_Krista_2019-05-07T17:52:15.412200 | 1,557,251,535.4122 | 22,571 |
pythondev | help | oh I did do that | 2019-05-07T17:53:43.412400 | Walton | pythondev_help_Walton_2019-05-07T17:53:43.412400 | 1,557,251,623.4124 | 22,572 |
pythondev | help | basically I have this:
data = [['One Fish'],['Two Fish'],['Red Fish'],['Blue Fish']] # the list of lists
for row_index in range(1, len(data)):
current_row = data[row_index]
for column_index in range(1, len(current_row)):
data_for_cell = current_row[column_index]
# Write the data to the document using row_index and column_index | 2019-05-07T17:54:15.412600 | Walton | pythondev_help_Walton_2019-05-07T17:54:15.412600 | 1,557,251,655.4126 | 22,573 |
pythondev | help | You need to change the indexing to `in range(1, len(data)+1)` | 2019-05-07T17:57:42.412800 | Krista | pythondev_help_Krista_2019-05-07T17:57:42.412800 | 1,557,251,862.4128 | 22,574 |
pythondev | help | The `range` operator assumes zero based indexing as well, my bad, didn't think of that | 2019-05-07T17:58:03.413000 | Krista | pythondev_help_Krista_2019-05-07T17:58:03.413000 | 1,557,251,883.413 | 22,575 |
pythondev | help | oh, ok lemme try that | 2019-05-07T17:58:34.413200 | Walton | pythondev_help_Walton_2019-05-07T17:58:34.413200 | 1,557,251,914.4132 | 22,576 |
pythondev | help | Nothing's happening because with the outer loop you are basically saying `for row_index in range(1, 1)` which just exits immediately | 2019-05-07T17:58:49.413400 | Krista | pythondev_help_Krista_2019-05-07T17:58:49.413400 | 1,557,251,929.4134 | 22,577 |
pythondev | help | Do it with the inner row as well | 2019-05-07T17:59:22.413600 | Krista | pythondev_help_Krista_2019-05-07T17:59:22.413600 | 1,557,251,962.4136 | 22,578 |
pythondev | help | got an error of : List index out of range | 2019-05-07T18:00:44.413800 | Walton | pythondev_help_Walton_2019-05-07T18:00:44.413800 | 1,557,252,044.4138 | 22,579 |
pythondev | help | i found an openpyxl doc... but it references something called lista... but openpyxl doesn't know what lista is... and its documentation written by openpyxl | 2019-05-07T18:01:43.414000 | Walton | pythondev_help_Walton_2019-05-07T18:01:43.414000 | 1,557,252,103.414 | 22,580 |
pythondev | help | Can you show me? | 2019-05-07T18:05:02.414200 | Krista | pythondev_help_Krista_2019-05-07T18:05:02.414200 | 1,557,252,302.4142 | 22,581 |
pythondev | help | Bottom Example: <http://www.pythonexcel.com/openpyxl-write-to-cell.php> | 2019-05-07T18:05:17.414400 | Walton | pythondev_help_Walton_2019-05-07T18:05:17.414400 | 1,557,252,317.4144 | 22,582 |
pythondev | help | with that i tried:
for i in range (1,4):
cellref=exSheet.cell(row=1,column=i)
cellref.value=list [data] | 2019-05-07T18:05:58.414700 | Walton | pythondev_help_Walton_2019-05-07T18:05:58.414700 | 1,557,252,358.4147 | 22,583 |
pythondev | help | sorry...I haven't read the whole conversation here...but I think have you tried creating a list from your values. So `data = ['one fish', 'two fish', 'red fish', 'blue fish']` | 2019-05-07T18:06:50.414900 | Marth | pythondev_help_Marth_2019-05-07T18:06:50.414900 | 1,557,252,410.4149 | 22,584 |
pythondev | help | then in your for loop doing something like | 2019-05-07T18:06:59.415100 | Marth | pythondev_help_Marth_2019-05-07T18:06:59.415100 | 1,557,252,419.4151 | 22,585 |
pythondev | help | `Sheet['(row=1, column=headers)'].value = data[header]` | 2019-05-07T18:07:23.415300 | Marth | pythondev_help_Marth_2019-05-07T18:07:23.415300 | 1,557,252,443.4153 | 22,586 |
pythondev | help | also notice `==` is to check if something equals something you want to use one `=` to set a value | 2019-05-07T18:07:53.415500 | Marth | pythondev_help_Marth_2019-05-07T18:07:53.415500 | 1,557,252,473.4155 | 22,587 |
pythondev | help | ^ Good catch with the `==` | 2019-05-07T18:08:08.415700 | Krista | pythondev_help_Krista_2019-05-07T18:08:08.415700 | 1,557,252,488.4157 | 22,588 |
pythondev | help | shoot that should be `= data[headers]` with an "s" since that your for iterator | 2019-05-07T18:09:14.415900 | Marth | pythondev_help_Marth_2019-05-07T18:09:14.415900 | 1,557,252,554.4159 | 22,589 |
pythondev | help | And the `lista` appears to be a variable name in their example, replace it with `data[row_index][column_index]` for your process | 2019-05-07T18:09:20.416100 | Krista | pythondev_help_Krista_2019-05-07T18:09:20.416100 | 1,557,252,560.4161 | 22,590 |
pythondev | help | hey Dan. all great advice. here is my output with your suggestion though :disappointed: ValueError: (row=1, column=headers) is not a valid coordinate or range | 2019-05-07T18:10:58.416300 | Walton | pythondev_help_Walton_2019-05-07T18:10:58.416300 | 1,557,252,658.4163 | 22,591 |
pythondev | help | cstarner, going to try that edit | 2019-05-07T18:11:07.416500 | Walton | pythondev_help_Walton_2019-05-07T18:11:07.416500 | 1,557,252,667.4165 | 22,592 |
pythondev | help | ah...ok, I hadn't checked the syntax, maybe try something like... | 2019-05-07T18:12:11.416700 | Marth | pythondev_help_Marth_2019-05-07T18:12:11.416700 | 1,557,252,731.4167 | 22,593 |
pythondev | help | also IndexError: list index out of range | 2019-05-07T18:12:21.416900 | Walton | pythondev_help_Walton_2019-05-07T18:12:21.416900 | 1,557,252,741.4169 | 22,594 |
pythondev | help | data = [['One Fish'],['Two Fish'],['Red Fish'],['Blue Fish']] # the list of lists
for row_index in range(0, len(data)):
current_row = data[row_index]
for column_index in range(0, len(current_row)):
column_index_for_write = column_index + 1
row_index_for_write = row_index + 1
data_for_cell = current_row[column_index]
# Write the data to the document using row_index_for_write and column_index_for_write | 2019-05-07T18:13:15.417100 | Krista | pythondev_help_Krista_2019-05-07T18:13:15.417100 | 1,557,252,795.4171 | 22,595 |
pythondev | help | `Sheet.cell(row=1, column=headers).value = data[headers]` | 2019-05-07T18:13:16.417300 | Marth | pythondev_help_Marth_2019-05-07T18:13:16.417300 | 1,557,252,796.4173 | 22,596 |
pythondev | help | you had `'(row=1, column=headers)'` in single quotes, so python was reading it as a string | 2019-05-07T18:13:53.417500 | Marth | pythondev_help_Marth_2019-05-07T18:13:53.417500 | 1,557,252,833.4175 | 22,597 |
pythondev | help | without the apostropes I get a syntax error | 2019-05-07T18:14:05.417800 | Walton | pythondev_help_Walton_2019-05-07T18:14:05.417800 | 1,557,252,845.4178 | 22,598 |
pythondev | help | can you post that line as you now have it written and the entire error | 2019-05-07T18:14:56.418000 | Marth | pythondev_help_Marth_2019-05-07T18:14:56.418000 | 1,557,252,896.418 | 22,599 |
pythondev | help | I'll also need to look back at some of my code where I used openpyxl...I don't remember using the references that way (but there could easily be more than one way to reference a cell) | 2019-05-07T18:15:32.418200 | Marth | pythondev_help_Marth_2019-05-07T18:15:32.418200 | 1,557,252,932.4182 | 22,600 |
pythondev | help | >>> for headers in range (1,4):
exSheet[(row=1, column=headers)].value = data[headers]
SyntaxError: invalid syntax | 2019-05-07T18:16:00.418400 | Walton | pythondev_help_Walton_2019-05-07T18:16:00.418400 | 1,557,252,960.4184 | 22,601 |
pythondev | help | can you remove the square brackets? | 2019-05-07T18:16:35.418600 | Marth | pythondev_help_Marth_2019-05-07T18:16:35.418600 | 1,557,252,995.4186 | 22,602 |
pythondev | help | my sheet is called exSheet, as i'll be working with multiple sheets and this is the export sheet of data | 2019-05-07T18:16:38.418800 | Walton | pythondev_help_Walton_2019-05-07T18:16:38.418800 | 1,557,252,998.4188 | 22,603 |
pythondev | help | that may work | 2019-05-07T18:16:47.419000 | Walton | pythondev_help_Walton_2019-05-07T18:16:47.419000 | 1,557,253,007.419 | 22,604 |
pythondev | help | TypeError: 'Worksheet' object is not callable | 2019-05-07T18:17:26.419200 | Walton | pythondev_help_Walton_2019-05-07T18:17:26.419200 | 1,557,253,046.4192 | 22,605 |
pythondev | help | we may need you to post more of your code (like where how your creating the exSheet object, etc. Also, when you post code, can you use the snippet feature (it's under the :heavy_plus_sign: sign to the left of the dialog box where we're typing) | 2019-05-07T18:18:59.419400 | Marth | pythondev_help_Marth_2019-05-07T18:18:59.419400 | 1,557,253,139.4194 | 22,606 |
pythondev | help | it'll make reading the code easier | 2019-05-07T18:19:06.419600 | Marth | pythondev_help_Marth_2019-05-07T18:19:06.419600 | 1,557,253,146.4196 | 22,607 |
pythondev | help | you got it | 2019-05-07T18:20:08.419800 | Walton | pythondev_help_Walton_2019-05-07T18:20:08.419800 | 1,557,253,208.4198 | 22,608 |
pythondev | help | oh shoot....I might be wrong, in threads, code might not be supported | 2019-05-07T18:20:19.420000 | Marth | pythondev_help_Marth_2019-05-07T18:20:19.420000 | 1,557,253,219.42 | 22,609 |
pythondev | help | just noticed that myself | 2019-05-07T18:20:28.420200 | Walton | pythondev_help_Walton_2019-05-07T18:20:28.420200 | 1,557,253,228.4202 | 22,610 |
pythondev | help | if not, I'd post the code in the main part of the channel and use the code thing there :slightly_smiling_face: | 2019-05-07T18:20:49.420500 | Marth | pythondev_help_Marth_2019-05-07T18:20:49.420500 | 1,557,253,249.4205 | 22,611 |
pythondev | help | Code i'm workign on to try and get a list of headers written to Excel via an array | 2019-05-07T18:26:02.420700 | Walton | pythondev_help_Walton_2019-05-07T18:26:02.420700 | 1,557,253,562.4207 | 22,612 |
pythondev | help | posted | 2019-05-07T18:26:05.421000 | Walton | pythondev_help_Walton_2019-05-07T18:26:05.421000 | 1,557,253,565.421 | 22,613 |
pythondev | help | 4 different attempts | 2019-05-07T18:26:12.421200 | Walton | pythondev_help_Walton_2019-05-07T18:26:12.421200 | 1,557,253,572.4212 | 22,614 |
pythondev | help | Sorry didn't read the rest of the above chain but
```
#attempt 1
for headers in range (1,4):
cellref.value = data[headers]
```
should be:
```
for headers in range(0,4):
cellref.value = data[headers][0]
``` | 2019-05-07T18:30:16.422400 | Maricruz | pythondev_help_Maricruz_2019-05-07T18:30:16.422400 | 1,557,253,816.4224 | 22,615 |
pythondev | help | i thought openpyxl doesn't use 0 | 2019-05-07T18:30:46.423200 | Walton | pythondev_help_Walton_2019-05-07T18:30:46.423200 | 1,557,253,846.4232 | 22,616 |
pythondev | help | Although I think you can just write `data` as a regular list rather than a list of lists? `data = ['One Fish', 'Two Fish', etc]` | 2019-05-07T18:30:57.423400 | Maricruz | pythondev_help_Maricruz_2019-05-07T18:30:57.423400 | 1,557,253,857.4234 | 22,617 |
pythondev | help | yeah I JUST made the change in value for data, and I now get no error, but only thing listed is in A1, and it's Blue Fish | 2019-05-07T18:31:44.424700 | Walton | pythondev_help_Walton_2019-05-07T18:31:44.424700 | 1,557,253,904.4247 | 22,618 |
pythondev | help | None | 2019-05-07T18:32:04.425000 | Walton | pythondev_help_Walton_2019-05-07T18:32:04.425000 | 1,557,253,924.425 | 22,619 |
pythondev | help | You need to loop through the row you want your headers in | 2019-05-07T18:32:23.425700 | Maricruz | pythondev_help_Maricruz_2019-05-07T18:32:23.425700 | 1,557,253,943.4257 | 22,620 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.