« first day (4605 days earlier)      last day (346 days later) » 

4:11 AM
@Arne Yes the name is good, and has decent SEO.
 
 
2 hours later…
5:58 AM
@Arne Amazing! I'll try find some time over the weekend to have a play but it might be a couple of weeks before I can do something in earnest with it. I've wanted to learn D3 for quite a while, though I think I'd have to wrap it in a minimal flask server to get it in a browser, so maybe that's a bit overkill. Will definitely have a think
 
6:12 AM
Actually, I wouldn't need flask if I just get it to dump a .html. Hmmm
 
6:43 AM
@smci Like they say in that thread, you're basically beholden to the dayfirst argument. "mixed" is still really saying "I know there's dragons and I accept them" so I don't think it's complete without dayfirst, you're just signing a waiver. This thing would be a lot lot easier if they taught ISO8601 in school... starting three decades ago
@Riya Fun fact, they're in Arne's new byecycle package
 
7:21 AM
Looking at the D3 website now, it's packed with cheap ads. That's a shame, it used to be aspirational for me to learn it but now it just looks tacky and dated. I'll probably stick to plotly, then
 
8:08 AM
@roganjosh Take a look at how pyparsing's railroad diagram HTML files get emitted (wrappers around generated SVG). Might give you some ideas. (Code was contributed by Michael Milton)
 
That's a great shout, thanks!
 
 
3 hours later…
11:30 AM
I'm working on a CLI tool, I'd like people to pass a dict as an argument. How could I do it so that it's simple to the user ? Parsing a string would mean that users must have the correct syntax and asking users to provide a file (such as yaml) could be as confusing
 
If the dict is the only argument, something like foo=1 bar=2 could work
 
Sadly it isn't, to give more context this part of the CLI is used to modify one or multiple accounts. In the legacy script the syntax was script.pl attribute1 value1 attribute2 value2 but I don't like this approach. I would prefer something like cli --file file1 --stdout --attributes *either file or string*.
 
12:37 PM
I'm used to CLIs taking arbitrary many key=value parameters, even as the last part of the parameter list or after a special flag (like --attributes). That works rather well.
 
1:03 PM
@smci Hi smci, thank you for the comment and providing some sample data. I thought it would be unnecessary, but I completely understand the replicability aspect of it. I can confirm this was with pandas 1.4.4
 
I tried to use .toPython method in a QTime variable but there is an attribute error in pyqt5.
Also there is this error i may solve:
AttributeError: 'QTime' object has no attribute 'strftime'
 
@ChrisP "also there is this error": come back with an MCVE.
 
1:21 PM
@AlexandreMarcq I'd agree with Miyagi, it would look similar to the initial approach though
do you use click, typer, or ArgParse?
 
1:48 PM
@ChrisP I could swear you've raised this before
Apr 25 at 8:40, by Chris P
AttributeError: 'QTime' object has no attribute 'toPython'
It's the same thing. You really need to get to grips with what you're working with. I appreciate that the docs are a mess, but you need to understand what the base object is
Even print(dir(my_qttime_object)) will give you something
 
 
9 hours later…
10:32 PM
Welp, I just finished a 2-week every-15-minutes ETL data scrape project. I thought I had looked at the output files, but when I went to summarize the data for delivery, they are all empty! There was a change in the API I was hitting against, I thought I had made all the requisite changes, but I left out 2 important ones. The most annoying part is that this was not even my own project, it was a favor to help out another team on their project - now instead of helping, I set them back 2 weeks. :(
 
Oooh, that's rough ._.
 

« first day (4605 days earlier)      last day (346 days later) »