driving_crooner

joined 1 year ago
[–] [email protected] 3 points 34 minutes ago
[–] [email protected] 17 points 3 hours ago (1 children)

Fast fashion is older that the 2020's

[–] [email protected] 26 points 4 hours ago (3 children)

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.

[–] [email protected] 3 points 5 hours ago* (last edited 5 hours ago)

From Brazil: Clubber das planetarias - DJ Caio Prince, et al.

It's what you're going to listen in the typical São Paulo club.

[–] [email protected] 3 points 6 hours ago (1 children)

North summer or any summer?

[–] [email protected] 6 points 15 hours ago* (last edited 15 hours ago)

Don't need to go that far, pretty sure he's a pro-confederate himself.

[–] [email protected] 1 points 15 hours ago

One minute earth just did a great video about that https://youtube.com/watch?v=_skYZFmr0Lg

[–] [email protected] 5 points 15 hours ago

Everyone is QA now.

[–] [email protected] 38 points 1 day ago (2 children)

Record girls to jackoff at school? What does that mean?

[–] [email protected] 2 points 2 days ago

True Detective intro credits be like:

[–] [email protected] 17 points 2 days ago

The stupidest take I have read today, and I even read OP comment here too.

 
 
 
 
 

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 [email protected] to c/[email protected]
 
 

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.

 

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

1
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

E[S] = μE[N]

😳

 

Acabei de ver que meus comentários não estão sendo postados em threads que ficam em outros servidores.

Sou eu só o a gente está com problemas de federação?

Edit: estive stalkeando outros membros de lemmy.eco.br e nenhum do nossos mensagens está sendo postado nas outras comunidades mas a gente se consegue ver eles.

view more: next ›