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
I would do a big try except then
2017-10-16T10:45:24.000130
Ciera
pythondev_help_Ciera_2017-10-16T10:45:24.000130
1,508,150,724.00013
97,003
pythondev
help
or maybe someone else as a better idea
2017-10-16T10:45:31.000264
Ciera
pythondev_help_Ciera_2017-10-16T10:45:31.000264
1,508,150,731.000264
97,004
pythondev
help
so I'm confused, you don't want to redirect, but you want your stdout and stderr to go to a file?
2017-10-16T10:45:32.000719
Sirena
pythondev_help_Sirena_2017-10-16T10:45:32.000719
1,508,150,732.000719
97,005
pythondev
help
Currently, all logging is sent to stdout. In the event of a script crash, i need to error to also go to stdout. I'm guessing I need to redirect here, but what I found so far looked really hacky, but I suppose that's the way to do it.
2017-10-16T10:47:29.000046
Scot
pythondev_help_Scot_2017-10-16T10:47:29.000046
1,508,150,849.000046
97,006
pythondev
help
Although, it might not be possible at all without some giant try/except as already mentioned?
2017-10-16T10:49:32.000282
Scot
pythondev_help_Scot_2017-10-16T10:49:32.000282
1,508,150,972.000282
97,007
pythondev
help
do you only want error to go to stdout when a script crash occurs?
2017-10-16T10:50:07.000577
Sirena
pythondev_help_Sirena_2017-10-16T10:50:07.000577
1,508,151,007.000577
97,008
pythondev
help
if it's only when your script crash you could do ``` try: main() Except: ... ```
2017-10-16T10:50:17.000403
Ciera
pythondev_help_Ciera_2017-10-16T10:50:17.000403
1,508,151,017.000403
97,009
pythondev
help
it doesn't feel that hackish to me
2017-10-16T10:50:35.000381
Ciera
pythondev_help_Ciera_2017-10-16T10:50:35.000381
1,508,151,035.000381
97,010
pythondev
help
I agree with <@Ciera>
2017-10-16T10:51:10.000441
Sirena
pythondev_help_Sirena_2017-10-16T10:51:10.000441
1,508,151,070.000441
97,011
pythondev
help
I suppose you're right. It just looks like a lot of repeating try/except due to it being a `click` initiated script with increasing numbers of subcommands, where the context class created initiates the logging. Might just be due to my stupid setup but i'll give it a go. Thanks!
2017-10-16T10:53:52.000324
Scot
pythondev_help_Scot_2017-10-16T10:53:52.000324
1,508,151,232.000324
97,012
pythondev
help
I'm not entirely familiar with click but maybe you can set it up before calling your subcommands ?
2017-10-16T10:54:50.000048
Ciera
pythondev_help_Ciera_2017-10-16T10:54:50.000048
1,508,151,290.000048
97,013
pythondev
help
or passing the subcommand as an arg to the try/except func
2017-10-16T10:55:07.000564
Ciera
pythondev_help_Ciera_2017-10-16T10:55:07.000564
1,508,151,307.000564
97,014
pythondev
help
Ye, should be doable but then I'd have to break the logging out of the context class
2017-10-16T10:55:09.000614
Scot
pythondev_help_Scot_2017-10-16T10:55:09.000614
1,508,151,309.000614
97,015
pythondev
help
I'll play around with it a bit and see where I end up. Thanks a lot for the input
2017-10-16T10:56:08.000337
Scot
pythondev_help_Scot_2017-10-16T10:56:08.000337
1,508,151,368.000337
97,016
pythondev
help
I've started doing this on scripts to make sure any unhandled exception is in the logs. That way I don't have to rely on users for anything other than emailing me the log. (Haven't automated log uploads yet.) ``` try: main() except Exception: log.exception() ```
2017-10-16T11:07:22.000115
Meghan
pythondev_help_Meghan_2017-10-16T11:07:22.000115
1,508,152,042.000115
97,017
pythondev
help
Why not use opbeat?
2017-10-16T11:08:09.000302
Marilyn
pythondev_help_Marilyn_2017-10-16T11:08:09.000302
1,508,152,089.000302
97,018
pythondev
help
Never heard of it. What is it?
2017-10-16T11:09:35.000463
Meghan
pythondev_help_Meghan_2017-10-16T11:09:35.000463
1,508,152,175.000463
97,019
pythondev
help
<@Meghan> I'm attempting this now but it seems a bit weird with click and its subcommands
2017-10-16T11:10:30.000808
Scot
pythondev_help_Scot_2017-10-16T11:10:30.000808
1,508,152,230.000808
97,020
pythondev
help
I've not used click, but I would assume you run a function that dispatches to other functions, right?
2017-10-16T11:11:03.000047
Meghan
pythondev_help_Meghan_2017-10-16T11:11:03.000047
1,508,152,263.000047
97,021
pythondev
help
Pretty much yes
2017-10-16T11:11:15.000063
Scot
pythondev_help_Scot_2017-10-16T11:11:15.000063
1,508,152,275.000063
97,022
pythondev
help
Then wrap that call with the try/except.
2017-10-16T11:11:23.000015
Meghan
pythondev_help_Meghan_2017-10-16T11:11:23.000015
1,508,152,283.000015
97,023
pythondev
help
I'm trying to at the top level, but as I said, click seems to be acting weird. Won't return the exception from the subcommand
2017-10-16T11:11:53.000115
Scot
pythondev_help_Scot_2017-10-16T11:11:53.000115
1,508,152,313.000115
97,024
pythondev
help
Where the error should be, I instead get an empty message
2017-10-16T11:12:37.000614
Scot
pythondev_help_Scot_2017-10-16T11:12:37.000614
1,508,152,357.000614
97,025
pythondev
help
You don't get the exception at all then?
2017-10-16T11:14:07.000757
Meghan
pythondev_help_Meghan_2017-10-16T11:14:07.000757
1,508,152,447.000757
97,026
pythondev
help
It enters the except clause, but my `except Exception as e` gives an empty e
2017-10-16T11:14:40.000381
Scot
pythondev_help_Scot_2017-10-16T11:14:40.000381
1,508,152,480.000381
97,027
pythondev
help
What does log.exception() get?
2017-10-16T11:15:48.000021
Meghan
pythondev_help_Meghan_2017-10-16T11:15:48.000021
1,508,152,548.000021
97,028
pythondev
help
Wait, I might be the one who effed up...
2017-10-16T11:16:29.000548
Scot
pythondev_help_Scot_2017-10-16T11:16:29.000548
1,508,152,589.000548
97,029
pythondev
help
Ah crap, I've gotta run... Wife's gonna murder me if i'm late. Thanks for the input though! I've got some ideas for tomorrow
2017-10-16T11:18:41.000355
Scot
pythondev_help_Scot_2017-10-16T11:18:41.000355
1,508,152,721.000355
97,030
pythondev
help
<@Meghan>: it's a service that basically does what you are describing, I use it for projects all the time to get better error reporting
2017-10-16T11:20:02.000175
Marilyn
pythondev_help_Marilyn_2017-10-16T11:20:02.000175
1,508,152,802.000175
97,031
pythondev
help
I'll take a look. Thanks!
2017-10-16T11:20:16.000207
Meghan
pythondev_help_Meghan_2017-10-16T11:20:16.000207
1,508,152,816.000207
97,032
pythondev
help
Best practices question: It seems that the programmer would have to know that generator co-routine yields 1 (or other integer) iteration each call but that the generator could be anywhere... is there some sort of good practice/convention for referencing co-routines call on a generator?
2017-10-16T11:26:10.000259
Seema
pythondev_help_Seema_2017-10-16T11:26:10.000259
1,508,153,170.000259
97,033
pythondev
help
<@Seema> You can wrap the generator function in another function, which creates the coroutine, calls next() on it, then returns it, so you don't have to manually call next() after instantiation. The internal generator could be defined anywhere and instantiated inside the wrapper. Is that what you mean?
2017-10-16T15:23:57.000339
Rosamond
pythondev_help_Rosamond_2017-10-16T15:23:57.000339
1,508,167,437.000339
97,034
pythondev
help
<@Rosamond> Here's an example of a call to a coroutine where the code is right next to the coroutine. I'm assuming the coroutine could be in any module/namespace. Is that true? ```def fibonacci_co(): current = 0 next = 1 while True: current, next = next, next + current yield current for n in fibonacci_co(): if n &gt; 1000: break print(n, end=', ')```
2017-10-16T15:39:43.000037
Seema
pythondev_help_Seema_2017-10-16T15:39:43.000037
1,508,168,383.000037
97,035
pythondev
help
if fibonacci_co or any co-routine can be somewhere else, how would programmer/user know that it would have to be iterated.
2017-10-16T15:41:39.000379
Seema
pythondev_help_Seema_2017-10-16T15:41:39.000379
1,508,168,499.000379
97,036
pythondev
help
I would still call that a generator function since it's only yielding results, a coroutine can take arguments for each iteration and usually has an opening `yield` in the definition.
2017-10-16T15:44:15.000498
Rosamond
pythondev_help_Rosamond_2017-10-16T15:44:15.000498
1,508,168,655.000498
97,037
pythondev
help
That's moreso what I mean. Then _coroutine could be defined anywhere. If in another namespace, just import it
2017-10-16T15:45:19.000519
Rosamond
pythondev_help_Rosamond_2017-10-16T15:45:19.000519
1,508,168,719.000519
97,038
pythondev
help
I'm under the impression that coroutines are just a special type of generator, is that right?
2017-10-16T15:46:25.000319
Seema
pythondev_help_Seema_2017-10-16T15:46:25.000319
1,508,168,785.000319
97,039
pythondev
help
Yeah, maybe more meaningful to say a generator is half of a coroutine :slightly_smiling_face:
2017-10-16T15:46:55.000277
Rosamond
pythondev_help_Rosamond_2017-10-16T15:46:55.000277
1,508,168,815.000277
97,040
pythondev
help
and the coroutine has a next and a generator object and "advances" each yield. My question is that if this was imported and the function was consumed, how do they know it's a co-routine other than print("Created coroutine.") and print(f"_coroutine({data})")
2017-10-16T15:48:35.000547
Seema
pythondev_help_Seema_2017-10-16T15:48:35.000547
1,508,168,915.000547
97,041
pythondev
help
<@Seema>, hope that the dev provides doc strings
2017-10-16T15:48:55.000407
Winnifred
pythondev_help_Winnifred_2017-10-16T15:48:55.000407
1,508,168,935.000407
97,042
pythondev
help
<@Winnifred> I think you get the gist of my question :wink:
2017-10-16T15:49:15.000261
Seema
pythondev_help_Seema_2017-10-16T15:49:15.000261
1,508,168,955.000261
97,043
pythondev
help
That, and if you dir(coroutine()) it should have a send member.
2017-10-16T15:49:24.000358
Rosamond
pythondev_help_Rosamond_2017-10-16T15:49:24.000358
1,508,168,964.000358
97,044
pythondev
help
wow, ouch, umm... okay, thanks for tip
2017-10-16T15:49:38.000259
Seema
pythondev_help_Seema_2017-10-16T15:49:38.000259
1,508,168,978.000259
97,045
pythondev
help
will it have a next() or is that only in the generator object?
2017-10-16T15:49:58.000241
Seema
pythondev_help_Seema_2017-10-16T15:49:58.000241
1,508,168,998.000241
97,046
pythondev
help
Yeah. The agony and ecstacy of dynamic typing ha
2017-10-16T15:50:09.000576
Rosamond
pythondev_help_Rosamond_2017-10-16T15:50:09.000576
1,508,169,009.000576
97,047
pythondev
help
Time to poke and prod and learn
2017-10-16T15:51:22.000182
Seema
pythondev_help_Seema_2017-10-16T15:51:22.000182
1,508,169,082.000182
97,048
pythondev
help
Looks like there's an 'isgeneratorfunction()' in the inspect module
2017-10-16T15:51:45.000176
Rosamond
pythondev_help_Rosamond_2017-10-16T15:51:45.000176
1,508,169,105.000176
97,049
pythondev
help
to take out the guesswork :slightly_smiling_face:
2017-10-16T15:51:50.000319
Rosamond
pythondev_help_Rosamond_2017-10-16T15:51:50.000319
1,508,169,110.000319
97,050
pythondev
help
Lol
2017-10-16T15:52:45.000016
Winnifred
pythondev_help_Winnifred_2017-10-16T15:52:45.000016
1,508,169,165.000016
97,051
pythondev
help
As far as next().. to my knowledge send() replaces it, however there may be cases where you send a single item and yield multiple outputs
2017-10-16T15:54:11.000111
Rosamond
pythondev_help_Rosamond_2017-10-16T15:54:11.000111
1,508,169,251.000111
97,052
pythondev
help
So next may be used there?
2017-10-16T15:54:19.000055
Rosamond
pythondev_help_Rosamond_2017-10-16T15:54:19.000055
1,508,169,259.000055
97,053
pythondev
help
(brain fuzzy, need coffee, skills)
2017-10-16T15:54:44.000538
Seema
pythondev_help_Seema_2017-10-16T15:54:44.000538
1,508,169,284.000538
97,054
pythondev
help
:coffee:
2017-10-16T15:54:59.000378
Rosamond
pythondev_help_Rosamond_2017-10-16T15:54:59.000378
1,508,169,299.000378
97,055
pythondev
help
So, I have `awscli` installed with my local environment. Is there a way to use it in celery to upload a folder of files to S3, rather than a 40 line method like here? <https://gist.github.com/feelinc/d1f541af4f31d09a2ec3>
2017-10-16T16:25:51.000385
Meg
pythondev_help_Meg_2017-10-16T16:25:51.000385
1,508,171,151.000385
97,056
pythondev
help
I mean, I could do something like `subproccess.Popen('aws s3 sync $folder <s3://bucket_name/folder> --acl public-read')`
2017-10-16T16:27:21.000086
Meg
pythondev_help_Meg_2017-10-16T16:27:21.000086
1,508,171,241.000086
97,057
pythondev
help
@channel something like a job board over here?
2017-10-16T16:28:27.000136
Janetta
pythondev_help_Janetta_2017-10-16T16:28:27.000136
1,508,171,307.000136
97,058
pythondev
help
<#C080T8XT2|job_board>
2017-10-16T16:28:40.000273
Meg
pythondev_help_Meg_2017-10-16T16:28:40.000273
1,508,171,320.000273
97,059
pythondev
help
hello
2017-10-17T01:19:00.000104
Minh
pythondev_help_Minh_2017-10-17T01:19:00.000104
1,508,203,140.000104
97,060
pythondev
help
anyone knows whats the problem? ```mrate = [] for n in shares_names: s.execute("SELECT * FROM shares WHERE address = ? AND name = ? ORDER BY timestamp DESC LIMIT 1", (x,n[0])) names_last = s.fetchall() print(names_last) mrate.append(names_last)``` output shows ``` [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1508049513.02', '0', '1103', 'Macca', '4', 'Macca1')] ('vv',) [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1508216432.74', '0', '741', 'vv', '3', 'vv2')] ('Macca1',) [('06c30fe7b3d71c2954e761f130a59e908b546e66324b6fbdf3db2d47', '1', '1508212402.65', '0', '636', 'Macca1', '4', 'Macca12')] ``` but the mrate variable only shows the last output, i want all ouput to be inside mrate var
2017-10-17T01:19:02.000071
Minh
pythondev_help_Minh_2017-10-17T01:19:02.000071
1,508,203,142.000071
97,061
pythondev
help
<@Minh> there's only one `print` in your snippet, but the output obviously has two of them
2017-10-17T01:57:10.000104
Collette
pythondev_help_Collette_2017-10-17T01:57:10.000104
1,508,205,430.000104
97,062
pythondev
help
What's `('vv',)` and `('Macca1',)`?
2017-10-17T01:57:26.000106
Collette
pythondev_help_Collette_2017-10-17T01:57:26.000106
1,508,205,446.000106
97,063
pythondev
help
new output: ``` [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1507963458.83', '0', '613', 'gow', '1', 'gow1')] [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1508049513.02', '0', '1103', 'Macca', '4', 'Macca1')] [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1508217069.51', '0', '869', 'vv', '3', 'vv2')] [('06c30fe7b3d71c2954e761f130a59e908b546e66324b6fbdf3db2d47', '1', '1508212402.65', '0', '636', 'Macca1', '4', 'Macca12')] ```
2017-10-17T01:59:11.000167
Minh
pythondev_help_Minh_2017-10-17T01:59:11.000167
1,508,205,551.000167
97,064
pythondev
help
What's in `mrate` after the for loop?
2017-10-17T02:02:07.000166
Collette
pythondev_help_Collette_2017-10-17T02:02:07.000166
1,508,205,727.000166
97,065
pythondev
help
if inside my for like this: ``` print('printing') print(names_last) ``` the output like this ``` printing [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1507963458.83', '0', '613', 'gow', '1', 'gow1')] printing [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1508049513.02', '0', '1103', 'Macca', '4', 'Macca1')] printing [('09313fe3bcd990a2d7618874a0ce0a91f38756be901002ad7696ac98', '1', '1508219638.35', '0', '629', 'vv', '3', 'vv2')] printing [('06c30fe7b3d71c2954e761f130a59e908b546e66324b6fbdf3db2d47', '1', '1508212402.65', '0', '636', 'Macca1', '4', 'Macca12')] ```
2017-10-17T02:02:15.000284
Minh
pythondev_help_Minh_2017-10-17T02:02:15.000284
1,508,205,735.000284
97,066
pythondev
help
before forloop ```hash_addr = [] ``` after forloop ``` hash_addr.append(mrate) ``` then i jsonify it ``` 'hash': hash_addr ```
2017-10-17T02:04:10.000035
Minh
pythondev_help_Minh_2017-10-17T02:04:10.000035
1,508,205,850.000035
97,067
pythondev
help
<@Minh> if you `print(mrate)` after the for loop, what's in it?
2017-10-17T02:05:52.000141
Collette
pythondev_help_Collette_2017-10-17T02:05:52.000141
1,508,205,952.000141
97,068
pythondev
help
``` [[('06c30fe7b3d71c2954e761f130a59e908b546e66324b6fbdf3db2d47', '1', '1508212402.65', '0', '636', 'Macca1', '4', 'Macca12')]] ``` its the last ouput
2017-10-17T02:09:21.000127
Minh
pythondev_help_Minh_2017-10-17T02:09:21.000127
1,508,206,161.000127
97,069
pythondev
help
want to see my full code?
2017-10-17T02:09:46.000146
Minh
pythondev_help_Minh_2017-10-17T02:09:46.000146
1,508,206,186.000146
97,070
pythondev
help
Yes, please
2017-10-17T02:09:50.000053
Collette
pythondev_help_Collette_2017-10-17T02:09:50.000053
1,508,206,190.000053
97,071
pythondev
help
wait a minute
2017-10-17T02:10:13.000211
Minh
pythondev_help_Minh_2017-10-17T02:10:13.000211
1,508,206,213.000211
97,072
pythondev
help
you could try checking to make sure your indentation is consistent
2017-10-17T02:10:31.000018
Glynda
pythondev_help_Glynda_2017-10-17T02:10:31.000018
1,508,206,231.000018
97,073
pythondev
help
mixing spaces/tabs could cause that
2017-10-17T02:10:39.000035
Glynda
pythondev_help_Glynda_2017-10-17T02:10:39.000035
1,508,206,239.000035
97,074
pythondev
help
<https://github.com/vv181/gopool/blob/master/api.py>
2017-10-17T02:15:07.000292
Minh
pythondev_help_Minh_2017-10-17T02:15:07.000292
1,508,206,507.000292
97,075
pythondev
help
<@Minh> <https://github.com/vv181/gopool/blob/master/api.py#L87> is within the for loop. On each iteration you recreate `mrate`, thus after the last iteration it contains only the last result
2017-10-17T02:17:40.000155
Collette
pythondev_help_Collette_2017-10-17T02:17:40.000155
1,508,206,660.000155
97,076
pythondev
help
it's fixed, thank you very much
2017-10-17T02:20:22.000102
Minh
pythondev_help_Minh_2017-10-17T02:20:22.000102
1,508,206,822.000102
97,077
pythondev
help
By the way, <@Minh>, this `monitoring` function is so huge already. You should split it into smaller functions
2017-10-17T02:26:20.000092
Collette
pythondev_help_Collette_2017-10-17T02:26:20.000092
1,508,207,180.000092
97,078
pythondev
help
A good function body size is about 15-20 lines at max
2017-10-17T02:26:43.000037
Collette
pythondev_help_Collette_2017-10-17T02:26:43.000037
1,508,207,203.000037
97,079
pythondev
help
ok, thanks for suggestion, i'll split it later
2017-10-17T02:31:28.000110
Minh
pythondev_help_Minh_2017-10-17T02:31:28.000110
1,508,207,488.00011
97,080
pythondev
help
Is running `wget` using `subprocess` ill-adviced for any particular reason? `urllib` just seems like a hassle and `requests` don't work with ftp
2017-10-17T06:50:18.000222
Scot
pythondev_help_Scot_2017-10-17T06:50:18.000222
1,508,223,018.000222
97,081
pythondev
help
I keep finding old answers that do not work anymore for `urllib` and I can't make decent sense of the documentation...
2017-10-17T06:53:31.000150
Scot
pythondev_help_Scot_2017-10-17T06:53:31.000150
1,508,223,211.00015
97,082
pythondev
help
I don't know but maybe there is a FTP module?
2017-10-17T06:58:07.000330
Ciera
pythondev_help_Ciera_2017-10-17T06:58:07.000330
1,508,223,487.00033
97,083
pythondev
help
I think `urllib` uses `ftplib` internally
2017-10-17T06:59:08.000013
Scot
pythondev_help_Scot_2017-10-17T06:59:08.000013
1,508,223,548.000013
97,084
pythondev
help
Otherwise subprocess is not ill adviced in my opinion for simple stuff where complete program already exist
2017-10-17T06:59:11.000326
Ciera
pythondev_help_Ciera_2017-10-17T06:59:11.000326
1,508,223,551.000326
97,085
pythondev
help
Well, turns out I could access my files through https instead. Problem solved, thanks for the input
2017-10-17T07:11:41.000071
Scot
pythondev_help_Scot_2017-10-17T07:11:41.000071
1,508,224,301.000071
97,086
pythondev
help
Hello guys So I have an X matrix of dimension (762, 64) and y matrix of dimension (762,) When I try to use np.scatter(X, y) I get an error that X and y must be of the same size Any ideas?
2017-10-17T08:12:47.000325
Christin
pythondev_help_Christin_2017-10-17T08:12:47.000325
1,508,227,967.000325
97,087
pythondev
help
They aren’t the same size?
2017-10-17T08:13:58.000302
Patty
pythondev_help_Patty_2017-10-17T08:13:58.000302
1,508,228,038.000302
97,088
pythondev
help
Apparently not
2017-10-17T08:14:22.000087
Christin
pythondev_help_Christin_2017-10-17T08:14:22.000087
1,508,228,062.000087
97,089
pythondev
help
Im not sure what can I do in this case
2017-10-17T08:14:32.000105
Christin
pythondev_help_Christin_2017-10-17T08:14:32.000105
1,508,228,072.000105
97,090
pythondev
help
Im trying to build a binary classifier with 64 features
2017-10-17T08:14:50.000163
Christin
pythondev_help_Christin_2017-10-17T08:14:50.000163
1,508,228,090.000163
97,091
pythondev
help
So my data consists of 64 columns and 762 rows
2017-10-17T08:15:05.000425
Christin
pythondev_help_Christin_2017-10-17T08:15:05.000425
1,508,228,105.000425
97,092
pythondev
help
I'm not sure why do X and y have to be of the same size
2017-10-17T08:15:20.000354
Christin
pythondev_help_Christin_2017-10-17T08:15:20.000354
1,508,228,120.000354
97,093
pythondev
help
No I was saying that they aren’t the same size, hence the error
2017-10-17T08:21:17.000145
Patty
pythondev_help_Patty_2017-10-17T08:21:17.000145
1,508,228,477.000145
97,094
pythondev
help
Oh I'm aware of that I just don't know how to tackle that problem or why should they be of the same size
2017-10-17T08:22:04.000393
Christin
pythondev_help_Christin_2017-10-17T08:22:04.000393
1,508,228,524.000393
97,095
pythondev
help
What is the second dimension of y?
2017-10-17T08:23:41.000167
Patty
pythondev_help_Patty_2017-10-17T08:23:41.000167
1,508,228,621.000167
97,096
pythondev
help
If there isn’t, then it’s a 1d vector and a 2d array, and they can’t be plotted together
2017-10-17T08:24:41.000385
Patty
pythondev_help_Patty_2017-10-17T08:24:41.000385
1,508,228,681.000385
97,097
pythondev
help
Its kind of like ``` [ 8. 9. 8. 8. 9. 8. 9. 9. 9. 9. 9. 9. 8. 8. 9. 8. 8. 9. 8. 9. 8. 9. 9. 9. 9. 8. 9. 9. 9.] ```
2017-10-17T08:25:13.000324
Christin
pythondev_help_Christin_2017-10-17T08:25:13.000324
1,508,228,713.000324
97,098
pythondev
help
So I guess I have to turn that into [[8][9].. etc] ?
2017-10-17T08:25:35.000188
Christin
pythondev_help_Christin_2017-10-17T08:25:35.000188
1,508,228,735.000188
97,099
pythondev
help
You need to have coordinate pairs. You can't simply plot the value x=5 without a corresponding y-value.
2017-10-17T08:28:00.000336
Scot
pythondev_help_Scot_2017-10-17T08:28:00.000336
1,508,228,880.000336
97,100
pythondev
help
The simple way to say how to fix it is make it both the same type and size
2017-10-17T08:28:05.000456
Patty
pythondev_help_Patty_2017-10-17T08:28:05.000456
1,508,228,885.000456
97,101
pythondev
help
Sure, but if every row(consisting of 64 features) has 1 y then it can never be of the same size no?
2017-10-17T08:29:02.000075
Christin
pythondev_help_Christin_2017-10-17T08:29:02.000075
1,508,228,942.000075
97,102