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

I live in a pretty dense urban center (São Paulo), so I just guess the emergency departments on the city are going to take care of us while the energy come back. I have the privilege to live in one of the nicest neighborhoods here, so our infrastructures is well maintained.

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

Outsourcing your slavery dosen't make it any better.

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

Fictional ones dosen't need to actually work.

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

Yes, they are pretty useless as they are now.

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

My first kitty was called Rails, for Ruby on Rails, but he run away from home the second day we adopted it. Our second kitten was called Ruby, for Ruby on Rails, but she died the night we adopted her. Out third kitty was called Rails 2, but we call him Rails. He's still with us, 10 years old now.

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

We have the scale on the top at hand all time and use it for everything. Is pretty good for measuring water.

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

"Same problems as anyone else"? You Can bet I'm not going to be drunk driving around

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

Libs: best I can do is going 2% slower.

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

Maybe is shit that happens every year? The Olympics aren't there neither

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

Employees? The mini sub only had one "employee", who was the owner of the company, not a billionaire afaik, but billionaire enabler.

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

The reddit sub is going to delete op submissions, because he's trying to locate the place of a person.

49
submitted 1 month ago* (last edited 1 month ago) by driving_crooner@lemmy.eco.br to c/linkedinlunatics@sh.itjust.works

SpoilerThey're from the picture The Substance, pretty good body horror movie released this year

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.

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

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

213
submitted 1 year ago* (last edited 1 year ago) by driving_crooner@lemmy.eco.br to c/pics@lemmy.world

OG photography by Guilherme Ide.

240
1

You are trying to click a link in a comment but the comment keep collapsing, also, pressing for a second should select the comment text to copy or other actions instead of hiding the upvotes section.

Thank you.

2

If there's not on the F-Droid, on the google store is cool too.

27
submitted 1 year ago* (last edited 1 year ago) by driving_crooner@lemmy.eco.br to c/nostupidquestions@lemmy.world

She's almost 70, spend all day watching q-anon style of videos (but in Spanish) and every day she's anguished about something new, last week was asking us to start digging a nuclear shelter because Russia was dropped a nuclear bomb over Ukraine. Before that she was begging us to install reinforced doors because the indigenous population were about to invade the cities and kill everyone with poisonous arrows. I have access to her YouTube account and I'm trying to unsubscribe and report the videos, but the reccomended videos keep feeding her more crazy shit.

view more: next ›

driving_crooner

joined 2 years ago