|
huhu posted:Would this be the best way to log errors on a script that I'm running? I know this is already answered, but here's an entire blog post on the topic of logging exceptions, with some helpful examples for Python 2 and 3. It includes how to log the stack trace. https://realpython.com/blog/python/the-most-diabolical-python-antipattern/
|
# ¿ Mar 29, 2017 12:54 |
|
|
# ¿ May 7, 2024 20:00 |
|
Slimchandi posted:You asked for it... Believe it or not, I actually have the same question right now. I'm trying to do basic data analysis on a series of electricity bills. Most of the spreadsheet is indexed by the same row, but there are a couple sections that have a grouping header above that row, like this: I have to use pd.read_excel to bring the sheets in, and I'm trying not to use a panel because apparently that's being deprecated as of pandas 0.20.
|
# ¿ Sep 13, 2017 21:41 |
|
Boris Galerkin posted:Is there a conda equivalent to "pip download -r requirements.txt"? Can you use the instructions for building identical conda environments and target the 'root' environment on the target machines? Root is supposed to be the name of the default environment and I know you said no virtual envs. Then you can copy the cache directory that conda already keeps from the first machine and they should install from cache, unless there is some URL that it has to hit before it will install local packages. pubic void nullo fucked around with this message at 13:47 on Sep 15, 2017 |
# ¿ Sep 15, 2017 13:43 |
|
huhu posted:I'm looking to start a pretty large Python project with the hopes of actually releasing it. The last time I tried this I failed pretty badly and have learned a bit but would love any suggestions before jumping in again. My thoughts thus far are to try and diagram the entire project, use a virtualenv, and document everything as best I can as I go. Any other suggestions? This whole podcast episode is worth a listen, but something that you might be interested in is discussed from around 48:00 on. Basically, Glyph is talking about his Pycon talk and saying that people should start the deployment/continuous integration process earlier in the development timeline instead of starting it late and finding that their app needs major work in order to be deployable, esp. across multiple platforms.
|
# ¿ Sep 17, 2017 20:48 |
|
Rocko Bonaparte posted:If I'm not working with scientific applications or teaching, is there another reason I might want to use Jupyter for stuff? I use it for taking notes on courses for the LaTeX embedding. It's perfect for things like Project Euler and the Python Challenge. I also use it for doing one-off analyses that are bigger than what you would comfortably do right in the REPL, whether that be experimenting with map APIs or crunching some imported Excel.
|
# ¿ Jun 25, 2018 05:53 |
|
|
# ¿ May 7, 2024 20:00 |
|
cinci zoo sniper posted:Yeah the scientific view array-like object viewer is pretty great. This works for Pandas just as well in the free version with no scientific mode, too.
|
# ¿ Jul 1, 2018 20:40 |