[-] driving_crooner@lemmy.eco.br 3 points 16 hours ago

Idk if anywhere else is like this, but in Colombia meat is so shit that people have hammers to hit the meat to soft it.

[-] driving_crooner@lemmy.eco.br 4 points 16 hours ago

Knives are sharp, but they aren't going to pierce a shoe, or a croc (without the holes), for falling down a meter. Also, they have to constantly move around they would get tired af with heavy shoes with metal plates on it.

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

Nah, lmao, they don't use hammers or shit like that.

[-] driving_crooner@lemmy.eco.br 15 points 20 hours ago* (last edited 20 hours ago)

Medical personnel love crocs, but not sure if they use those ones with holes on it. My wife is a chef and she loves them too.

Don't remember what language uses === to check if two objects have the same memory id assigned. Like a = 1, b= 1 would give true to a == b but false to a === b; while a = 1, b = a, would give true to both.

[-] driving_crooner@lemmy.eco.br 38 points 1 day ago

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

Good nerd idea: check the variance of weight, if is bigger than 1.5x, that mean the kid took more that one and activate the eyes lights and scream to the kid.

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

It's also a common destination for upper middle class families on latinamerica, because you can pay in doing an MBA and getting a job.

Argentina have a lot of immigration from Perú, Bolivia and Paraguay, but the important part, I think, is that Milei campaign were pretty much "illegal immigrants are destroying our country" and proposing a lot of shit that already exists, like background checks to get work and studying permits.

[-] driving_crooner@lemmy.eco.br 49 points 1 day ago

Classic "bait and switch" tactic. Guess OP isn't an used car's seller.

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

In Brazil, Bolsonaro denied it was a thing and fight any measure trying to curb its impact. State governments, who admin the healthcare systems on their States, could see that covid were fucking up the Healthcare system and had to fight the federal government to do anything. A lot of people died, and that mf almost got re elected.

283
858
14
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.

796
submitted 4 months ago* (last edited 4 months ago) by driving_crooner@lemmy.eco.br to c/programmerhumor@lemmy.ml
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.

17

Guardando está notícia pra mandar ao pessoal quando falar que na favela não pagam energia.

24
70
452
7

Hi, When im working with some big dataframes and I need to create some columns based on functions. So i have some code like this

Def function(row): function

And then I run the function on the df as

df['new column'] = df.apply(function, axis=1)

But I do this with 10 or more columns/functions at time. I don't think this is efficient because each time a column is created it had to parce the entire data frame. There's a way to create all the columns at the same time while parsing the rows only once?

Thanks for any help.

21
Montagem rule (lemmy.eco.br)
view more: next ›

driving_crooner

joined 1 year ago