The freakonomic guys are hacks that have no idea on how to do sociology or econometric analysis.
The freakonomic guys are hacks that have no idea on how to do sociology or econometric analysis.
Are you asking how to write a module that you can import?
Yes, kinda.
Are these the same set of DB files every time? Are the columns and other configurations the same? Are you writing new python code every month?
They get updated by the accounting team each month. Some of them are csv, other come from an access database file, other from the sql server.
Some of the code need to be run each month with the updated databases, but there’s a lot of ad hoc statistical studies that my boss ask for that use the same databases.
Are you using some ETL process to spit out a bunch of files that you’d like to have imported and available easily? Are the formats the same but the filenames differ?
I guess yes. And not, the accountants keep the same filenames but change the directory lmao.
I think it’s the first thing you’re after. There are a bunch of tutorials knocking around about this, eg,
Thanks, im checking it out.
how do I make it available for all my new python projects to use?
import sys sys.path.append('my\\modules\\directory) import my_module
I get the impression you’re a data person rather than a programmer -perhaps you have a colleague who’s more of the latter you can tap up for this?
You’re right, I’m an actuarie. I wanted to do computer science instead of actuarial sciences, but I tough that it would be better getting an actuarial degree and then doing a masters on CS (still in planning, maybe 2026). I’m the only guy on the company who uses python and people here thinks I’m a genius because I have automated some boring things from excel.
Early chess engine that used AI, were trained by games of GMs, and the engine would go out of its way to sacrifice the queen, because when GMs do it, it’s comes with a victory.
There’s an interesting philosophical debate there. What good does imprison a guy who have no recollection of doing the crime, or the circumstances around them? Can be argued that the person who committed the crime and this guy finding the bodies are two different people who share the same body.
People lack of imagination is the problem. You’re a man into women, mark lesbian, woman into men, mark gay. Easy as that.
Kinda related, in the company I used to work everything was done in SAS, an statistical analysis software (SAS duh) that fucking sucks. It’s used to be great, but once your on their environment you are trapped for fucking forever. I hated it and refuse to learned it over what was basic for my daily tasks. A couple of months I moved to another company that used to pay a consulting firm for my job, so my boss and me had to start everything fresh and the first thing we did was to study what are going to use as statistics software and I fight tooth and nails for Python and one of the points I pushed was that if in the future we decide to move out of Python we could easily can do it, while other solutions could locked up us with them.
That’s sounds like the intro scene from The Fight Club, where the narrator talks about paying extra for handmade cups because they have little imperfections that make them unique.