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

I think he made all the decisions.

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

There's this region of Rio de Janeiro where all the big events (Olympics, Rock in Rio, Rio Open, and so on) happens. It's in the newer part of the city and a little far from the city core, that region is called "Barra de Tijuca" and the joke everyone on Rio love to so is saying that Black Sabbath visits the Barra way frequently that they do.

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

My dog can take us to adventures (he also bring the other dog and the ghoul)

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

Wait, isn't loop open source? Guess being in the fediverse dosen't make it open source. TIL.

There's this music genre in Brazil called funk (different to the US funk from the 70), and they're pretty experimental on what they mix in and they use a lot of chip tune and other video games songs mixed. One of those DJs (DJ Bassan) regularly mix in donkey Kong or Chrono Trigger OST in the middle of her sets.

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

Only when the last carbon based power plant is close, we can see if there's energy left to waste on that capture carbon machine.

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

And the only one with a backup is Facebook.

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

This is so 2010's

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

During covid was reduced to 2 seconds and never bring back to 5. This is an actual good move imo.

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

I would do it for free.

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

If you are working time series the absolute values are not that good for modeling, you want to transform the data into log difference.

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.

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