- 2019-06-01
- (图) #638485 | 2019-06-01 03:17:20, *116 | <SnoopJeDi@python> _habnabit, https://...
- (图)
- 2019-05-31
- #638418 | 2019-05-31 10:49:01, *12 | <SnoopJeDi@python> is there a more natural way to do this? http://...
- #638384 | 2019-05-31 04:12:04, *120 | <SnoopJeDi@python> syrius, you might want to start that investigation by looking at http://... which is a user-driven ecosystem of packages.
- 2019-05-29
- #638109 | 2019-05-29 02:42:27, *1 | <SnoopJeDi@python> yea it looks like libraries.io does this: https://...
- 2019-05-24
- #637687 | 2019-05-24 23:18:16, *3 | <SnoopJeDi@python> e.g. https://...#what-is-the-difference-between-numpy-and-scipy
- 2019-05-16
- #636669 | 2019-05-16 09:08:54, *6 | <SnoopJeDi@python> con3, if you're using SPI and need any substantial speed btw, you should be aware that the SPI Linux driver is *very* slow compared to pigpio: http://...#How_fast_is_SPI
- #636647 | 2019-05-16 04:32:28, *1 | <SnoopJeDi@python> i.e. http://...
- #636646 | 2019-05-16 04:29:27, *1 | <SnoopJeDi@python> http://...#Emoji_Properties_and_Data_Files
- #636644 | 2019-05-16 04:15:36, *4 | <SnoopJeDi@python> energizer`, I find https://... very suggestive, though.
- 2019-05-15
- #636611 | 2019-05-15 23:47:06, *1 | <SnoopJeDi@python>
- 2019-05-08
- #635590 | 2019-05-08 00:43:12, *4 | <SnoopJeDi@python> GothAlice, it's offtopic but I can't help myself :) https://...
- #635588 | 2019-05-08 00:39:33, *4 | <SnoopJeDi@python> sappheiros, if you're coming from MATLAB, the scipy lectures would probably be very helpful to you. https://...
- 2019-05-07
- #635522 | 2019-05-07 04:30:33, *3 | <SnoopJeDi@python> dlam, https://...#temporarily-suppressing-warnings
- 2019-05-06
- #635426 | 2019-05-06 03:21:53, *1 | <SnoopJeDi@python> ekiro, if you're curious about the processing, it's all in one of their papers: https://...
- 2019-05-04
- #635218 | 2019-05-04 02:03:23, *1 | <SnoopJeDi@python> dale, it's a heckuva learning experience https://...
- 2019-05-03
- #635098 | 2019-05-03 01:03:54, *3 | <SnoopJeDi@python> ebol4, are you aware of https://...#paramiko.channel.Channel.invoke_shell ?
- 2019-05-01
- #634885 | 2019-05-01 05:00:38, *1 | <SnoopJeDi@python> i.e. http://...
- 2019-04-23
- #633985 | 2019-04-23 23:19:00, *2 | <SnoopJeDi@python> whoa, I didn't realize that the `q` library lets you use the module with operators like / and | for "inline" debugging: http://...
- #633867 | 2019-04-23 00:19:48, *3 | <SnoopJeDi@python> _ceb, you want np.diag_matrices() https://... e.g. `arr = np.random.random(5*5).reshape((5,5)); print(arr); idx = np.diag_indices(5); arr[idx] = 0; print(arr)`
- 2019-04-12
- #632699 | 2019-04-12 03:23:16, *1 | <SnoopJeDi@python> Also read https://... for security info
- 2019-04-11
- #632517 | 2019-04-11 00:18:48, *1 | <SnoopJeDi@python> Chaos_Zero, jwhisnant here's an example of sorting based on the square of a value: http://...
- 2019-04-04
- #631813 | 2019-04-04 23:34:45, *1 | <SnoopJeDi@python> ouemt, I was curious enough about what I did wrong to mock up a quick example: http://...
- #631721 | 2019-04-04 03:53:52, *1 | <SnoopJeDi@python> FWIW here's a version of the function with a bunch of print-shotgunning and the output, showing how the relevant variables are changing over time: http://... (tl;dr the C is a lot more legible because it doesn't use this gross nested-loop kludge)
- 2019-03-26
- #630457 | 2019-03-26 00:33:00, *1 | <SnoopJeDi@python> cooler, you should read https://...
- 2019-03-13
- #628867 | 2019-03-13 04:19:31, *1 | <SnoopJeDi@python>
- #628857 | 2019-03-13 01:45:41, *1 | <SnoopJeDi@python> amikrop, I'm not personally familiar with the distinction, so I'll defer to a discussion on SO: https://...
- 2019-03-12
- #628701 | 2019-03-12 03:36:33, *2 | <SnoopJeDi@python> bashes, Green Tea Press has a book called Think DSP that is pretty good http://...
- #628700 | 2019-03-12 03:20:05, *1 | <SnoopJeDi@python> Luyin, the one grym linked is quite good, and the scipy lectures also have some helpful content in them: https://...
- 2019-02-09
- #628035 | 2019-02-09 03:10:23, *0 | <SnoopJeDi@python> thebloggu, that's probably referring to https://... How big is the code you're debugging? Can you share it and the objgraph output?
- 2019-02-07
- #627746 | 2019-02-07 04:49:21, *0 | <SnoopJeDi@python> altendky (or anyone), there's a nice dive into attribute access in CPython here: https://...
- 2019-02-05
- #627465 | 2019-02-05 10:18:22, *0 | <SnoopJeDi@python> what have I done https://...
- #627430 | 2019-02-05 06:24:38, *0 | <SnoopJeDi@python>
- 2019-01-30
- #626760 | 2019-01-30 00:25:49, *2 | <SnoopJeDi@python>
- 2019-01-29
- #626659 | 2019-01-29 05:01:23, *1 | <SnoopJeDi@python> trizzle, maybe this will help: http://...
- 2019-01-27
- (图) #626414 | 2019-01-27 05:07:22, *4 | <SnoopJeDi@python> quotemstr, this plot is a pretty good summary of "why numpy instead of Python" https://...
- #626390 | 2019-01-27 03:05:27, *3 | <SnoopJeDi@python> ouemt, okay so for parsing just the "calculation results," pandas wins by a factor of 3 in a shootout: http://...
- (图)
- 2019-01-26
- #626236 | 2019-01-26 01:50:36, *1 | <SnoopJeDi@python> ouemt, how does this look: http://...
- #626229 | 2019-01-26 01:10:16, *5 | <SnoopJeDi@python> and if you look at the docs for numpy.random.RandomState, it says using a seed of None will use /dev/urandom (or equivalent) or the system clock. https://...
- 2019-01-25
- #626087 | 2019-01-25 02:43:11, *1 | <SnoopJeDi@python> minik, if you're curious about the finicky details between IPython and Jupyter, I recommend reading https://...
- #626070 | 2019-01-25 01:05:14, *1 | <SnoopJeDi@python> ouemt, http://...
- 2019-01-16
- #624863 | 2019-01-16 05:06:11, *1 | <SnoopJeDi@python> cdby, there are also sites like https://...#/ that attempt to organize beginner-friendly issues, but they seem hit-or-miss. If you know anybody who's been hacking on something, you could ask them if they need a hand.
- 2019-01-15
- #624680 | 2019-01-15 00:56:09, *1 | <SnoopJeDi@python> Nokuro, there are also plenty of tutorials out there for this kind of thing. I recommend checking out https://... too
- #624679 | 2019-01-15 00:55:22, *1 | <SnoopJeDi@python> Nokuro, that's pretty unspecific, I recommend making another attempt, maybe it will stick this time. The SciPy lectures has some nice introductory material: http://...
- 2019-01-14
- #624589 | 2019-01-14 05:15:14, *1 | <SnoopJeDi@python> sponge337, if you learn array broadcasting with numpy, you gain some pretty awesome wizard powers https://...
- 2019-01-11
- #624194 | 2019-01-11 07:07:57, *1 | <SnoopJeDi@python> https://...#the-object-oriented-api
- 2019-01-02
- #622969 | 2019-01-02 04:05:35, *1 | <SnoopJeDi@python> raxor2k, you might find this helpful to understand what we're talking about, btw: https://...
- 2018-12-21
- #621553 | 2018-12-21 04:11:27, *3 | <SnoopJeDi@python> ...and I guess the history-searching deities heard my plea, because here it is: http://...
- #621549 | 2018-12-21 03:28:40, *1 | <SnoopJeDi@python> Fudster, this is how I normally do something like this: https://...
- 2018-12-11
- #620177 | 2018-12-11 01:28:40, *1 | <SnoopJeDi@python> err, https://... is probably a better link because it's not tied to an old version.
- #620176 | 2018-12-11 01:28:10, *4 | <SnoopJeDi@python> MrNaz, you may be interested in https://...
- 2018-11-24
- #618369 | 2018-11-24 02:53:36, *1 | <SnoopJeDi@python> eliran, maintainers of stuff in stdlib are recordered at https://...
- 2018-11-21
- #617897 | 2018-11-21 02:59:07, *1 | <SnoopJeDi@python> CrtxReavr, as near as I can tell, this is what you meant to do? https://...
- 2018-11-20
- #617759 | 2018-11-20 04:41:57, *1 | <SnoopJeDi@python> SaraDR, to expand on mornfall's point about reshaping not being extra work, it helps to look at what's on the inside of ndarray: http://...#it-s tl;dr - it's really just a 1D array with a header containing stride information. reshape() only really changes the latter, so the data shouldn't be duplicated.
- #617738 | 2018-11-20 02:40:42, *1 | <SnoopJeDi@python> grym, energizer (and any other numpy users), did I just reinvent a wheel? I couldn't think of what in numpy does this, so I just wrote it, but in hindsight it feels like it might be fragile? https://...
- 2018-11-17
- #617404 | 2018-11-17 12:19:41, *1 | <SnoopJeDi@python> newdimension, https://...
- 2018-11-14
- #616982 | 2018-11-14 07:41:32, *1 | <SnoopJeDi@python> there is e.g. https://...
- 2018-11-12
- #616661 | 2018-11-12 11:47:04, *1 | <SnoopJeDi@python> laudecay, if you're interested in contributing, you'll want to read https://...
- 2018-11-08
- #615948 | 2018-11-08 02:14:12, *1 | <SnoopJeDi@python> ouemt, turns out this is even easier than I described: if you use Figure.legend() on the parent fig, it will automagically collate all the relevant artists! https://...
- 2018-11-07
- #615781 | 2018-11-07 05:23:48, *1 | <SnoopJeDi@python> joebobjoe, that's a pretty gross implementation of the pattern, I like the way https://... does it
- #615775 | 2018-11-07 05:10:31, *1 | <SnoopJeDi@python> "Expose dataclasses.MISSING object" → https://...
- 2018-11-06
- #615648 | 2018-11-06 09:06:52, *1 | <SnoopJeDi@python> energizer, that link turned out to be very helpful and this sucks way less than screwing with the gamma function, and seems to be correct. cc grym https://...
- #615644 | 2018-11-06 07:58:37, *1 | <SnoopJeDi@python> https://... and http://mathforum.org/kb/message.jspa?messageID=4653292 respectively
- 2018-11-03
- #615235 | 2018-11-03 03:02:50, *1 | <SnoopJeDi@python> chriys, my pandas-fu is kinda weak but this is what I came up with: http://...
- 2018-11-02
- #615156 | 2018-11-02 13:07:48, *3 | <SnoopJeDi@python> SciPy 2017 had a tutorial on it (with Lorena Barba!) that used fluid flow as a sample problem. https://...
- 2018-11-01
- #614974 | 2018-11-01 00:53:19, *1 | <SnoopJeDi@python> jll94, https://...
- 2018-10-31
- #614826 | 2018-10-31 02:56:23, *1 | <SnoopJeDi@python> MisterChalmers, I don't write a lot of pandas, but I think maybe what you want is described on this page on hierarchically indexed data: https://...#advanced-hierarchical
- 2018-10-30
- #614703 | 2018-10-30 07:28:24, *1 | <SnoopJeDi@python> reality_bytes, are you thinking of http://... or the related plugin for Atom?
- 2018-10-26
- #614097 | 2018-10-26 00:26:34, *1 | <SnoopJeDi@python> Alexer, energizer speaking of that though, I could use an opinion on whether the behavior illustrated by Cell #5 in https://... should be considered a bug
- 2018-10-24
- #613811 | 2018-10-24 09:45:21, *1 | <SnoopJeDi@python> codydh, if you're using pandas, you can use Series.str.startswith() https://...
- #613708 | 2018-10-24 00:06:13, *2 | <SnoopJeDi@python> hailhydra, this article also has a very beginner-friendly discussion of asymptotic complexity ("big oh") in it: https://...
- 2018-10-23
- #613578 | 2018-10-23 09:33:12, *2 | <SnoopJeDi@python> oh neat, you can implement a window over a numpy array using np.lib.stride_tricks.as_strided() https://...
- #613544 | 2018-10-23 05:57:41, *1 | <SnoopJeDi@python> energizer, I've seen a pretty good swath of data plotted as such: http://...
- #613520 | 2018-10-23 03:59:22, *1 | <SnoopJeDi@python> hailhydra, there's also a yearly plotting competition as part of SciPy. 2018's is here: https://... Some of the plots are truly amazing, and looking at how they're made you can learn a lot about how to use matplotlib. I like this one a lot: http://gregj.net/JHEPC/
- #613519 | 2018-10-23 03:57:55, *1 | <SnoopJeDi@python> hailhydra, I like this example because it shows how much you can control in matplotlib: https://...
- #613517 | 2018-10-23 03:50:31, *2 | <SnoopJeDi@python> hailhydra, here's the pandas workshop: https://...
- 2018-10-20
- #613123 | 2018-10-20 05:00:50, *1 | <SnoopJeDi@python> spstarr, check this out: https://...
- #613116 | 2018-10-20 03:02:06, *1 | <SnoopJeDi@python> memphisto, with data this predictable, I usually prefer to avoid using regex: https://...
- 2018-10-18
- #612813 | 2018-10-18 04:56:46, *1 | <SnoopJeDi@python> grym, FWIW, that business of creating a 'shell' of an ndarray to be imbued with data from somewhere in memory appears to be a semi-legit thing one can do: https://...
- #612801 | 2018-10-18 02:12:47, *1 | <SnoopJeDi@python> rnmhdn, sorry for the delay, here's what I came up with to try and split the work into sensible tasks: https://...
- 2018-10-17
- #612698 | 2018-10-17 07:15:58, *1 | <SnoopJeDi@python> grym, I'm rather charmed by how well this works! https://...
- 2018-10-14
- #612101 | 2018-10-14 01:42:56, *1 | <SnoopJeDi@python> grym, https://...
- 2018-10-13
- #611997 | 2018-10-13 11:35:54, *1 | <SnoopJeDi@python> blacksquirreljes, https://...
- 2018-10-12
- #611922 | 2018-10-12 23:35:24, *1 | <SnoopJeDi@python> Wooble, https://...
- #611763 | 2018-10-12 03:34:59, *1 | <SnoopJeDi@python> the short answer is that Python 2 is old and slated to be fully deprecated in 2020, the longer answer includes http://...
- #611745 | 2018-10-12 01:14:25, *1 | <SnoopJeDi@python> freelancerbob, have a look at this: https://...
- 2018-10-10
- #611417 | 2018-10-10 08:40:45, *1 | <SnoopJeDi@python> hmm, is this something that can be done with accumulate() or something? I feel like I reinvented a wheel here https://...
- 2018-10-09
- #611273 | 2018-10-09 05:49:06, *1 | <SnoopJeDi@python> _habnabit, looks like 2001 https://...
- #611258 | 2018-10-09 03:15:23, *1 | <SnoopJeDi@python> palasso, I highly recommend this article: https://...#dijkstra
- #611245 | 2018-10-09 01:25:45, *3 | <SnoopJeDi@python> Durbley, https://...
- 2018-10-06
- #610923 | 2018-10-06 00:02:04, *1 | <SnoopJeDi@python> amikrop, sorry about the delay. How's this look? https://...
- 2018-10-05
- #610916 | 2018-10-05 23:18:08, *1 | <SnoopJeDi@python> EvilDMP, here's what I'd do in this case because I hate mutating this way and also don't particularly care for extend() here. https://...
- #610797 | 2018-10-05 04:26:32, *1 | <SnoopJeDi@python> QF-MichaelK, I think what you want is something more like this: https://...
- #610765 | 2018-10-05 00:33:13, *1 | <SnoopJeDi@python> But if you're curious about different algorithms, https://... is a pretty great read
最近八卦大师排名前 20
历史八卦大师排名前 10
最近最活跃房间前 20
历史最活跃房间前 10
- #python*105,254
- ##php*66,221
- #ubuntu-cn*53,833
- #linuxfire*53,477
- ##c++*36,473
- ##c*27,624
- #TLF_FILES*18,030
- #bitcoin*16,176
- #kde-cn*4,693
- #lighttpd*4,606