[-] driving_crooner@lemmy.eco.br 5 points 18 hours ago

I just move to that version and other thing I find really cool is that the file can be edited while open and it shows the updates in real time. Pretty useful to check logs or other like that.

[-] driving_crooner@lemmy.eco.br 2 points 19 hours ago

The second really good was about the conversation, not the restaurant.

[-] driving_crooner@lemmy.eco.br 1 points 23 hours ago

Another bad one I had once, we we're in a really good Mexican close the theater and it was really good, we were chatting and laughing, until the nachos came by. She started to take all the fully loaded nachos, you know, the ones that are full of cheese and meat, leaving me only the ones that are just the chip. So I got up and went to talk to someone of the staff, to ask if they had some rule in the restaurant about one person eating all the fully loaded nachos alone, he said that they don't had one (pretty crazy that this is nor a regularly enforced thing, but wharever) and I asked him to please just go to our table and made the rule up. He was nice and help me, but my date felt it was very strange and asked him if I was the one who made up the rule, and he snitches me up! Can you believe it? So, she got upset and said that she was leaving, but it was too soon for the movie and she was like we're not going to the movie. The movies was good by the way, was this one with Santa, he was a cop and I heard he was paid 2M for that.

[-] driving_crooner@lemmy.eco.br 8 points 23 hours ago

Happen to me recently with "I saw the TV glowing" I tough it was a good movie, not 9 but maybe 8.5, apparently not, 5.5 by the IMDB voters.

[-] driving_crooner@lemmy.eco.br 6 points 2 days ago

You have to draw her with an eye patch, to show up that she's the grow up version.

[-] driving_crooner@lemmy.eco.br 2 points 2 days ago

TI lobbying colleges and exams facilities to force their crap and overpriced calculators down our throat

[-] driving_crooner@lemmy.eco.br 9 points 2 days ago

There's no Nobel price for mathematics, but I can accept the one for peace instead.

[-] driving_crooner@lemmy.eco.br 13 points 2 days ago* (last edited 2 days ago)

Introducing, the signed factorial: ¡n! = n × -(n-1) × (n-2) x -(n-3) x ... x (-1)^(n-2)(2) ×(-1)^(n-1)(1)

[-] driving_crooner@lemmy.eco.br 5 points 3 days ago* (last edited 3 days ago)

This one?

Wow, 2 opvotes vs 52 downvotes. Soo depressing.

[-] driving_crooner@lemmy.eco.br 10 points 4 days ago

Who are cheering the death? The post had no mention of dead people.

[-] driving_crooner@lemmy.eco.br 41 points 6 days ago

Tomato keep being casted as fruit, even that for any practical purpose it should be as vegetable

15
278
843
12
25

Hi, I want to know what is the best way to keep the databases I use in different projects? I use a lot of CSVs that I need to prepare every time I'm working with them (I just copy paste the code from other projects) but would like to make some module that I can import and it have all the processes of the databases for example for this database I usually do columns = [(configuration of, my columns)], names = [names], dates = [list of columns dates], dtypes ={column: type},

then database_1 = pd.read_fwf(**kwargs), database_2 = pd.read_fwf(**kwargs), database_3 = pd.read_fwf(**kwargs)...

Then database = pd.concat([database_1...])

But I would like to have a module that I could import and have all my databases and configuration of ETL in it so I could just do something like 'database = my_module.dabase' to import the database, without all that process everytime.

Thanks for any help.

764
submitted 4 months ago* (last edited 4 months ago) by driving_crooner@lemmy.eco.br to c/programmerhumor@lemmy.ml
4
submitted 7 months ago* (last edited 6 months ago) by driving_crooner@lemmy.eco.br to c/thelyricsgame@lemmy.ca
20
submitted 7 months ago* (last edited 7 months ago) by driving_crooner@lemmy.eco.br to c/thelyricsgame@lemmy.ca
12
submitted 7 months ago* (last edited 7 months ago) by driving_crooner@lemmy.eco.br to c/thelyricsgame@lemmy.ca
11
submitted 7 months ago* (last edited 7 months ago) by driving_crooner@lemmy.eco.br to c/python@programming.dev

Hi, I'm currently using this to log my python process

logging.basicConfig(filename='filename.log', level=logging.DEBUG)

logger = logging.getLogger()

sys.stderr.write = logger.error

sys.stdout.write = logger.info

And then using print(f'{datetime.now()} log message') where I want to log.

It's working OK, buy I would like to live it to ic, but can't find any info on how to send the ic output to the logger.

Thanks for any help.

24
53
submitted 9 months ago* (last edited 9 months ago) by driving_crooner@lemmy.eco.br to c/mathmemes@lemmy.blahaj.zone

E[S] = μE[N]

😳

view more: next ›

driving_crooner

joined 1 year ago