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 | `base_volume_listoflist_return` isn't defined within this code-block, so I have no idea what it really is. | 2018-03-03T11:23:03.000093 | Lynnette | pythondev_help_Lynnette_2018-03-03T11:23:03.000093 | 1,520,076,183.000093 | 37,124 |
pythondev | help | i got what i was doing wrong. yeah enumerate is intersting thing, i should read now | 2018-03-03T11:24:47.000079 | Refugia | pythondev_help_Refugia_2018-03-03T11:24:47.000079 | 1,520,076,287.000079 | 37,125 |
pythondev | help | `base_volume_listoflist_return[][] | 2018-03-03T11:25:00.000050 | Refugia | pythondev_help_Refugia_2018-03-03T11:25:00.000050 | 1,520,076,300.00005 | 37,126 |
pythondev | help | first square bracket was missing, its fixed now | 2018-03-03T11:25:14.000089 | Refugia | pythondev_help_Refugia_2018-03-03T11:25:14.000089 | 1,520,076,314.000089 | 37,127 |
pythondev | help | <@Lynnette> instead of using nested for loop, how do i use enumerate ? I am running index bcz i wanted to sum range of index position in list, and write that into excel. let me draft dummy sample code | 2018-03-03T11:31:16.000072 | Refugia | pythondev_help_Refugia_2018-03-03T11:31:16.000072 | 1,520,076,676.000072 | 37,128 |
pythondev | help | I have one question, which related to decorators. for example I wrote the next decorator, which handle the error, and then just output the error.
```
def handle_error(func):
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as err:
print(err)
... | 2018-03-03T11:40:21.000052 | Pei | pythondev_help_Pei_2018-03-03T11:40:21.000052 | 1,520,077,221.000052 | 37,129 |
pythondev | help | for some reason when i go through the first time it's successful but if i atry "bitcoin" a second time after continuing i get this error
```Traceback (most recent call last):
File "Z:/pyTradeBot/Crypto-Trading-Bot/database/cmc.py", line 38, in <module>
data = request.json()
File "C:\Program Files\Python36... | 2018-03-03T13:14:20.000009 | Bobbie | pythondev_help_Bobbie_2018-03-03T13:14:20.000009 | 1,520,082,860.000009 | 37,130 |
pythondev | help | does anyone know a git url where I can find sample Mapreduce code samples ? | 2018-03-03T17:42:34.000019 | Elaine | pythondev_help_Elaine_2018-03-03T17:42:34.000019 | 1,520,098,954.000019 | 37,131 |
pythondev | help | anyone know of techniques to programmatically scrape a web page for xpath info? i need to do this for quite a large number of sites. will give +1 for links to docs or articles :smile: | 2018-03-03T18:43:05.000089 | Teodora | pythondev_help_Teodora_2018-03-03T18:43:05.000089 | 1,520,102,585.000089 | 37,132 |
pythondev | help | <https://www.edureka.co/blog/mapreduce-tutorial/> | 2018-03-03T18:49:49.000027 | Teodora | pythondev_help_Teodora_2018-03-03T18:49:49.000027 | 1,520,102,989.000027 | 37,133 |
pythondev | help | <@Yukiko> `setdefault` is a way to make sure something exists in a dictionary before you use it. if `character` is in the dictionary already, it does nothing. if its not there, it sets it with a value of `0` | 2018-03-04T00:41:31.000052 | Noel | pythondev_help_Noel_2018-03-04T00:41:31.000052 | 1,520,124,091.000052 | 37,134 |
pythondev | help | what do you mean xpath info | 2018-03-04T00:52:19.000055 | Raelene | pythondev_help_Raelene_2018-03-04T00:52:19.000055 | 1,520,124,739.000055 | 37,135 |
pythondev | help | <@Teodora> <https://doc.scrapy.org/en/latest/intro/tutorial.html> contains everything you'll ever need. | 2018-03-04T02:09:31.000023 | Lynnette | pythondev_help_Lynnette_2018-03-04T02:09:31.000023 | 1,520,129,371.000023 | 37,136 |
pythondev | help | Don't optimize too early. Just focus on making it work first. | 2018-03-04T09:07:23.000085 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:07:23.000085 | 1,520,154,443.000085 | 37,137 |
pythondev | help | also, `range(len` is code smell. You should almost never do this in python | 2018-03-04T09:07:53.000007 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:07:53.000007 | 1,520,154,473.000007 | 37,138 |
pythondev | help | if you need to, you can use `for (index, item) in enumerate(market_list_return):` | 2018-03-04T09:08:40.000041 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:08:40.000041 | 1,520,154,520.000041 | 37,139 |
pythondev | help | this grabs the item in that cell, as well as keeps track of the index. | 2018-03-04T09:08:57.000006 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:08:57.000006 | 1,520,154,537.000006 | 37,140 |
pythondev | help | yep its working find with nested loop. \sheet.cell(row = market + 2, = index + 3).value = (base_volume_listoflist_return[market][index]) | 2018-03-04T09:13:05.000049 | Refugia | pythondev_help_Refugia_2018-03-04T09:13:05.000049 | 1,520,154,785.000049 | 37,141 |
pythondev | help | how do u put the code in red color in the chat ? | 2018-03-04T09:13:29.000061 | Refugia | pythondev_help_Refugia_2018-03-04T09:13:29.000061 | 1,520,154,809.000061 | 37,142 |
pythondev | help | it's called markdown syntax. You surround your code with backticks: ` | 2018-03-04T09:13:51.000084 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:13:51.000084 | 1,520,154,831.000084 | 37,143 |
pythondev | help | `test` | 2018-03-04T09:14:05.000065 | Refugia | pythondev_help_Refugia_2018-03-04T09:14:05.000065 | 1,520,154,845.000065 | 37,144 |
pythondev | help | wow thanks :slightly_smiling_face: | 2018-03-04T09:14:10.000023 | Refugia | pythondev_help_Refugia_2018-03-04T09:14:10.000023 | 1,520,154,850.000023 | 37,145 |
pythondev | help | you can surround multiple lines with triple backticks too | 2018-03-04T09:14:26.000102 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:14:26.000102 | 1,520,154,866.000102 | 37,146 |
pythondev | help | how do i enumerate list of list ? i wanted to write base_volume_listoflist_return based on indexs of market_list_return ,ticker_list_return ? | 2018-03-04T09:15:35.000038 | Refugia | pythondev_help_Refugia_2018-03-04T09:15:35.000038 | 1,520,154,935.000038 | 37,147 |
pythondev | help | <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#code-blocks> | 2018-03-04T09:16:44.000091 | Floy | pythondev_help_Floy_2018-03-04T09:16:44.000091 | 1,520,155,004.000091 | 37,148 |
pythondev | help | i was hoping this would work, but it doesnt give the expected result
``` for bv in enumerate(base_volume_listoflist_return):
for ind, item in enumerate(bv):
print (item)``` | 2018-03-04T09:19:24.000040 | Refugia | pythondev_help_Refugia_2018-03-04T09:19:24.000040 | 1,520,155,164.00004 | 37,149 |
pythondev | help | if you enumerate both, you'll need to capture all the variables from each. | 2018-03-04T09:19:54.000029 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:19:54.000029 | 1,520,155,194.000029 | 37,150 |
pythondev | help | look at line 1 | 2018-03-04T09:19:57.000001 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:19:57.000001 | 1,520,155,197.000001 | 37,151 |
pythondev | help | it should be `for (i, x) in enumerate` | 2018-03-04T09:20:11.000122 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:20:11.000122 | 1,520,155,211.000122 | 37,152 |
pythondev | help | ```for (i, x) in enumerate(base_volume_listoflist_return):
for (j, y) in enumerate(x):
print ('Row: {0}, Column: {1}, Data: {2}'.format(i, j, y))``` | 2018-03-04T09:21:12.000009 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:21:12.000009 | 1,520,155,272.000009 | 37,153 |
pythondev | help | try that | 2018-03-04T09:21:14.000068 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:21:14.000068 | 1,520,155,274.000068 | 37,154 |
pythondev | help | there's 2 important things there. | 2018-03-04T09:24:49.000031 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:24:49.000031 | 1,520,155,489.000031 | 37,155 |
pythondev | help | works perfect, great thanks <@Lynnette> | 2018-03-04T09:24:49.000067 | Refugia | pythondev_help_Refugia_2018-03-04T09:24:49.000067 | 1,520,155,489.000067 | 37,156 |
pythondev | help | 1) enumerate returns a tuple of (index, item), and uses sexy iterators to do it with a generator | 2018-03-04T09:25:08.000099 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:25:08.000099 | 1,520,155,508.000099 | 37,157 |
pythondev | help | 2) `'{0} is replaced'.format('THIS')` is string formatting | 2018-03-04T09:25:44.000095 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:25:44.000095 | 1,520,155,544.000095 | 37,158 |
pythondev | help | you should get comfortable with both | 2018-03-04T09:27:32.000007 | Lynnette | pythondev_help_Lynnette_2018-03-04T09:27:32.000007 | 1,520,155,652.000007 | 37,159 |
pythondev | help | Can anyone help judge me code? | 2018-03-04T10:59:30.000108 | Jenna | pythondev_help_Jenna_2018-03-04T10:59:30.000108 | 1,520,161,170.000108 | 37,160 |
pythondev | help | when timestamp is not matching, i am writing zero into list and excel sheet | 2018-03-04T13:14:29.000109 | Refugia | pythondev_help_Refugia_2018-03-04T13:14:29.000109 | 1,520,169,269.000109 | 37,161 |
pythondev | help | <@Refugia> You're using the requests library? If so, you can just do `requests.get(url).json()` | 2018-03-04T15:16:22.000105 | Lynnette | pythondev_help_Lynnette_2018-03-04T15:16:22.000105 | 1,520,176,582.000105 | 37,162 |
pythondev | help | Also, stop doing `range(len())`. There never a single case where you should do this... ever... | 2018-03-04T15:32:25.000048 | Lynnette | pythondev_help_Lynnette_2018-03-04T15:32:25.000048 | 1,520,177,545.000048 | 37,163 |
pythondev | help | <@Refugia> `len()` "Return the length (the number of items) of an object. The argument may be a sequence (such as a string, bytes, tuple, list, or range) or a collection (such as a dictionary, set, or frozen set)". In other words, if it has a length it will return it. `range()` returns an iterable (like all the ones ... | 2018-03-04T15:54:03.000038 | Monroe | pythondev_help_Monroe_2018-03-04T15:54:03.000038 | 1,520,178,843.000038 | 37,164 |
pythondev | help | yes i m using request library, sure i will make those changes | 2018-03-04T22:03:41.000014 | Refugia | pythondev_help_Refugia_2018-03-04T22:03:41.000014 | 1,520,201,021.000014 | 37,165 |
pythondev | help | yes i m modifying my code peice by piece, for other cases i use enumerate thing. i would b doing something similar here. | 2018-03-04T22:04:35.000017 | Refugia | pythondev_help_Refugia_2018-03-04T22:04:35.000017 | 1,520,201,075.000017 | 37,166 |
pythondev | help | How do I invite someone to <http://pythondev.slack.com|pythondev.slack.com> | 2018-03-05T00:11:38.000099 | Joaquin | pythondev_help_Joaquin_2018-03-05T00:11:38.000099 | 1,520,208,698.000099 | 37,167 |
pythondev | help | <@Joaquin> just direct them to <https://pyslackers.com/slack/> | 2018-03-05T00:12:17.000173 | Noel | pythondev_help_Noel_2018-03-05T00:12:17.000173 | 1,520,208,737.000173 | 37,168 |
pythondev | help | Thanks <@Noel> | 2018-03-05T00:14:22.000111 | Joaquin | pythondev_help_Joaquin_2018-03-05T00:14:22.000111 | 1,520,208,862.000111 | 37,169 |
pythondev | help | a novice question about unittest.
Lets say i have two functions - sanitize_input() and foo(input). sanitize_input makes sure input for foo is valid, while the foo function does the actual work our program needs to do. Now, obviously, tests need to cover many possible inputs for sanitize_input, and all valid inputs for... | 2018-03-05T05:20:04.000536 | Jolyn | pythondev_help_Jolyn_2018-03-05T05:20:04.000536 | 1,520,227,204.000536 | 37,170 |
pythondev | help | all inputs, no | 2018-03-05T05:22:26.000099 | Floy | pythondev_help_Floy_2018-03-05T05:22:26.000099 | 1,520,227,346.000099 | 37,171 |
pythondev | help | you should give a sample of valid input | 2018-03-05T05:22:38.000147 | Floy | pythondev_help_Floy_2018-03-05T05:22:38.000147 | 1,520,227,358.000147 | 37,172 |
pythondev | help | #all #dataset
Hello together )
Can you help me, with this:
- i have brats 2015 dataset
- i need to open each files
- all files in *.mha
how open *.mha files ??? | 2018-03-05T05:22:38.000182 | Crissy | pythondev_help_Crissy_2018-03-05T05:22:38.000182 | 1,520,227,358.000182 | 37,173 |
pythondev | help | invalid input | 2018-03-05T05:22:42.000253 | Floy | pythondev_help_Floy_2018-03-05T05:22:42.000253 | 1,520,227,362.000253 | 37,174 |
pythondev | help | and a couple different options of each | 2018-03-05T05:22:53.000294 | Floy | pythondev_help_Floy_2018-03-05T05:22:53.000294 | 1,520,227,373.000294 | 37,175 |
pythondev | help | hello everyone. I have this dictionary:
```
choices = {"r": "Rock", "p": "Paper", "s": "Scissors"}```
and I’d like to turn this into the following string:
```Rock(r), Paper(p), Scissors(s)```
one way would be
```
p = []
for k, v in choices.items():
p.append("{}({})".format(v, k))
print(", ".join(p))
```
but I was... | 2018-03-05T06:57:14.000369 | Suzette | pythondev_help_Suzette_2018-03-05T06:57:14.000369 | 1,520,233,034.000369 | 37,176 |
pythondev | help | <@Suzette> something like this ```", ".join(map(lambda t: "{}({})".format(t[1], t[0]), choices.items()))``` ? | 2018-03-05T07:21:06.000299 | Jacquelynn | pythondev_help_Jacquelynn_2018-03-05T07:21:06.000299 | 1,520,234,466.000299 | 37,177 |
pythondev | help | and This can also be done using list comprehension:
`p = ["{0}({1})".format(v,k) for k,v in choices.items()]` | 2018-03-05T07:22:23.000024 | Tammi | pythondev_help_Tammi_2018-03-05T07:22:23.000024 | 1,520,234,543.000024 | 37,178 |
pythondev | help | nice, thank you! | 2018-03-05T07:32:57.000353 | Suzette | pythondev_help_Suzette_2018-03-05T07:32:57.000353 | 1,520,235,177.000353 | 37,179 |
pythondev | help | for what it’s worth, <@Jacquelynn>’s solution is a bit faster than ABs and about 4x as fast as yours! | 2018-03-05T07:35:24.000185 | Emilio | pythondev_help_Emilio_2018-03-05T07:35:24.000185 | 1,520,235,324.000185 | 37,180 |
pythondev | help | how do i specify 0. if there is no match i wanted to write 0 for those cases | 2018-03-05T07:57:20.000231 | Refugia | pythondev_help_Refugia_2018-03-05T07:57:20.000231 | 1,520,236,640.000231 | 37,181 |
pythondev | help | `base_volume_listoflist = [gt_lst['BV'] if tk_lst==gt_lst['T'] else 0 for tk_lst in ticker_list for gt_lst in getticks_listofdict ] | 2018-03-05T07:59:43.000015 | Refugia | pythondev_help_Refugia_2018-03-05T07:59:43.000015 | 1,520,236,783.000015 | 37,182 |
pythondev | help | ```base_volume_listoflist = [gt_lst['BV'] if tk_lst==gt_lst['T'] else 0 for tk_lst in ticker_list for gt_lst in getticks_listofdict ] | 2018-03-05T07:59:54.000008 | Refugia | pythondev_help_Refugia_2018-03-05T07:59:54.000008 | 1,520,236,794.000008 | 37,183 |
pythondev | help | you need to have ticks on both sides of the string :slightly_smiling_face: | 2018-03-05T08:00:08.000568 | Floy | pythondev_help_Floy_2018-03-05T08:00:08.000568 | 1,520,236,808.000568 | 37,184 |
pythondev | help | \test | 2018-03-05T08:00:14.000345 | Refugia | pythondev_help_Refugia_2018-03-05T08:00:14.000345 | 1,520,236,814.000345 | 37,185 |
pythondev | help | ohhh yeah, i m sorry i was trying to put tick one side only :stuck_out_tongue: | 2018-03-05T08:00:43.000413 | Refugia | pythondev_help_Refugia_2018-03-05T08:00:43.000413 | 1,520,236,843.000413 | 37,186 |
pythondev | help | `base_volume_listoflist = [gt_lst['BV'] if tk_lst==gt_lst['T'] else 0 for tk_lst in ticker_list for gt_lst in getticks_listofdict ]` if i put else condition of 0, it doesnt give desired result | 2018-03-05T08:01:10.000289 | Refugia | pythondev_help_Refugia_2018-03-05T08:01:10.000289 | 1,520,236,870.000289 | 37,187 |
pythondev | help | `[11.3, 22.3,0, 44.3]` should be the output | 2018-03-05T08:02:40.000289 | Refugia | pythondev_help_Refugia_2018-03-05T08:02:40.000289 | 1,520,236,960.000289 | 37,188 |
pythondev | help | Then earlier snippet would be fine | 2018-03-05T08:03:43.000452 | Tammi | pythondev_help_Tammi_2018-03-05T08:03:43.000452 | 1,520,237,023.000452 | 37,189 |
pythondev | help | `k = [j['BV'] for i in ticker_list for j in getticks_listofdict if i == j['T']]
` | 2018-03-05T08:04:13.000010 | Tammi | pythondev_help_Tammi_2018-03-05T08:04:13.000010 | 1,520,237,053.00001 | 37,190 |
pythondev | help | out of earlier snippet skipp the non match condition and retunr only 3 values | 2018-03-05T08:04:16.000069 | Refugia | pythondev_help_Refugia_2018-03-05T08:04:16.000069 | 1,520,237,056.000069 | 37,191 |
pythondev | help | use None | 2018-03-05T08:04:55.000162 | Tammi | pythondev_help_Tammi_2018-03-05T08:04:55.000162 | 1,520,237,095.000162 | 37,192 |
pythondev | help | `None` instead of ) | 2018-03-05T08:05:04.000014 | Tammi | pythondev_help_Tammi_2018-03-05T08:05:04.000014 | 1,520,237,104.000014 | 37,193 |
pythondev | help | 0 | 2018-03-05T08:05:06.000535 | Tammi | pythondev_help_Tammi_2018-03-05T08:05:06.000535 | 1,520,237,106.000535 | 37,194 |
pythondev | help | `[11.3, 22.3, 44.3]` i got this for 1st snippet. and `[11.3, 0, 0, 0, 0, 22.3, 0, 0, 0, 0, 0, 0, 0, 0, 44.3, 0]` fpr 2nd snippet | 2018-03-05T08:05:09.000240 | Refugia | pythondev_help_Refugia_2018-03-05T08:05:09.000240 | 1,520,237,109.00024 | 37,195 |
pythondev | help | then what exactly is expected ? | 2018-03-05T08:05:26.000113 | Tammi | pythondev_help_Tammi_2018-03-05T08:05:26.000113 | 1,520,237,126.000113 | 37,196 |
pythondev | help | i would be printing these 0 into list and excel sheet. these would be further used to dereive airthmetic operation like avg, max, min | 2018-03-05T08:06:00.000196 | Refugia | pythondev_help_Refugia_2018-03-05T08:06:00.000196 | 1,520,237,160.000196 | 37,197 |
pythondev | help | thats y for missing ticker i m capturing 0 | 2018-03-05T08:06:19.000075 | Refugia | pythondev_help_Refugia_2018-03-05T08:06:19.000075 | 1,520,237,179.000075 | 37,198 |
pythondev | help | by the way this i m only testing for getticks_listofdict one dictionary. i would have numbers of such dictionary which would use loop condition moving on | 2018-03-05T08:08:35.000141 | Refugia | pythondev_help_Refugia_2018-03-05T08:08:35.000141 | 1,520,237,315.000141 | 37,199 |
pythondev | help | you can easily traverse over list of Dictionaries.
using list comprehension. | 2018-03-05T08:12:40.000184 | Tammi | pythondev_help_Tammi_2018-03-05T08:12:40.000184 | 1,520,237,560.000184 | 37,200 |
pythondev | help | yeah… I can see a number of issues in that code | 2018-03-05T08:14:34.000216 | Floy | pythondev_help_Floy_2018-03-05T08:14:34.000216 | 1,520,237,674.000216 | 37,201 |
pythondev | help | `k = [v['BV'] if v['T'] in ticker_list else 0 for v in getticks_listofdict]` | 2018-03-05T08:18:17.000533 | Tammi | pythondev_help_Tammi_2018-03-05T08:18:17.000533 | 1,520,237,897.000533 | 37,202 |
pythondev | help | I hope this helps. | 2018-03-05T08:19:11.000009 | Tammi | pythondev_help_Tammi_2018-03-05T08:19:11.000009 | 1,520,237,951.000009 | 37,203 |
pythondev | help | but it does work logically, and gives me the desired out put in both list and excel sheet | 2018-03-05T08:28:41.000371 | Refugia | pythondev_help_Refugia_2018-03-05T08:28:41.000371 | 1,520,238,521.000371 | 37,204 |
pythondev | help | since i m new to programming, i m reading more abt python, and i feel that comprehension and enumeration is the better way to write the same code | 2018-03-05T08:29:28.000439 | Refugia | pythondev_help_Refugia_2018-03-05T08:29:28.000439 | 1,520,238,568.000439 | 37,205 |
pythondev | help | a good thing keep in mind is readability | 2018-03-05T08:31:01.000176 | Floy | pythondev_help_Floy_2018-03-05T08:31:01.000176 | 1,520,238,661.000176 | 37,206 |
pythondev | help | list comps are powerful, but they can also be hard to understand | 2018-03-05T08:31:18.000323 | Floy | pythondev_help_Floy_2018-03-05T08:31:18.000323 | 1,520,238,678.000323 | 37,207 |
pythondev | help | `[11.3, 22.3, 44.3, 0]` this is good, except the fact that it has printed 0 on 4th position, where as expected is at 3rd position | 2018-03-05T08:31:37.000467 | Refugia | pythondev_help_Refugia_2018-03-05T08:31:37.000467 | 1,520,238,697.000467 | 37,208 |
pythondev | help | when you’re writing code, keep thinking ‘how is this going to be for me to come back in two months? Am I going to understand this?’ | 2018-03-05T08:31:49.000436 | Floy | pythondev_help_Floy_2018-03-05T08:31:49.000436 | 1,520,238,709.000436 | 37,209 |
pythondev | help | yeah readability is the key | 2018-03-05T08:33:01.000281 | Refugia | pythondev_help_Refugia_2018-03-05T08:33:01.000281 | 1,520,238,781.000281 | 37,210 |
pythondev | help | <@Floy> Agree.. | 2018-03-05T08:33:39.000066 | Tammi | pythondev_help_Tammi_2018-03-05T08:33:39.000066 | 1,520,238,819.000066 | 37,211 |
pythondev | help | <@Floy> any suggesion how do i rephrase the code <@Tammi> is sharing, it works great except that its returning 0 at the end rather on missing position. | 2018-03-05T08:34:00.000533 | Refugia | pythondev_help_Refugia_2018-03-05T08:34:00.000533 | 1,520,238,840.000533 | 37,212 |
pythondev | help | i think if v['T'] in ticker_list is incorrect order, i m comparing if ticker list exist in the dictionary | 2018-03-05T08:35:38.000404 | Refugia | pythondev_help_Refugia_2018-03-05T08:35:38.000404 | 1,520,238,938.000404 | 37,213 |
pythondev | help | `k = [v['BV'] if tk in v['T'] else 0 for v in getticks_listofdict for tk in ticker_list]` gives an error `TypeError: argument of type 'float' is not iterable` | 2018-03-05T08:38:08.000497 | Refugia | pythondev_help_Refugia_2018-03-05T08:38:08.000497 | 1,520,239,088.000497 | 37,214 |
pythondev | help | <@Tammi> r u ther ? | 2018-03-05T09:20:39.000484 | Refugia | pythondev_help_Refugia_2018-03-05T09:20:39.000484 | 1,520,241,639.000484 | 37,215 |
pythondev | help | whoa, still learning/hacking with python but `[v['BV'] if tk in v['T'] else 0 for v in getticks_listofdict for tk in ticker_list]` is the exact logic i've been looking for to simply a disgusting nested loop | 2018-03-05T10:28:33.000118 | Elisha | pythondev_help_Elisha_2018-03-05T10:28:33.000118 | 1,520,245,713.000118 | 37,216 |
pythondev | help | nice | 2018-03-05T10:28:34.000152 | Elisha | pythondev_help_Elisha_2018-03-05T10:28:34.000152 | 1,520,245,714.000152 | 37,217 |
pythondev | help | judging by your dict name we're doing something similar :wink: | 2018-03-05T10:28:59.000032 | Elisha | pythondev_help_Elisha_2018-03-05T10:28:59.000032 | 1,520,245,739.000032 | 37,218 |
pythondev | help | > simplify a disgusting nested loop
I don't think we mean the same thing by simplify :trollface: | 2018-03-05T10:29:38.000720 | Micki | pythondev_help_Micki_2018-03-05T10:29:38.000720 | 1,520,245,778.00072 | 37,219 |
pythondev | help | ~simplify~ make a one liner out of | 2018-03-05T10:31:10.000429 | Elisha | pythondev_help_Elisha_2018-03-05T10:31:10.000429 | 1,520,245,870.000429 | 37,220 |
pythondev | help | I think that’s pretty simple. :+1: | 2018-03-05T10:31:57.000483 | Zack | pythondev_help_Zack_2018-03-05T10:31:57.000483 | 1,520,245,917.000483 | 37,221 |
pythondev | help | <@Elisha> r u also dpong data analysis of crypto market ? I would love to hear more if you like to share | 2018-03-05T10:45:35.000741 | Refugia | pythondev_help_Refugia_2018-03-05T10:45:35.000741 | 1,520,246,735.000741 | 37,222 |
pythondev | help | doing* | 2018-03-05T10:45:41.000853 | Refugia | pythondev_help_Refugia_2018-03-05T10:45:41.000853 | 1,520,246,741.000853 | 37,223 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.