r/PythonLearning • u/LopsidedComb9264 • 1d ago
Help Request Need help planning foray into Python
I am a mid level executive who has recently been asked to take over a python intensive project. I have coding experience but have been out of touch since last 10 years.
My question is that the project leverages heavily pandas, numpy, and matplot. I need to start in a month and want to use the lean december to be in a position where i can get hands dirtier
Should i start with CS50 (as suggested on other forums ) and gradually get into pandas and others. Or can i directly start with those ?
Ps: new to python, so dont bombard me with “stupid question” alerts !!
1
u/Salty_Dig8574 1d ago
If you've got prior experience but it's out of date, I would start with a python crash course on YouTube, then move into the pandas. Once you're comfortable there, add numpy. Then, of course, matplot.
1
u/Mediocre-Pumpkin6522 1d ago
The CS50P course is excellent. I used it to get up to speed with Python3. Pandas, NumPy, matplotlib, seaborn, and so forth are somewhat domain specific. I've played with them but my background is light in data analysis so I don't fully appreciate their power.
2
u/DE-Jeeper 1d ago
Take a look at some of the existing scripts to see if your team has settled on a set of norms for code layout, naming patterns, etc. and then focus on the most often used functions from each of the libraries. Go from there to try and create your own script to achieve the same things in a test environment.
2
u/ee_control_z 1d ago
"I have coding experience but have been out of touch since last 10 years. ... Ps: new to python, ..."
However way you decide to go about it, I recommend having a standard reference for the Python language in general. It will beat scrolling endlessly online which can lead to countless hours of wasted time. I highly recommend having the following book. It covers material from beginner to advanced and everything in between. If you have a question on a particular subject, more than likely it is covered since it is very comprehensive.
Learning Python, Mark Lutz, 6th Ed
You can find the book in the following link. Note the Contents sidebar on the left-hand side highlighting the main topics covered.
https://www.oreilly.com/library/view/learning-python-6th/9781098171292/
The book just came out last year so it is up to date.
1
u/peakpirate007 19h ago
been building https://www.runtime.school/ for learning and practicing python in one place. lessons, practice, projects and a few tools all use the same datasets, so it feels more connected than jumping between random examples. if you’re learning python , might be useful.
1
u/0utlawViking 14h ago
I'd suggest refreshing python fundamentals first, then gradually move into NumPy, Pandas, Matplotlib, focus on hands on exercises and small projects relevant to your upcoming work, learning by doing will help you get up the speed faster.
1
u/Amo-Rillow 11h ago
Years ago, I was the architect of an enterprise Data Warehouse. When I took it over, it was entirely SQL Server (Windows, Azure, SQL Agent, SSIS, T-SQL, stored process, etc). I identified that the business was moving into new areas where these technologies would be a hindrance. Although I had only played with Python, and had no staff members with Python experience, we added Python to the stack with great success. Most new development was done at least partially in Python. I have since retired, but the following are some of the things that I found the most challenging:
Ecosystem - We lacked an ecosystem for managing, testing, deploying all of the various Python packages and releases. This sounds minor, but once our solutions included a number of technologies, such as Google Firestore & BigQuery, MongoDB, SQL Server, MySQL, API end points, third party vendors, HL7, EDI, inbound feeds, outbound feeds, transformations, alerting, etc, things quickly got complicated. Just keeping up with new releases and versions was nearly a full time job. We also developed on Windows and deployed to Linux, which caused a few headaches.
Python and Databases - There are so many ODBC drivers for Python, some a much better than others. Also, many are specific to a single database technology. The one we were using (PySQL) made trapping stored procedure failures hard to trap.
Lesson Learned - We built a Python utility function and a SQL Stored Procedure interface for invoking stored procedures. We did not have this issue with MySQL (we had different issues, however).
Code Reviews - Perhaps the biggest challenge in Python is that there are so many ways to accomplish any given task. However, not all solutions are equal. I found that many of our developers just coded what ever popped into their minds first. Considerable thought needs to be put into the solutions, which in turn, requires proper code reviews.
Run Time Performance - It turns out that Python as a procedural language is quite slow. The good news is that the built-in functions are quite fast.
Memory - Python can be a huge memory pig. An empty dictionary consumes around 500 bytes before any data is added. Similar for a list. For large data volumes, this can be a factor.
Coding Styles - Adherence to coding guidelines is imperative.
Although I am retired, I still enjoy working with Python. Two technologies that I have discovered recently are DuckDB and Parquet files. DuckDB works well with Python, Pandas, Numpy, etc. These two are simply game changers (they go hand in hand). If I were starting over, both of these would be high on my list of technologies to invest in.
Hope this helps. Good luck!