« first day (4305 days earlier)      last day (867 days later) » 

00:14
Is there something better than stackoverflow.com/questions/17647907/… , to answer when people actually want to know how to do something a set number of times?
stackoverflow.com/questions/64287003 this is a truly awful take on it
duckduckgo.com/… These search results are seriously depressing. Google results not really any better.
and I have no idea what's going on here stackoverflow.com/questions/30005590/… - it seems like there was confusion between the fact that 3 numbers are input for each trial run, and that 3 trial runs are desired??????
but somehow it was well received and got a well received answer
Cbg. How can I space between x ticks labels (matplotlib)?
00:35
https://stackoverflow.com/questions/4081217/how-to-modify-list-entries-during-for-loop
https://stackoverflow.com/questions/44864393/modify-a-list-while-iterating
Should either of these be considered a duplicate of the other?
bad duplicate (misleading title, no MRE) stackoverflow.com/questions/11082937
stackoverflow.com/questions/42728622 I know I've seen another question about this general sort of algorithm, recently, even. I may even have answered it
still looking... I found stackoverflow.com/questions/4264634, and a few closely related things
01:06
There are, I am sure, a lot of things that should be marked duplicate of stackoverflow.com/questions/4912710; idk how to find them
01:51
After extensive searching, I think the best I've been able to find for "how do I repeat the code X number of times?" (i.e., without tacking on some random discussion of performance, or a desire to avoid a useless counter variable, or any other such complication) is stackoverflow.com/questions/24570393.
It's either that, or write my own. Which I'm not at all opposed to. Unless someone has a better idea?
02:07
stackoverflow.com/questions/73149241 I feel confident there's a duplicate for this, but no idea what to search for.
 
1 hour later…
03:16
stackoverflow.com/questions/14755963 Any better canonical for "why can't I import x where x is installed/in standard library, and x.py is in my project"?
 
2 hours later…
04:58
Would it be appropriate to post a relatively large (>200 lines) MCVE here for help on a matter? The code/logic in question only occupies a small portion of the MCVE, but the rest is necessary to set up the circumstances I need it to work under. It uses a particular python library that I'm not sure anyone here would be familiar with but the dedicated forums for that library are...unhelpful.
Alternatively, I could just describe my problem and give only the relevant code, but that will take a lot more typing than the former
Doubly alternatively, I could make a proper post on SO about it but even though the MCVE is kinda big the question itself I feel is simple and not worth making a post over, I'm just not seeing something obvious
05:25
Go ahead and post those 200 lines I guess
05:38
So, this program will open a window and display three letters at a time in quick succession (0.4s intervals to be precise). Press escape to exit the window, or it will end naturally after a bit of time. Code for this begins at line 90. Your job as the user is to press "T" on your keyboard whenever you see a "T" on the screen. The program records the time that a T press happens, and logs that data into MCVE.log.
The problem is, the if statement on line 172 seems to proc regardless of if a t press fits the parameters needed for what's considered a "successful" press (a T is either on the screen or was within the past second)
And the MCVE: pastebin.com/kpCqs7KJ (this requires you to pip or brew install psychopy)
You can see that this is the case by checking MCVE.log. You should see a bunch of "Generated trial for RSVP X...", those aren't important (in hindsight I could have removed them from the MCVE, it's on line 102 if you want to get rid of it). What's important is "Hit detected: ..." logs.
Good morning!
I'm new here from Pakistan.
I said it would also end naturally over time. Forgot I removed that part to make the MCVE. The only way to exit the program is to press escape.
Hello Muhammad
05:55
Ok, I give up on trying to install psychopy...
There's a problem?
Some weird "path doesn't exist" error
Anyway, you should put more of your code into functions. A 100 line long loop is, unsurprisingly, not easy to debug
Where would I use functions though? Each "thing" is only happening once so I don't get much value for making a function out of it
I'm more or less following the design suggested/used by psychopy's code builder
You have 6 levels of indentation in there. That alone is reason enough to make more functions
06:11
I see where you're coming from, I just don't know where I would cut things up to make one part into function A and the next part into function B
 
2 hours later…
08:03
How one can view a pdf-file in tkinter?
99% sure you can't
Okay. I was wondering how the viewer is implemented in Setzer.
Wait, really?
So glad I chose the web route when I first needed an interface. Even from all the stuff I see on tkinter, not being able to display a PDF surprises me (not that I know anything to disagree on the point)
@JaakkoSeppälä This? That uses Gtk
@roganjosh Wait wait wait, how do you display a PDF in HTML? O.o
@Aran-Fey here for the link (the first button) and here for the code
08:11
Interesting. First time I've seen <object>
Don't ask me what chrome/firefox does to wrap that functionality to give page selectors etc. in the modal. It just works
This might also be important. It could be some trickery from bootstrap involved too
08:34
you can't display PDF by default on tkinter, but you can display image (both with and without image libraries like PIL). see here: stackoverflow.com/questions/31959379/…
most PDF are made up of image only, so most tkinter pdf project on the internet usually just split them or read them as multiple images
technically you could also do it the hard way and make a pdf viewer from scratch in pure python instead of thinking and only using them as images: github.com/Zain-Bin-Arshad/pdf-viewer
I recall there also a tcl module for reading pdf somewhere, but I can't find it :/
08:55
nevermind what I said here as this isn't in pure python but use PyMupdf for decoding pdf -_-
@KarlKnechtel We have a self-answered canonical: sopython.com/canon/96/… (I've just hammered it).
09:07
@NordineLotfi Not really. From en.wikipedia.org/wiki/PDF
> Based on the PostScript language, each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, vector graphics, raster images and other information needed to display it.
hmm, I guess I was oversimplifying it too much, my bad
Reading the simplified wiki? :P
<callback complete>
Sure, there are plenty of PDFs that were created by stitching together a bunch of images from scanned pages, but they're horrible. A proper PDF encodes its text as text, and the PDF viewer allows you to select that text as text.
Originally, PDF was created to be a less powerful form of the PostScript language, suitable for publishing documents in their final form. But then people decided that they wanted to be able to modify PDFs.
PostScript isn't merely a file format for text and images. It's actually a full Turing-complete programming language. You can do amazing things with it. But its power makes it dangerous if you want to use it as a means of exchanging documents. A tiny rogue Postscript program can print an infinite number of pages. PDF can't do that.
09:22
@MuhammadFaizanFareed welcome
Back in the early days of laser printers, it was standard for the printer to have its own CPU & RAM, with the PostScript interpreter & rendering engine built into the printer. The printer was often more expensive than the computer it was plugged into, and possibly had a more powerful CPU chip than the computer. :)
09:36
@roganjosh I was mostly going off from what I think I knew about it :D But I don't think I ever knew about the simplified wiki until it was mentioned yesterday.
Oh, I just wanted a callback reference, I wasn't being serious :P
ah, fair enough ;)
I actually started learning on and off js even though I hate it. I think I hate it more now
@PM2Ring that explain the myriad of security vulnerability I see on postscript and pdf viewer. Guess people try to embed malicious script so that they execute when the pdf is read (thanks to PostScript?)
@PM2Ring I actually didn't know that! :o
@NordineLotfi Originally, PDF removed all the major security vulnerabilities that PS permits. And hopefully all the minor ones too. ;) But modern PDF has created its own vulnerabilities. :(
PostScript is actually a nice language. Mostly, PostScript code is written by programs, but it's fun to do your own PostScript coding directly. And of course if you want to write a C or Python program that writes PostScript you need to practice first by writing PostScript yourself.
OTOH, although PDF is (mostly) a cut-down version of PostScript (with some interactive stuff bolted on), PDF code wasn't designed to be readable by humans. You can't just look at it in a text editor. It's like trying to read an executable in a text editor. Almost.
09:54
Most of the ones I seen: you can, but you need to deflate inflate some blobs in most cases
When you hit something like /Filter/FlateDecode/Length 1297>>stream you have to stop reading
Yes, it mixes binary & ASCII. But even the ASCII coding language stuff is very terse & not human-friendly.
@PM2Ring yeah, it's true pdf viewer have more vulns now, but PostScript, or the parser, GhostScript, still have a couple: techtarget.com/searchsecurity/tip/…
Of course, a lot of machine-written PS can be terse too. You can redefine almost everything to use tiny inscrutable names instead of the default meaningful names. I used that trick on Code Golf: codegolf.stackexchange.com/a/62094/46655
> While the PostScript vulnerabilities may differ in details, they all share the same underlying cause: PostScript itself is a powerful programming language that attackers can exploit.
Which is kind of what I said before.
But I guess if people think of a PS file as "just a data file", they might be surprised to know that it can easily read & write their hard drive.
 
1 hour later…
11:22
@PM2Ring you know, I can't help but think "this look like LateX to me" when looking at PS syntax.
that's because you don't know LaTeX
11:33
might be, at least not enough to fully write a whole document with it without cheating and using pandoc :P
 
1 hour later…
12:49
@NordineLotfi Well, PS uses forward slash to create a key object (literally a key in a dictionary), and it's usual to use keys for naming stuff, although you can use strings too. (Strings in PS are delimited by parentheses, not quote marks). LaTeX uses backslash to create names.
13:01
Some of the ancient questions really are portals to the dungeon dimensions. "You haven't voted on questions in a while; questions need votes too!" from just scrolling through one Q&A...
that's just our voting poltergeist, you can ignore it
@PM2Ring I see, I guess my guts feeling wasn't too far then :)
Well, my trigger finger was itchy while scrolling... :/
13:28
@NordineLotfi Right. :) Actually, I messed up the nomenclature there. A slash introduces a literal name, but a name object can also be created by explicitly converting a string. A PS name object is very similar to a name in Python. A name object doesn't have a value, but it can be associated with a value in a dictionary.
@MisterMiyagi It doesn't suggest that you have to up vote the questions...
13:46
@PM2Ring Wait, we can up vote?
(j/k, there were actually quite some good answers...)
@PM2Ring Interesting. I feel like this kind of comparison really bring to light certain features better, at least to me.
14:05
@NordineLotfi I think knowing how names work in PS made it easier for me to learn Python, although PS manages names a little differently. BTW, I'm not trying to encourage you to learn PS. But if you do want to learn a language that does stuff differently, it's a good choice. :) And if you run a Linux system, you probably already have GhostScript, and possibly other PS viewers, so you can run PS code without having to install anything.
I used to write a lot of PS, or programs that created output in PS. But for the last few years, I'm more likely to use SVG for that sort of thing because all modern Web browsers can display SVG.
I don't mind learning a new language when possible, so I don't mind if what you say encourage me, even if you didn't intend for it to :P (also yes, I do use Linux a lot more these days). Do you happen to have a good resource for PS?
14:32
My main PS resource is the official Adobe PostScript Language Reference manual, aka "the red book". I have the printed version, but it's available on Google Books, and it looks like it's a free download from Adobe, too.
You can learn PS from the manual, but it's a good idea to have an actual tutorial book with examples & exercises. The tutorial book I have is ok, but not great, and it's pretty old. Adobe also have a tutorial book: Postscript Language Tutorial and Cookbook, aka "the blue book". You might be able to find a free version online...
I see :o Thanks for all the info! I'll look into it.
@NordineLotfi Here's a little intro to PS tutorial that looks ok: paulbourke.net/dataformats/postscript I haven't read it closely, but Paul is a good writer.
15:00
@PM2Ring Thanks! Yeah, the writing look good.
 
5 hours later…
19:48
Cbg. How can I add padding between the tick labels and the axis (x or y) label in matplotlib?
I assume you have already perused the documentation of the functions that add the (x or y) labels.
Okay, so since there were some problems installing psychopy I did my best to rewrite the code such that psychopy is not involved, so I could better focus on the problem of my timings in the program. Instead, things are output to stdout. Unsurprisingly, this shortened the MCVE down to a mere ~40 lines. The only thing not vanilla python in this MCVE is the keyboard library, so you'll need to pip install that if you don't already have it.
I hope you're going to link to a pastebin
Also, if you are on mac and maybe linux you will need to run the .py as root because the keyboard library requires it for listening to key presses
I think it needs root on linux too, yeah
Is your issue clear to those who have been following along?
20:00
I'm not sure since only one responded and they couldn't install psychopy, so I was going to reiterate my issue here
@AndrasDeak--СлаваУкраїні I think so, I've tried using labelpad without success
@Marco so if you found a feature that's supposed to do exactly what you're asking, 1. you're either not asking what you're really trying to ask, or 2. you are not using the feature correctly, or 3. the feature is buggy. So in this case you might want to focus on your attempt at using the feature and how it was "unsuccessful".
@Catyre yeah, I could run this but keyboard doesn't work on all distro apparently (and in this cases, mine eh)
My question, then, is why does this if statement at line 38 keep procing even though the t press is only happening once? Shouldn't the code register the t press, run through the if statement, then be done with it until the next t press?
20:02
If you look at MCVE.log, it seems that it outputs to the log file every few fractions of a ms
@Catyre can you detail "procing" here? do you mean that it randomly detect a key press or doesn't catch the T press fast enough or?
@Catyre how long does the "procing" happen? When you press a button it takes a while for it to register as unpressed, and until then you have a busy loop constantly hammering that if.
you probably have to add a time.sleep once you've registered the first keypress
well, not that, because that will block
So perhaps a flag that checks when the last keypress happened, and only consider it a new press if it was "long ago".
The fact that there's no time.sleep in this code scares me
"When you press a button it takes a while for it to register as unpressed, and until then you have a busy loop constantly hammering that if".
That's what I was thinking, but the keypress is logged over a timespan much larger than what a release time should be for just a press
Explains why it created 3000 lines of log entries though
20:05
time.sleep will hang the program for the duration of the sleep, won't it? I need the program to listen for a keypress for the entire duration of the experiment
"can you detail "procing" here?" by procing I mean the if statement evaluates to true on each pass through the loop
The most foolproof option would probably be to keep a state of "button being pressed" and don't handle any events as long as that is True.
"foolproof" as in "not reliant on the user releasing the key in a given time"
you can put a time.sleep on another thread and catch the keypress on your main app. Then, if you were to say, put the fact that your T key is pressed in a global variable (I know, could be better) you could then check in a while loop + time.sleep on another thread to prevent blocking
I did this once with Xlib to catch keypress, it's decent, but as other will point out, it can be done in a better way, so this is just an idea
And this might just be the fault of the MCVE, but your "if "T" in streambit:" and "if keyboard.is_pressed("t"):" should not be independent. When you had a "T" you want to check for a "t" keypress.
@Catyre Thanks for the detail btw
@AndrasDeak--СлаваУкраїні isn't that taken care of by the inner if? rt, and therefore the log message, is related to if "T" in streambit by start_time.
@NordineLotfi it's the least I can do if I'm asking others for help haha
20:11
@Catyre hmm, yeah, you're right, sorry
In that case the only thing I can think of is keeping track of buttons being pressed. Assuming you only allow one button being pressed at a time. Can easily go wrong with multiple keypresses...
as I said earlier, I can't use keyboardmodule on my end because of my linux distro but...did you try to do a MRE of just catching keypress without anything else? like the couple of example that's on the github of said module I mean
if you did and it seems to catch key press the way you think it should, then the problem is maybe somewhere else, at least
Instead of spending all your CPU power on polling whether T is pressed, I recommend something event-based like this
@AndrasDeak--СлаваУкраїні I just solved. The labelpad value I had put was not large enough to add space after the axis label
Thanks anyway
(Occured the second option :P)
@Aran-Fey hmm this looks promising. I considered using a callback but wasn't quite sure how I would implement it. I will try this out
@Aran-Fey nice, knew you'd probably find a better solution :P
20:22
I've been pondering the conversation (about Wikipedia vs SO) we had back here chat.stackoverflow.com/transcript/message/54992685#54992685 and stumbled on some thoughts, but it turned into a bit of a wall of text pastebin.com/xttbBZFh read if interested I guess.
finished reading it. to be honest, even if it's hypothetically a good idea, with very little flaws, it all depends on someone else whims (aka, whoever the site is owned by, not the community) to change the operating model.
20:39
@Aran-Fey though this works using the keyboard library, I've just discovered that psychopy has no analog to on_press_key, so I can't use an event-based approach like this. Maybe I can get rid of psychopy's keyboard in the program in favor of this approach?
Or is implementing an event-based approach myself simpler than I'm imagining it to be
@Catyre there is many ways to do this. I seen some implement a queue based approach (but I don't know how to do it). There also the method I mentioned earlier with a thread + while loop and a time.sleep, but that's not ideal...
20:57
ah, I feel needlessly proud of having made my first percentage based for loop.
now just need a time estimation, and it'll look subjectively better
@Catyre This is how I'd do it with polling
21:52
@NordineLotfi I am planning a blue-sky redesign description for a blog post at some point in the foreseeable future (perhaps later in august or september)
I've never seen time.monotonic() and the docs don't really explain much. Is this different to Unix timestamps?
and here I come for another dive into Cython code, wew
"A clock that can't go backwards" ok, so it's based on what, exactly?
git cloning cython repo again to grep it...I'm gonna take a wild guess in the meantime: maybe it's based on a weird way to get time? also here a blog about it: luminousmen.com/post/how-to-not-leap-in-time-using-python
something tells me you say "cython" but mean cpython
21:58
@KarlKnechtel would love to see it whenever you make it then :) I like reading blogposts in general so that's a good thing too
Actually, what system clock can go backwards? Unless there's a sudden erasure of time decided by a government, all time stamps should compare as going forwards?
And "I'm gonna take a wild guess in the meantime: maybe it's based on a weird way to get time?" is probably the least committed wild guess I've ever seen
@0x263A I've been on SO for over 10 years (yeesh!) and I think using Google search to navigate the site is fantastic. Ask a natural language question, throw in a couple keywords, and 9 times out of 10 (depending on what you're looking for) the right Q&As show up at the top. I often use it for finding dupes, since OPs seem to not know how to search before posting. Using Google (properly) obviates the need to understand SO's structure.
@roganjosh DST, leap seconds etc.
@AndrasDeak--СлаваУкраїні ah yeah, mistake slithering, my bad
22:00
Even with DST and losing an hour, the new timestamp (provided it's a datetime) should compare "greater than" properly?
@AndrasDeak--СлаваУкраїні I'm always committed, maybe not 100% all the time but, definitely more than "in the least" :/ also, what I said earlier probably sounded better in my head, or had more details
I don't know much in this field, but my go-to reason is "time is hard", and one of these lists includes "Timestamps always advance monotonically." as a falsehood. I'll go out on a limb and assume that a function that swears to give you monotonic timestamps is useful.
I'm also on my phone, I'll do some poking in the source myself when I get home. There's a small part of me slightly worried there's some black hole lurking in my code
> The clock is not affected by system clock updates.
Good point: your computer can easily time travel.
22:03
@roganjosh yes, I can attest to that, this is turning into a rabbit hole for me at least
@AncientSwordRage cbg! I didn't know you had python in your heart ;) (or maybe close to it?)
Is there a library (not fussed if it's python actually, but you're all v. friendly) that takes a JSON schema and lets you build a JSON document programmatically?
I can only assume that ferrets, like mongooses, are ancient nemeses to snakes
@NordineLotfi I was raised on python
22:05
Assuming your avatar is a ferret... sorry for assuming :P
You assumed correctly
so, ferret eat snake or? sorry if this sounds rude as it isn't meant to be
No, mongoose eat cobra
but elongated predatory mammals can end up in similar corners of one's mind
but let's not distract too much from ASR's actual question (which I can't answer myself)
@AndrasDeak--СлаваУкраїні now I'm really intrigued :) I wonder if there's a way to get a monotonic timestamp without the Internet to compensate for time travelling computers. I'll have a look shortly
22:07
you're right Andras :) also Thanks for the bit of info
@roganjosh you should try time.monotonic ;)
@roganjosh GPS?
@roganjosh I used to wonder about that too once, especially when there was a huge shortage of internet connection on my end. If you ever find something, I remain interested
@AncientSwordRage not sure how that'd work. I'm imagining a computer completely isolated from connectivity and you just play with the system time. I'm guessing time.monotonic() just goes off the CPU clock cycles or something equally mundane
@AncientSwordRage I can't answer this myself either but: 1. do you have an example of that? basically, I'm not sure if you want a schema generator, or generating json schema from json data based on your question. Sorry if I misunderstood since I don't use json much myself
@roganjosh yeah, I guess it might (emphasis on might) just count something or maybe just increment time normally, either based on last time the computer was turned on, or the bios time, maybe? Not sure either, but that would make sense if it was the case
22:14
Though, if it does that, you could get in real trouble if you stored the result of a model to a database, then started a new process that compares with the timestamp stored because it's not properly stateful. I'll stop with my wild speculation until I am able to start digging in the code
@NordineLotfi you'd feed in a schema it it pops out a function to add it to a document
The specification says that the reference time is undefined, and I have a strong suspicion that the reference is per-process
@AncientSwordRage sorry if this happen to not be helpful but: stackoverflow.com/questions/60930432/… seems to be close no?
at least based on the title and my understanding
addSalad = ferret.makeSchemaAdder(myScheme)
addSalad('name', 'cabbage')
Or something similar
Is it clear to domain-savvy people what "JSON document" means?
In other words, what does addSalad('name', 'cabbage') do?
22:20
I don't think such a library exists or even could exist. I just build (what I call) container classes that know how to represent themselves as JSON
@AndrasDeak--СлаваУкраїні I'm making up terms as I need them 🤷🏻‍♂️
@roganjosh like a DAO?
that's alright as long as we end up understanding each other :P
My point was whether my confusion was representative of others in the room.
So Problem.add_vehicle(some_Vehicle()_instance) and then it translates that to a JSON payload to send to my solver... which itself is configurable and each solver expects a different payload
@roganjosh solver?
I failed to detach my own personal context. I build a "problem" in python and then dispatch it to any one of a number of solver servers that expect JSON. Each solver expects a different JSON structure for the same problem because its basically arbitrary
22:25
Ah ok
So the Problem class knows how to disassemble itself into JSON based on the server you want to talk to... but that's all manual work for me
And I can't envision a way for a library to generalise that
My context is converting form Reddit post JSON to something I can throw into a graph visualisation or some kind of ad-hoc query maker
@roganjosh isn't that what this is doing though? I don't work enough with json to really notice
Yes, it is. And it's hand-rolled. There's no helper library beyond json itself
You're basically building an arbitrary structure of nested lists and dicts (simplification) and then you just serialise it at the last point. There's no useful middleman pre-made for that
Perhaps I overestimated the complexity of the original question. Use the json library to do the serialisation and build your own class that allows you to accumulate the attributes you need I.e. the example methods you shared. It's unique every time
Hmmm maybe I need to figure out what to do with the data eventually... Like how I want to visualise or query it
22:35
That would be a good starting point for sure!
I'm gonna start walking home so will be back at a computer shortly
btw, found a SO post that explain a bit further what could time.monotonic do: stackoverflow.com/questions/3523442/…
although it's only about Unix/Linux systems
also, here the function for getting the monotonic time
and for some interesting comment in the header file: github.com/python/cpython/blob/main/Include/cpython/…
this align with what Andras said earlier about it being undefined
@NordineLotfi It's really terse
well yeah, there isn't much long comments once you get in the middle I think, but I didn't finish browsing through
Yeah
What will happen after the end of the Unix epoch (2262-04-11)?
22:54
timepocalypse
:P
Like the Bug Y2K (sarcasm here) or a more serious problem?
This is kinda what I was thinking: blog.hakanserce.com/post/jq but using a schema for {"magnitude": .mag, "location": .place}' part
@Marco I was mostly joking, but I assume some people probably already thought of a solution (or will)
Ah. Yeah, I think like that too.
This - en.wikipedia.org/wiki/Year_2038_problem - will happen before that.
@AncientSwordRage if you're eyeing jq, the unix.SE guys could help with specific questions. And a ton of posts there too.
23:01
yeah, I didn't recommend jq since I thought it would be inappropriate, given you mentioned python and such (my old self probably would have though)
Andras has a lot of patience with me...I'm glad
@AndrasDeak--СлаваУкраїні cool! Thanks
@NordineLotfi I'll use python, bash or JavaScript happily
nice, if I knew that earlier, I would have recommended the whole shebang (pun intended)
23:06
He explicitly said he doesn't insist on python
I even said you're all friendly :-P
But it's all good :-)
@AncientSwordRage I assume no responsibility for your mistakes :P
4
23:27
@AncientSwordRage this is what I was trying to illustrate. There's a lot of composition etc. going on there but it's super-stripped-back from the library itself. The point is to show that the same Problem class can be serialized in different ways so where do you envision some helper library stepping in?
@roganjosh because I'm not in charge of the input data format, I have more need to conversion than serialisation, and also I may have to extra data from different parts of the input
Perhaps it's not needed, it just felt like something that would exist
The only other thing I can think of is pydantic but that's for validation. Nothing is going to be able to help autocorrect some arbitrary structure that you're not in control of
Nor do I think you should want it. It's either in your control or not what you expect. pandas does too much on the assumption side and it's horrible at times for it
23:46
@roganjosh I guess it's more I am more concerned about extracting the input so I'm willing to write bespoke code. But if I can make a schema that just accepts whatever I can extract then I'd like to pass it into a big JSON file as easily as I can
That, I think, would be pydantic which will validate it. Otherwise, I'm out, sorry
@NordineLotfi Thanks for this. Although it's never come up and is also unlikely to, it's useful for me to know that this timestamp is basically transient so storing it in a database is a bad idea

« first day (4305 days earlier)      last day (867 days later) »