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 | Can you print out the django query | 2017-08-18T10:36:22.000380 | Meg | pythondev_help_Meg_2017-08-18T10:36:22.000380 | 1,503,052,582.00038 | 90,103 |
pythondev | help | And compare it to your straight sql | 2017-08-18T10:36:32.000230 | Meg | pythondev_help_Meg_2017-08-18T10:36:32.000230 | 1,503,052,592.00023 | 90,104 |
pythondev | help | Migrated from Google CloudSQL to Postgres using AWS's RDS Migration Tool. | 2017-08-18T10:36:54.000456 | Desire | pythondev_help_Desire_2017-08-18T10:36:54.000456 | 1,503,052,614.000456 | 90,105 |
pythondev | help | ```>>> from clients.models import *
>>> instance = Partner.objects.get(client_id=X1234)
Traceback (most recent call last):
File "<console>", line 1, in <module>
NameError: name 'X1234' is not defined
>>> instance = Partner.objects.get(client_id="X1234")
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/pathfinder/.pyenv/versions/3.6.2/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Users/pathfinder/.pyenv/versions/3.6.2/lib/python3.6/site-packages/django/db/models/query.py", line 380, in get
self.model._meta.object_name
clients.partner_models.DoesNotExist: Partner matching query does not exist.``` | 2017-08-18T10:42:03.000023 | Desire | pythondev_help_Desire_2017-08-18T10:42:03.000023 | 1,503,052,923.000023 | 90,106 |
pythondev | help | That's not quite what I meant.
<https://stackoverflow.com/questions/971667/django-orm-how-to-view-or-log-the-executed-query> | 2017-08-18T11:00:13.000540 | Meg | pythondev_help_Meg_2017-08-18T11:00:13.000540 | 1,503,054,013.00054 | 90,107 |
pythondev | help | ```(0.022) SELECT "PARTNER"."CLIENT_ID", "PARTNER"."FIRST_NAME", "PARTNER"."LAST_NAME", "PARTNER"."MOBILE", "PARTNER"."ACTIVE_FROM", "PARTNER"."RM_ID", "PARTNER"."PREFERRED_NAME", "PARTNER"."RPM", "PARTNER"."DRAWDOWN_PROTECTION", "PARTNER"."DEPOSITORY_ID", "PARTNER"."DOB", "PARTNER"."ACCOUNT_TYPE", "PARTNER"."ACCOUNT_STATUS", "PARTNER"."FIRST_HOLDER_PAN_NUMBER", "PARTNER"."CORRESPONDENCE_ADDRESS", "PARTNER"."PERMANENT_ADDRESS", "PARTNER"."NOMINEE_NAME", "PARTNER"."SECOND_HOLDER_NAME", "PARTNER"."SECOND_PAN_NUMBER", "PARTNER"."MAIL_ID", "PARTNER"."BANK_NAME", "PARTNER"."BANK_ACCOUNT_NUMBER", "PARTNER"."BANK_MICR_CODE", "PARTNER"."BANK_IFSC_CODE" FROM "PARTNER" WHERE "PARTNER"."CLIENT_ID" = 'S164173'; args=('S164173',)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/pathfinder/.pyenv/versions/3.6.2/lib/python3.6/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/Users/pathfinder/.pyenv/versions/3.6.2/lib/python3.6/site-packages/django/db/models/query.py", line 380, in get
self.model._meta.object_name
clients.partner_models.DoesNotExist: Partner matching query does not exist.``` | 2017-08-18T11:19:15.000448 | Desire | pythondev_help_Desire_2017-08-18T11:19:15.000448 | 1,503,055,155.000448 | 90,108 |
pythondev | help | I ran this query to fetch all from the table, ```SELECT * FROM "PARTNER_DB"."PARTNER"
WHERE "CLIENT_ID" = 'S164173'``` and it works | 2017-08-18T11:21:28.000294 | Desire | pythondev_help_Desire_2017-08-18T11:21:28.000294 | 1,503,055,288.000294 | 90,109 |
pythondev | help | Yeah | 2017-08-18T11:23:38.000116 | Meg | pythondev_help_Meg_2017-08-18T11:23:38.000116 | 1,503,055,418.000116 | 90,110 |
pythondev | help | It's doing a select from partner | 2017-08-18T11:23:46.000715 | Meg | pythondev_help_Meg_2017-08-18T11:23:46.000715 | 1,503,055,426.000715 | 90,111 |
pythondev | help | and a slightly modified version of django's query returns data
```SELECT "PARTNER"."CLIENT_ID", "PARTNER"."FIRST_NAME", "PARTNER"."LAST_NAME", "PARTNER"."MOBILE", "PARTNER"."ACTIVE_FROM", "PARTNER"."RM_ID", "PARTNER"."PREFERRED_NAME", "PARTNER"."RPM", "PARTNER"."DRAWDOWN_PROTECTION", "PARTNER"."DEPOSITORY_ID", "PARTNER"."DOB", "PARTNER"."ACCOUNT_TYPE", "PARTNER"."ACCOUNT_STATUS", "PARTNER"."FIRST_HOLDER_PAN_NUMBER", "PARTNER"."CORRESPONDENCE_ADDRESS", "PARTNER"."PERMANENT_ADDRESS", "PARTNER"."NOMINEE_NAME", "PARTNER"."SECOND_HOLDER_NAME", "PARTNER"."SECOND_PAN_NUMBER", "PARTNER"."MAIL_ID", "PARTNER"."BANK_NAME", "PARTNER"."BANK_ACCOUNT_NUMBER", "PARTNER"."BANK_MICR_CODE", "PARTNER"."BANK_IFSC_CODE" FROM "PARTNER_DB"."PARTNER" WHERE "PARTNER"."CLIENT_ID" = 'S164173';``` | 2017-08-18T11:23:48.000390 | Desire | pythondev_help_Desire_2017-08-18T11:23:48.000390 | 1,503,055,428.00039 | 90,112 |
pythondev | help | ```FROM "PARTNER_DB"."PARTNER"``` | 2017-08-18T11:24:00.000100 | Desire | pythondev_help_Desire_2017-08-18T11:24:00.000100 | 1,503,055,440.0001 | 90,113 |
pythondev | help | Where your manual query is going to partner_db | 2017-08-18T11:24:13.000066 | Meg | pythondev_help_Meg_2017-08-18T11:24:13.000066 | 1,503,055,453.000066 | 90,114 |
pythondev | help | why is django doing this , any idea on how to fix this ? | 2017-08-18T11:24:57.000151 | Desire | pythondev_help_Desire_2017-08-18T11:24:57.000151 | 1,503,055,497.000151 | 90,115 |
pythondev | help | Seems to be your django connection, I suspect | 2017-08-18T11:25:52.000578 | Meg | pythondev_help_Meg_2017-08-18T11:25:52.000578 | 1,503,055,552.000578 | 90,116 |
pythondev | help | :neutral_face: | 2017-08-18T11:43:24.000224 | Desire | pythondev_help_Desire_2017-08-18T11:43:24.000224 | 1,503,056,604.000224 | 90,117 |
pythondev | help | google to aws? Nooooo | 2017-08-18T13:12:31.000378 | Bruno | pythondev_help_Bruno_2017-08-18T13:12:31.000378 | 1,503,061,951.000378 | 90,118 |
pythondev | help | AWS is fine :slightly_smiling_face: | 2017-08-18T13:14:45.000118 | Beula | pythondev_help_Beula_2017-08-18T13:14:45.000118 | 1,503,062,085.000118 | 90,119 |
pythondev | help | yea. i just like googles setup more. and also can be a lot cheaper. | 2017-08-18T13:19:34.000149 | Bruno | pythondev_help_Bruno_2017-08-18T13:19:34.000149 | 1,503,062,374.000149 | 90,120 |
pythondev | help | but im going to be setting up a project on aws too with ELB and docker using spot instances. | 2017-08-18T13:20:02.000136 | Bruno | pythondev_help_Bruno_2017-08-18T13:20:02.000136 | 1,503,062,402.000136 | 90,121 |
pythondev | help | mostly because we use it at work so i just want to make sure to have more chances to be familiar with it | 2017-08-18T13:20:32.000239 | Bruno | pythondev_help_Bruno_2017-08-18T13:20:32.000239 | 1,503,062,432.000239 | 90,122 |
pythondev | help | at what point do you actually need to use AWS or google rather than rolling your own? | 2017-08-18T13:20:41.000022 | Tandra | pythondev_help_Tandra_2017-08-18T13:20:41.000022 | 1,503,062,441.000022 | 90,123 |
pythondev | help | spot/preemptive instances can save a lot anyways. | 2017-08-18T13:20:56.000274 | Bruno | pythondev_help_Bruno_2017-08-18T13:20:56.000274 | 1,503,062,456.000274 | 90,124 |
pythondev | help | to me, none | 2017-08-18T13:21:11.000570 | Bruno | pythondev_help_Bruno_2017-08-18T13:21:11.000570 | 1,503,062,471.00057 | 90,125 |
pythondev | help | I'd say when you need more of the components together than are available on their own | 2017-08-18T13:21:23.000115 | Beula | pythondev_help_Beula_2017-08-18T13:21:23.000115 | 1,503,062,483.000115 | 90,126 |
pythondev | help | i guess if you have highly specialized reasons | 2017-08-18T13:21:26.000156 | Bruno | pythondev_help_Bruno_2017-08-18T13:21:26.000156 | 1,503,062,486.000156 | 90,127 |
pythondev | help | AWS you pay for ingress/egress (data in/out) - so if you are moving data around a lot AWS makes good sense | 2017-08-18T13:21:45.000344 | Beula | pythondev_help_Beula_2017-08-18T13:21:45.000344 | 1,503,062,505.000344 | 90,128 |
pythondev | help | like dropbox benefits from their hard drive tech they work with | 2017-08-18T13:22:01.000325 | Bruno | pythondev_help_Bruno_2017-08-18T13:22:01.000325 | 1,503,062,521.000325 | 90,129 |
pythondev | help | (~AWS~ -> _Preferred Cloud Provider_) | 2017-08-18T13:22:12.000235 | Beula | pythondev_help_Beula_2017-08-18T13:22:12.000235 | 1,503,062,532.000235 | 90,130 |
pythondev | help | Azure is good, but its more expensive. | 2017-08-18T13:22:34.000184 | Bruno | pythondev_help_Bruno_2017-08-18T13:22:34.000184 | 1,503,062,554.000184 | 90,131 |
pythondev | help | and not as feature complete as google/aws | 2017-08-18T13:22:57.000306 | Bruno | pythondev_help_Bruno_2017-08-18T13:22:57.000306 | 1,503,062,577.000306 | 90,132 |
pythondev | help | btw, are there any providers that provide ( :slightly_smiling_face: ) access to bare drives? | 2017-08-18T13:22:58.000020 | Suellen | pythondev_help_Suellen_2017-08-18T13:22:58.000020 | 1,503,062,578.00002 | 90,133 |
pythondev | help | yea | 2017-08-18T13:23:12.000350 | Bruno | pythondev_help_Bruno_2017-08-18T13:23:12.000350 | 1,503,062,592.00035 | 90,134 |
pythondev | help | I want to roll out ZFS, but none of providers known to me allow it | 2017-08-18T13:23:26.000361 | Suellen | pythondev_help_Suellen_2017-08-18T13:23:26.000361 | 1,503,062,606.000361 | 90,135 |
pythondev | help | you can do that in AWS cant you? | 2017-08-18T13:23:34.000243 | Bruno | pythondev_help_Bruno_2017-08-18T13:23:34.000243 | 1,503,062,614.000243 | 90,136 |
pythondev | help | so is it more a case of ease of use or something? | 2017-08-18T13:23:43.000306 | Tandra | pythondev_help_Tandra_2017-08-18T13:23:43.000306 | 1,503,062,623.000306 | 90,137 |
pythondev | help | look for dedicated boxes. | 2017-08-18T13:23:48.000208 | Bruno | pythondev_help_Bruno_2017-08-18T13:23:48.000208 | 1,503,062,628.000208 | 90,138 |
pythondev | help | yea | 2017-08-18T13:23:51.000287 | Bruno | pythondev_help_Bruno_2017-08-18T13:23:51.000287 | 1,503,062,631.000287 | 90,139 |
pythondev | help | thought so | 2017-08-18T13:23:56.000555 | Tandra | pythondev_help_Tandra_2017-08-18T13:23:56.000555 | 1,503,062,636.000555 | 90,140 |
pythondev | help | why the need for zfs? | 2017-08-18T13:24:06.000380 | Bruno | pythondev_help_Bruno_2017-08-18T13:24:06.000380 | 1,503,062,646.00038 | 90,141 |
pythondev | help | "very specialized reasons" :slightly_smiling_face: | 2017-08-18T13:24:19.000089 | Suellen | pythondev_help_Suellen_2017-08-18T13:24:19.000089 | 1,503,062,659.000089 | 90,142 |
pythondev | help | and their dedicated boxes don't use SAN or anything like that? | 2017-08-18T13:24:42.000197 | Suellen | pythondev_help_Suellen_2017-08-18T13:24:42.000197 | 1,503,062,682.000197 | 90,143 |
pythondev | help | just drives that I can access? | 2017-08-18T13:24:48.000415 | Suellen | pythondev_help_Suellen_2017-08-18T13:24:48.000415 | 1,503,062,688.000415 | 90,144 |
pythondev | help | on aws you can make pretty custom images. | 2017-08-18T13:24:57.000351 | Bruno | pythondev_help_Bruno_2017-08-18T13:24:57.000351 | 1,503,062,697.000351 | 90,145 |
pythondev | help | do they give you much control over it though? | 2017-08-18T13:25:08.000119 | Tandra | pythondev_help_Tandra_2017-08-18T13:25:08.000119 | 1,503,062,708.000119 | 90,146 |
pythondev | help | oh. idk about that much | 2017-08-18T13:25:15.000068 | Bruno | pythondev_help_Bruno_2017-08-18T13:25:15.000068 | 1,503,062,715.000068 | 90,147 |
pythondev | help | not sure honestly. | 2017-08-18T13:25:24.000040 | Bruno | pythondev_help_Bruno_2017-08-18T13:25:24.000040 | 1,503,062,724.00004 | 90,148 |
pythondev | help | <@Orpha> likes that one provider. cant think of their name. | 2017-08-18T13:25:40.000288 | Bruno | pythondev_help_Bruno_2017-08-18T13:25:40.000288 | 1,503,062,740.000288 | 90,149 |
pythondev | help | linode | 2017-08-18T13:26:05.000260 | Bruno | pythondev_help_Bruno_2017-08-18T13:26:05.000260 | 1,503,062,765.00026 | 90,150 |
pythondev | help | i used to just use linode or other vps providers, recently started using digitalocean, they have a nice api for interacting with stuff | 2017-08-18T13:26:35.000140 | Tandra | pythondev_help_Tandra_2017-08-18T13:26:35.000140 | 1,503,062,795.00014 | 90,151 |
pythondev | help | i like DO too. slightly more expensive than linode but UI is far better and they have a nice api | 2017-08-18T13:27:13.000035 | Bruno | pythondev_help_Bruno_2017-08-18T13:27:13.000035 | 1,503,062,833.000035 | 90,152 |
pythondev | help | just wondered if i was missing something obvious with the aws stuff | 2017-08-18T13:27:14.000347 | Tandra | pythondev_help_Tandra_2017-08-18T13:27:14.000347 | 1,503,062,834.000347 | 90,153 |
pythondev | help | you should be able to make custom images | 2017-08-18T13:27:34.000540 | Bruno | pythondev_help_Bruno_2017-08-18T13:27:34.000540 | 1,503,062,854.00054 | 90,154 |
pythondev | help | check the first result here. | 2017-08-18T13:28:18.000432 | Bruno | pythondev_help_Bruno_2017-08-18T13:28:18.000432 | 1,503,062,898.000432 | 90,155 |
pythondev | help | <https://www.google.com/search?q=aws+custom+image+with+zfs&oq=aws+custom+image+with+zfs&aqs=chrome..69i57.11042j0j7&sourceid=chrome&ie=UTF-8> | 2017-08-18T13:28:19.000177 | Bruno | pythondev_help_Bruno_2017-08-18T13:28:19.000177 | 1,503,062,899.000177 | 90,156 |
pythondev | help | using puppet and similar tools sorta makes a lot of it moot for me | 2017-08-18T13:28:21.000343 | Tandra | pythondev_help_Tandra_2017-08-18T13:28:21.000343 | 1,503,062,901.000343 | 90,157 |
pythondev | help | makes what moot? the system setup? | 2017-08-18T13:29:04.000019 | Bruno | pythondev_help_Bruno_2017-08-18T13:29:04.000019 | 1,503,062,944.000019 | 90,158 |
pythondev | help | i havent used puppet. i tinkered with ansible. but i mostly just use docker | 2017-08-18T13:29:22.000223 | Bruno | pythondev_help_Bruno_2017-08-18T13:29:22.000223 | 1,503,062,962.000223 | 90,159 |
pythondev | help | not the system setup, i mostly use it for management | 2017-08-18T13:29:48.000560 | Tandra | pythondev_help_Tandra_2017-08-18T13:29:48.000560 | 1,503,062,988.00056 | 90,160 |
pythondev | help | using alpine base images and host as either ubuntu or coreos depending on the needs | 2017-08-18T13:30:01.000344 | Bruno | pythondev_help_Bruno_2017-08-18T13:30:01.000344 | 1,503,063,001.000344 | 90,161 |
pythondev | help | ah | 2017-08-18T13:30:06.000620 | Bruno | pythondev_help_Bruno_2017-08-18T13:30:06.000620 | 1,503,063,006.00062 | 90,162 |
pythondev | help | managing infrastructure? | 2017-08-18T13:30:24.000397 | Bruno | pythondev_help_Bruno_2017-08-18T13:30:24.000397 | 1,503,063,024.000397 | 90,163 |
pythondev | help | very small infrastructure | 2017-08-18T13:30:41.000014 | Tandra | pythondev_help_Tandra_2017-08-18T13:30:41.000014 | 1,503,063,041.000014 | 90,164 |
pythondev | help | i learned about terraform for that and want to try and start using that | 2017-08-18T13:30:54.000500 | Bruno | pythondev_help_Bruno_2017-08-18T13:30:54.000500 | 1,503,063,054.0005 | 90,165 |
pythondev | help | Last company we just prebaked a base AMI and used that, no need for complex tooling | 2017-08-18T13:32:16.000598 | Beula | pythondev_help_Beula_2017-08-18T13:32:16.000598 | 1,503,063,136.000598 | 90,166 |
pythondev | help | i think we use cloudformation at work. which is similar and built into aws | 2017-08-18T13:32:25.000055 | Bruno | pythondev_help_Bruno_2017-08-18T13:32:25.000055 | 1,503,063,145.000055 | 90,167 |
pythondev | help | yea. makes a lot of sense for most cases | 2017-08-18T13:32:50.000108 | Bruno | pythondev_help_Bruno_2017-08-18T13:32:50.000108 | 1,503,063,170.000108 | 90,168 |
pythondev | help | at work they want to use docker but dont know it very well. so hopefully going into a devops position i can play with that some | 2017-08-18T13:33:31.000084 | Bruno | pythondev_help_Bruno_2017-08-18T13:33:31.000084 | 1,503,063,211.000084 | 90,169 |
pythondev | help | im currently playing with docker :joy: | 2017-08-18T13:33:59.000149 | Tandra | pythondev_help_Tandra_2017-08-18T13:33:59.000149 | 1,503,063,239.000149 | 90,170 |
pythondev | help | We used docker on those, that was just the base system setup/config and docker was deployed onto it | 2017-08-18T13:34:07.000151 | Beula | pythondev_help_Beula_2017-08-18T13:34:07.000151 | 1,503,063,247.000151 | 90,171 |
pythondev | help | it seems pretty neat | 2017-08-18T13:34:13.000138 | Tandra | pythondev_help_Tandra_2017-08-18T13:34:13.000138 | 1,503,063,253.000138 | 90,172 |
pythondev | help | Should we take the convo to <#C22DMH61M|devops> ? | 2017-08-18T13:34:23.000146 | Beula | pythondev_help_Beula_2017-08-18T13:34:23.000146 | 1,503,063,263.000146 | 90,173 |
pythondev | help | Si | 2017-08-18T13:34:45.000417 | Bruno | pythondev_help_Bruno_2017-08-18T13:34:45.000417 | 1,503,063,285.000417 | 90,174 |
pythondev | help | <@Bruno> linode is currently updating their ui because they're tired of you complaining | 2017-08-18T13:44:44.000307 | Orpha | pythondev_help_Orpha_2017-08-18T13:44:44.000307 | 1,503,063,884.000307 | 90,175 |
pythondev | help | sweet | 2017-08-18T13:44:57.000275 | Bruno | pythondev_help_Bruno_2017-08-18T13:44:57.000275 | 1,503,063,897.000275 | 90,176 |
pythondev | help | lol. their UI is pretty bad. though, not as bad as godaddy | 2017-08-18T13:45:18.000429 | Bruno | pythondev_help_Bruno_2017-08-18T13:45:18.000429 | 1,503,063,918.000429 | 90,177 |
pythondev | help | still better than using c-panel | 2017-08-18T13:45:31.000256 | Orpha | pythondev_help_Orpha_2017-08-18T13:45:31.000256 | 1,503,063,931.000256 | 90,178 |
pythondev | help | yea. i would also prefer cpanel over godaddy | 2017-08-18T13:47:09.000282 | Bruno | pythondev_help_Bruno_2017-08-18T13:47:09.000282 | 1,503,064,029.000282 | 90,179 |
pythondev | help | haha | 2017-08-18T14:24:18.000367 | Orpha | pythondev_help_Orpha_2017-08-18T14:24:18.000367 | 1,503,066,258.000367 | 90,180 |
pythondev | help | Hi all, I am having an issue with sorting nested OrderedDicts..
I am trying to sort both the outermost dictionary, and the following dictionary by a key value in the innermost dictionary.
Given the attached snippet, this what I am trying to accomplish:
- For all foods, order the food subtypes by highest calorie content (i.e - For Pizza, Pesto should appear first because it has higher calories when compared to cheese.
- Order all foods by highest calorie content (i.e - Pizza should appear first as it has a subtype with more calories than any other food) | 2017-08-18T23:20:54.000043 | Daryl | pythondev_help_Daryl_2017-08-18T23:20:54.000043 | 1,503,098,454.000043 | 90,181 |
pythondev | help | Before I tacked on the outermost dictionary, I was using this to sort just the food types (red,green,pesto,cheese): `OrderedDict(sorted(d.iteritems(), key=lambda x: x[1].iteritems()))` . However, I am not sure how to proceed after having tacked on the outermost dictionary. | 2017-08-18T23:29:37.000010 | Daryl | pythondev_help_Daryl_2017-08-18T23:29:37.000010 | 1,503,098,977.00001 | 90,182 |
pythondev | help | The problem is then how to cast this as an OrderedDict? | 2017-08-18T23:47:07.000047 | Levi | pythondev_help_Levi_2017-08-18T23:47:07.000047 | 1,503,100,027.000047 | 90,183 |
pythondev | help | If that is the issue, then I can think of many non-pythonic approaches. | 2017-08-18T23:48:28.000047 | Levi | pythondev_help_Levi_2017-08-18T23:48:28.000047 | 1,503,100,108.000047 | 90,184 |
pythondev | help | Right, I'd like to make the structure into an OrderedDict. Can you point me in the right direction? | 2017-08-18T23:50:28.000063 | Daryl | pythondev_help_Daryl_2017-08-18T23:50:28.000063 | 1,503,100,228.000063 | 90,185 |
pythondev | help | why don't you try sorting the 2 groups separately, casting them into OrderedDict type as above. I ran your code and you are sorting operation is just making it alphabetical, ignoring the inner loops | 2017-08-18T23:56:55.000020 | Levi | pythondev_help_Levi_2017-08-18T23:56:55.000020 | 1,503,100,615.00002 | 90,186 |
pythondev | help | sort Pizza, sort Apple, find Max of the two, append in order. | 2017-08-18T23:57:16.000036 | Levi | pythondev_help_Levi_2017-08-18T23:57:16.000036 | 1,503,100,636.000036 | 90,187 |
pythondev | help | if you do the following `for item in d.iteritems(): print(type(item))` you will get `<type 'tuple'>`. You then have to unpack it accordingly making note of where your value pops out. | 2017-08-19T00:13:30.000034 | Levi | pythondev_help_Levi_2017-08-19T00:13:30.000034 | 1,503,101,610.000034 | 90,188 |
pythondev | help | now, if there is a less convoluted way to do this, I am all for it. | 2017-08-19T00:13:43.000015 | Levi | pythondev_help_Levi_2017-08-19T00:13:43.000015 | 1,503,101,623.000015 | 90,189 |
pythondev | help | the downside to this is that your sorting has to be via if/then type args inside each top level tuple. If there are more than two food subgroups, then you might call sort in the inner loop | 2017-08-19T00:16:15.000054 | Levi | pythondev_help_Levi_2017-08-19T00:16:15.000054 | 1,503,101,775.000054 | 90,190 |
pythondev | help | I appreciate your help. I will see if I can play with the problem a bit more given your suggestions.. | 2017-08-19T00:20:27.000051 | Daryl | pythondev_help_Daryl_2017-08-19T00:20:27.000051 | 1,503,102,027.000051 | 90,191 |
pythondev | help | I also wonder at what level your reply ought to be | 2017-08-19T00:20:49.000028 | Levi | pythondev_help_Levi_2017-08-19T00:20:49.000028 | 1,503,102,049.000028 | 90,192 |
pythondev | help | <https://stackoverflow.com/questions/10756427/loop-through-all-nested-dictionary-values> | 2017-08-19T00:20:50.000005 | Levi | pythondev_help_Levi_2017-08-19T00:20:50.000005 | 1,503,102,050.000005 | 90,193 |
pythondev | help | this can get recursive, as you might see. | 2017-08-19T00:21:02.000001 | Levi | pythondev_help_Levi_2017-08-19T00:21:02.000001 | 1,503,102,062.000001 | 90,194 |
pythondev | help | this is why mentioned something about pythonicity earlier. | 2017-08-19T00:21:41.000044 | Levi | pythondev_help_Levi_2017-08-19T00:21:41.000044 | 1,503,102,101.000044 | 90,195 |
pythondev | help | So I understand how to sort the inner dictionaries (Pizza, apple), but I am still a bit confused on how to sort d | 2017-08-19T00:46:42.000056 | Daryl | pythondev_help_Daryl_2017-08-19T00:46:42.000056 | 1,503,103,602.000056 | 90,196 |
pythondev | help | enter a username: asiva
username not found please enter a valid username: bsiva
so here it is keep on asking for username which is in our list/dict(now i'll keep dict instead of list). iwant to place here the retry function
username not found please enter a valid username: sivasiva
enter password: asiva
password is incorrect ,please enter a valid password: bsiva
here also i want same retry function | 2017-08-19T03:37:54.000012 | Hermila | pythondev_help_Hermila_2017-08-19T03:37:54.000012 | 1,503,113,874.000012 | 90,197 |
pythondev | help | this should be my output in python | 2017-08-19T03:38:22.000008 | Hermila | pythondev_help_Hermila_2017-08-19T03:38:22.000008 | 1,503,113,902.000008 | 90,198 |
pythondev | help | how to start plz | 2017-08-19T03:38:27.000075 | Hermila | pythondev_help_Hermila_2017-08-19T03:38:27.000075 | 1,503,113,907.000075 | 90,199 |
pythondev | help | help me | 2017-08-19T03:38:31.000057 | Hermila | pythondev_help_Hermila_2017-08-19T03:38:31.000057 | 1,503,113,911.000057 | 90,200 |
pythondev | help | is there an online tool which provides list of cycles present in a graph, if provided with dependency data!!? | 2017-08-19T04:59:45.000088 | Hal | pythondev_help_Hal_2017-08-19T04:59:45.000088 | 1,503,118,785.000088 | 90,201 |
pythondev | help | <@Hermila> well, start writing a function first | 2017-08-19T06:35:05.000008 | Suellen | pythondev_help_Suellen_2017-08-19T06:35:05.000008 | 1,503,124,505.000008 | 90,202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.