r/learnpython • • Jul 11 '21

If you are employed as a python programmer, tell me the stuff you do on a day in the office

I want to be employed not python in particular but its my favorite language so I wanted to know what level of knowledge a job requires like what the people in offices actually do? I've seen videos but its just them typing on a computer

468 Upvotes

121 comments sorted by

View all comments

Show parent comments

31

u/Okotscha Jul 11 '21

Exactly what I do. Broad field of Data Eng.

DB X ----> processing ----> DBY
We work with a commodity trading system, hence it's lots of forecasts, public data, message data. The processing-unit want's to be pytest-ed and cuddled every-now-and-then.

Mostly py scripts that are run by a runner and SQLs/TimeScaleDBs.

5

u/epicmindwarp Jul 11 '21

Yep, pretty much it. It's a shame we can't connect everything DB to DB!

7

u/lps2 Jul 11 '21

I'm glad we can't, it keeps me employed!

3

u/epicmindwarp Jul 11 '21

run by a runner

Which runner do you use?

1

u/synthphreak Jul 12 '21

What is a "runner"? Are we just talking some crontab-type periodic scheduler?

1

u/synthphreak Jul 12 '21

What is a "runner"? Are we just talking some crontab-type periodic scheduler?

2

u/epicmindwarp Jul 12 '21

Basically. We use Ctrl-M

1

u/Okotscha Jul 13 '21

crontab-type periodic scheduler

In my exp GitLab Runner ist the easiest to get by.
A Docker container in which scripts are started by a a certain input.

2

u/Afrotom Jul 11 '21

Also pretty much what I do. Pipeline data from systems into the cloud for other areas of the business to use for their dashboarding. A lot of ETL with Pandas, Luigi and GCP.

1

u/TamahaganeJidai Jul 12 '21

Do you have any guide you'd recommend for starting with that kind of coding? Im no where near needing what you guys do but im going to need to do a bit of "DB X ----> processing ----> DBY" and back for a project of mine :)

2

u/Okotscha Jul 12 '21 edited Jul 12 '21

1st Step: SQL & Py Codewars. Even if you're not going to work in SQL, the querries for different DBs are all same-same-but-different. You don't want to spend 45 mins on e.g., "getting the most frequent ids in timeframe x to y" when it matters. Do this for 4 weeks 1.5hrs a day, not more, not less.

2nd Step: Host yourself a sql db on your computer via DBeaver. (this takes 10hrs min for a beginner, if you are done quicker, host it on AWS).

3rd step: Write a script that a) downloads AMZ & Baidu a stock price data (timezones) and b) only write new data to the SQL. work on this at least 25 hrs focused, if you are done earlier, do it better.
3.1 -> do pytest for all of your functions. addiontal 5hrs.

4th Step: Write a second script that computes the moving average of those two and write them to your DB, different table. work on this at least 15 hrs focused, if you are done earlier, do it better.
4.1 -> do pytest for all of your functions. addiontal 5hrs.

5th step: Write a script that when run, *alarams* (e.g., print, e-mail, sql-write in alarm-db) you when both have a positive moving average in the last 18 timesteps. work on this at least 40 hrs focused, if you are done earlier, do it better.
5.1 -> do pytest for all of your functions. addiontal 5hrs.

6th: Welcome to Docker. Have a Docker Container run above scripts three times a day. This takes forever. Afterwords, get a job.

you can send me the link to your repo after you are done with step 5, I will rev.

1

u/synthphreak Jul 12 '21 edited Jul 12 '21

Wow, this is awesomoe!

Edit: And also awesome!