Filter
Exclude
Time range
-
Near
I think this is the first time ever I am using a #Jupyter notebook because I need to and not because I’d like to. #pythonhacks #sorrysosorry
0
0
0
0
#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
0
10
0
2
#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
0
6
0
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
0
9
0
3
#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
1
7
0
2
Want to learn how to code? Enroll for our Python online course which kicks off next week 28th June 2021 & become a programmer πŸ“ž+254721130397/+254733600316/ +254780342333 πŸ“§info@learnovate.co.ke πŸ”—learnovate.co.ke πŸ‘‰lnkd.in/gCMvgur #python #programming #coding
0
0
0
0
#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
0
11
0
5
#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
0
20
0
3
#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
0
20
0
9
#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
0
8
0
4
#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
0
8
0
5
#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
0
8
0
3
#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
13
0
10