[-] [email protected] 7 points 8 hours ago

I'm listening to this podcast, history of Africana philosophy, and is the first time I heard about history and the British empire, where they weren't completely trash. Like they used the royal navy to patrol the African coast, capture slave ships and free the people onto Sierra Leone.

[-] [email protected] 18 points 9 hours ago

And what left for us? Microplastics? What a shame.

[-] [email protected] 19 points 13 hours ago

That's the left.

3
submitted 16 hours ago by [email protected] to c/[email protected]

O que acham se a gente se junta alguma noite a jogar algum jogo?

[-] [email protected] 4 points 16 hours ago

Bet he wanted to kill Trump to cause a civil war, not because he tough he was dangerous.

[-] [email protected] 39 points 17 hours ago* (last edited 17 hours ago)

When the Overton window goes from Hitler to Mussolini, you get MSNBC being a "left-leading" news channel.

[-] [email protected] 8 points 18 hours ago

What's the difference?

[-] [email protected] 5 points 23 hours ago

Do you reveal them yourself?

[-] [email protected] 1 points 23 hours ago
[-] [email protected] 3 points 1 day ago

Isn't her silhouette revealed when you die?

[-] [email protected] 0 points 1 day ago

You can look for them on hardware stores too, they're cheaper there.

[-] [email protected] 9 points 1 day ago

Dis you try wood pellets?

[-] [email protected] 5 points 1 day ago

My pillow came with 3 mini pillows that you insert on the middle of the pillow to regulate the height.

852
submitted 1 week ago by [email protected] to c/[email protected]
14
submitted 1 week ago by [email protected] to c/[email protected]
7
submitted 1 week ago by [email protected] to c/[email protected]
25
submitted 2 weeks ago by [email protected] to c/[email protected]

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.

784
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
4
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
20
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
13
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
11
submitted 3 months ago* (last edited 3 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.

17
submitted 4 months ago by [email protected] to c/[email protected]

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

24
submitted 5 months ago by [email protected] to c/[email protected]
view more: next ›

driving_crooner

joined 1 year ago
MODERATOR OF