Search: #pythonhacks

Include

Only show posts containing:

Exclude

Hide posts containing:

Time range
-
Minimum likes
How do you run an echo command without screaming? Whisper it gently via Paramiko! πŸ€«πŸ’» #PythonHacks" Source: devhubby.com/thread/how-to-r… #SSH #AI #CyberSecurity #TechNews #echo #python
3
17
Yo, fam! 🌍✨ Smash that translate button to turn your sheets into French, Spanish, or Japanese! πŸ’₯ Python and Google Translate API got your back! No more app-switching, just vibes! #PythonHacks #GoogleSheetsMagic
1
3
76
"Unlock the power of Python! 🐍 Explore our collection of Python code samples for various cybersecurity tasks. Whether you're a beginner or an expert, these hacks will level up your skills. Start coding for security today! πŸ’»πŸ”’ #PythonHacks #CyberSecurity github.com/RekhuGopal/Python…
1
2
89
➑️ Simplify your code with this #Python trick: πŸ€– Flatten a nested list using a list comprehension: flattened_list = [x for sublist in nested_list for x in sublist] #pythonhacks #codingtips
2
27
🌟🌟 Level up your Python tip 🌟🌟 Use the itertools module to efficiently iterate over and manipulate data in Python. It's part of base python and really extends your iteration options! #python #pythontips #pythonadvice #pythonbestpractices #pythonhacks #pythonhelp
1
1/2 Python - How to convert the contents of a Jupyter Notebook cell into a .py file ? πŸͺ„. Enter Magic command :- %%writefile . πŸͺ„. Check the comment section πŸ‘‡πŸ‘‡for tutorial video on how %%writefile command works. #data #DataScience #software #pythonhacks
1
1
3
#PythonHacks - So disappointed with #pandas not following NaN conventions from #numpy!! Apparantly, if you use pandas dtypes like pd.Int32 instead of np.int32, filters like "is not None" won't work!! Instead use pd.NA #python #MachineLearning #100daysofcode
2
1
#PythonHacks - This one is perfect for one of those times when you feel like renaming only 1/ few columns in a pandas dataframe. #pandas #pythonlearning #pythoncode #Python3 #learntocode #machinelearning #coders #devcommunity #100daysofcode
4
2
#PythonHacks - have you ever felt the need to print name of the variable Use the following function. Note that this is a hack, because there are not variables in pythons - only names πŸ€·β€β™‚οΈ #100daysofcode #machinelearning #pythonlearning #pythoncode #python #pandas #learntocode
3
2
#PythonHacks - ever felt the need to strip all string columns in pandas? there's a simple solution. First select all string (object) columns and then use a lambda function. Do you know a better way? #pandas #pythonlearning #pythoncode #Python #machinelearning #100daysofcode
2
1
#PythonHacks - I knew apply() function of #pandas and equivalent map() function for #numpy operations. But there's another great function - reduce() from #functools. Use it to apply operator on all elements #pythoncode #Python #learntocode #machinelearning #coders #100daysofcode
2
2
#PythonHacks - Is #Lambda function better than traditional approach in #Python? Maybe not. But it is far convenient to use, and doesn't degrade performance much! Use it more often! #pythoncode #numpy #learntocode #machinelearning #coders #devcommunity #100daysofcode
6
1
#PythonHacks - When iterating #Pandas #DataFrame, using loc() instead of iloc() can boost performance by ~12x! Difference is due to how #python calculates memory address to retrieve an item #pythoncode #Python #learntocode #machinelearning #coders #devcommunity #100daysofcode
6
7
#PythonHacks - in #Pandas, because it is column major, a col -> row access is ~10x faster than row -> col... Wish I knew this earlier! #mindblown #pythoncode #Python #learntocode #machinelearning #coders #devcommunity #100daysofcode
3
3
#PythonHacks - Can we improve performance of #Pandas #dataframe in row wise operations? Sure! #Numpy to the rescue! Convert df to np array, and it takes nano seconds instead of milli seconds to iterate!!! #pythoncode #Python #learntocode #machinelearning #coders #100daysofcode
3
3
#PythonHacks - When working with large #DataFrames of #Pandas, I realised that itertuples() is ~60x faster than iterrows() while iterating! That's an awesome thing to boost performance! #pythoncode #Python #learntocode #machinelearning #coders #devcommunity #100daysofcode
4
2
#PythonHacks - I never understood #Pandas is column major, until I saw it in action. Accessing a column is ~50x faster than rows. #pythoncode #Python #learntocode #machinelearning #coders #devcommunity #100daysofcode
1
7
7
#PythonHacks - random number generators are used everywhere. #Numpy made my life simple by offering super efficient functions like rand(), randint(), randn(), choice() etc #100daysofcode #Python #pythoncode #coders #learntocode #devcommunity #pythonlearning
5
3
#PythonHacks - One day i was stuck with 2 huge arrays and had to find common and non-common elements. #Numpy came to rescue - setdiff1d() and intersect1d() functions do just that #pythoncode #Python #learntocode #machinelearning #coders #devcommunity #100daysofcode
10
28