r/pythoncoding • • Oct 07 '23

I shared a tutorial type Python Data Science Project video on YouTube

3 Upvotes

Hello, i just shared a data science project video on YouTube. This project has data analysis, feature engineering and machine learning parts. I tried to predict if employees are going to leave or not with various classification algorithms. I used a kaggle dataset and i added the link of the dataset in the comments of the video. I am leaving the link of the video below, have a great day!

https://www.youtube.com/watch?v=bvHEl-vUxY8


r/pythoncoding • • Oct 06 '23

Linear Regression in Machine Learning: Hands-on Project Guide

Thumbnail
appdividend.com
3 Upvotes

r/pythoncoding • • Sep 28 '23

2 Problems

3 Upvotes

Hello. I am a newcomer to Python and still learning in class.

So I am supposed to create a program where a user enters a hypothetical student’s name and grade number, and that info is placed in a dictionary, where the student’s name is the key and the grade number is the value. I have a good part of it done, but I have two problems that need to be addressed:

1 - The user needs to enter a valid name. To do this, I need to have it so that the user can only enter letters, hyphens, or apostrophes when the user inputs a student’s name (no numbers or other punctuation marks).

2 - I need to make a grade report where it shows how many students achieved a certain grade in a certain range. For example, 3 students scored 100 and 5 scored 85 —> 3 A’s and 2 B’s.

I am supposed to primarily use loops and functions to achieve this, but not much else (very beginner’s level stuff), but I would still like to hear any help you guys can offer. Thanks in advance.


r/pythoncoding • • Aug 06 '23

Understanding Python Descriptors: A Practical Dive

Thumbnail self.python
3 Upvotes

r/pythoncoding • • Jul 12 '23

This is how we can easily run WebSockets with WSGI apps

Thumbnail self.pythontips
3 Upvotes

r/pythoncoding • • Jul 12 '23

Upgrade from 3.7 to 3.11

3 Upvotes

Hey Reddit,

I'm currently using Python 3.7 for my application and considering upgrading to Python 3.11. I'd like to hear from those who have already made this transition regarding the amount of work involved and any tips they might have.

How extensive are the changes from Python 3.7 to 3.11? Did you encounter any unexpected issues or roadblocks during the upgrade? Any specific tools or resources that helped you?

Also, are there any compatibility concerns with popular libraries or frameworks when upgrading to Python 3.11?

I appreciate any insights or recommendations you can provide to make this process smoother.

Thanks in advance!


r/pythoncoding • • Jul 07 '23

Efficiently Load Large JSON Files Object by Object

Thumbnail
self.pythontips
3 Upvotes

r/pythoncoding • • Jul 03 '23

A Memory-Efficient JSON Parser

3 Upvotes

Introducing json-lineage v0.2.1: The Ultimate Solution for Memory-Efficient JSON Loading in Python! 💥🐍

Ever noticed how much memory Python's JSON parser can hog?

Ever noticed your application slow down when loading large JSON files?

Is there even an easy solution?

Well, json-lineage is here to revolutionise your JSON workflows with its unparalleled memory efficiency. 💡📈

While Python's JSON parser is a reliable tool, it can be quite memory-intensive, causing bottlenecks and hindering performance. json-lineage is purpose-built to address this challenge, offering remarkable memory optimisation without compromising on functionality. ⚡💪

Although json-lineage may not surpass Python's JSON parser in terms of raw speed, its memory efficiency shines through. By reducing memory usage, json-lineage allows you to process large JSON files that wouldn't fit into memory otherwise. This opens up exciting possibilities for working with massive datasets without sacrificing performance. 🚀💡

Click the link below and explore how json-lineage can supercharge your projects by leveraging its exceptional memory efficiency. 💥🐍

https://github.com/Salaah01/json-lineage

Oh, and here's a link to pretty graph that shows you just how memory efficient it is!
Link to pretty graph


r/pythoncoding • • Jun 26 '23

PatchTST: A Breakthrough in Time Series Forecasting

Thumbnail
datasciencewithmarco.com
3 Upvotes

r/pythoncoding • • May 15 '23

Converting a Subreddit to a Podcast with Python and AI

Thumbnail
github.com
3 Upvotes

Hey all,

Wanted to share this code I co-wrote with ChatGPT.

https://github.com/AdmTal/crowdcast

It’s a script that converts a subreddit into a podcast. Pretty neat!

I made it specifically for my new sub /r/crowdcast

I thought it would be neat to make a crowd sourced podcast using AI - so there it is!

Here’s an example of how it turns out: https://www.buzzsprout.com/2188164/12833613-5-11-2023

So… that was my test episode.

Next week (5/19), I’m gonna publish the first real one, that includes comments from the public.

I hope some of you leave some comments and are part of next weeks cast!


r/pythoncoding • • Apr 11 '23

Limiting concurrency in Python asyncio: the story of async imap_unordered()

Thumbnail death.andgravity.com
3 Upvotes

r/pythoncoding • • Nov 14 '22

/r/PythonCoding bi-weekly "What are you working on?" thread

3 Upvotes

Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!

If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.

This recurring thread is a new addition to the subreddit and will be evaluated after the first few editions.


r/pythoncoding • • Nov 09 '22

Socketify.py - Maybe the fastest web framework for Python and PyPy

Thumbnail self.python
3 Upvotes

r/pythoncoding • • Oct 03 '22

/r/PythonCoding bi-weekly "What are you working on?" thread

3 Upvotes

Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!

If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.

This recurring thread is a new addition to the subreddit and will be evaluated after the first few editions.


r/pythoncoding • • May 04 '22

PEP 690 – Lazy Imports

Thumbnail
peps.python.org
3 Upvotes

r/pythoncoding • • Mar 05 '22

Kakegurui Indian Poker

3 Upvotes

I wrote a Python program based on the Kakegurui Indian Poker game that was aired in episode 4. I feel like, I have successfully completed the game. But if you find any issues or any bug fixes, PR is accepted on Github. Game Tutorial Link: https://animevyuh.org/kakegurui-indian-poker/


r/pythoncoding • • Jan 24 '22

/r/PythonCoding bi-weekly "What are you working on?" thread

3 Upvotes

Share what you're working on in this thread. What's the end goal, what are design decisions you've made and how are things working out? Discussing trade-offs or other kinds of reflection are encouraged!

If you include code, we'll be more lenient with moderation in this thread: feel free to ask for help, reviews or other types of input that normally are not allowed.

This recurring thread is a new addition to the subreddit and will be evaluated after the first few editions.


r/pythoncoding • • Jan 21 '22

PEP 679 -- Allow parentheses in assert statements

Thumbnail
python.org
3 Upvotes

r/pythoncoding • • Nov 25 '21

Estimating Missing Time Series with Resampler Interpolation Technique | Linear & Polynomial | Business Case with Code Examples

3 Upvotes

Missing data could be there at the source itself or may get introduced while we resample it to a higher frequency. Interpolation solves the problem in both contexts. It provides the best possible estimation that fits into the polynomial graph. The graph is drawn by using all other available values.

This means to say, the available values are used to the best possible extent in this methodology. I've tried to explain this complex technique in simple terms using a retail use case and code examples.

https://additionalsheet.com/understanding-python-pandas-dataframe-resampler-interpolate-with-example-retail


r/pythoncoding • • Nov 02 '21

I created a boilerplate codebase to deal with crypto scams.

Thumbnail self.cryptocurrency
3 Upvotes

r/pythoncoding • • Oct 09 '21

domonic 0.6.1

3 Upvotes

Hi, please try domonic and let me know what you think.

https://github.com/byteface/domonic/

https://domonic.readthedocs.io/

It's not a framework. More of an interoperability port of the html/dom/js etc

Feel free to contribute.


r/pythoncoding • • Sep 27 '21

Whatsapp Bot that Detects Chat Messages and joins your Zoom Meetings

Thumbnail
self.python
3 Upvotes

r/pythoncoding • • Jul 15 '21

hpy 0.0.2: First public release

Thumbnail hpyproject.org
3 Upvotes

r/pythoncoding • • May 18 '21

Notification on exceptions

3 Upvotes

Hi guys,

Is there a common way to be notify whenever a python script failed?

I've found that one option is to use logger with an smtp_handler, but it will only notify me when i use logger.exception.

I would like to be notify whenever any exception occured.

Thx