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

Don't worry, thanks to planned obsoleted they're going to be out in 10 years or so.

[-] driving_crooner@lemmy.eco.br 34 points 11 hours ago

3 month bullshit for resign? What kind of work contract is that?

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

In Brazil, a LinkedIn "influencer" was roasted because he said the if you a 100 to a rich person they would invest it and "make it" into 120 in a year, while of you give the same 100 to a poor person, that money is "lost" immediately.

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

The Sims MMORPG with PvP

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

You can also infuse a tampon on nicotine water and then insert the tampon in your anus.

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

More like, im occupying my neighbor house while having him locked on the basement, he throws a rock at me and I'm just go around killing everyone I see.

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

A Satanic Clinic can argue for religious rights on the ritualistic sacrifice of the fetus.

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

Imo is more intuitive the need of () in print,like is a function like any other, why would not use ()?

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

What a negative attitude. Why do you respond anyway? Shut up and let other people answer questions then.

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

You can use this one á

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

Laura Doomer VP let's go!

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

I was doing a job interview and the manager asked me why I choose python over other languages like R, like if I tough that python was the best language or what? I answered that python is not the best language for anything, for any job you want there's a better language, but python is the second best one for everything, so it offers a flexibility that no other language can. Like in my actuarial sciences MBA, all the professors use R, for 99% of they do I have an equivalent library in python, for the 1% that don't I can use rpy2 and run R code directly in python. Guess they liked my answer because I was approved and I'm about to start there in October.

282
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.

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