Image for post
Image for post
“Close-up of lines of code on a computer screen” by Ilya Pavlov on Unsplash

There are no doubts about the power of Pandas and how useful it is in Data Science and Data analysis.

I’m using it extensively in my current internship project along with other libraries in this stack such as Scikit-learn and Numpy. I encountered lots of unique cases in the paper I’m implementing and decided to share solutions and hacks for those cases so that everyone can utilize them and save their time. For today’s topic, I will also explore the opportunities of submitting a pull request to be added as a feature.

For sorting all the values in the data frame, unlike .sort_values() method which requires a by= argument we will first unstack our data frame and sort values in the order we want (descending in this example). Moreover, we can get the indices of their appearance using .index.values

Image for post
Image for post

Recently I gave some tips for one of my hardworking and skillful friend on how to find a job in Europe/US. Although I have little if any practical experience in this field, but by living here and being in the ecosystem, seeing how my friends are applying and getting jobs to give me more hints on how to do it correctly.

Note: I will maintain interesting jobs at the end of this posts and update them frequently. Don’t forget to have a look here if you are looking for a position.

To summarize the following is your tools for getting a…

Image for post
Image for post
Concept game scene by artofjokinen

This is going to be my first post about my futuristic view, aggregated from different ideas in the scene, for AI, Humanity and different aspects of Life on earth. And it is mostly the introduction to the fundamental beliefs in the following parts, I will dig into one aspect of our life each time, e.g. How Education/Healthcare/Housing will look in 50 to 200 years from now.

I was with my friends at Lia and we went to have dinner after party with all accelerator members. The event that triggered me to write my thoughts, was the dinner table in which I discussed my view on AI, roots, future while talking to Ula, co-founder of Lia. …

Image for post
Image for post
Ocean Life by Pera Manic

Recently I was thinking about the concept of wealth and why some (religious) people see it as a negative thing. I tried to explain it by an example by Fish and the Ocean.

The story starts like this:
If we say that spirituality (God, power, …) is water and we are fish in this ocean who don’t feel the water.

And if we say that wealth and power are like how fast you are and how near you are to the surface of the ocean, the more powerful you are, the faster you move and the closer you are to the surface, which is not bad by itself. …

Recently I got an idea and I rushed to my experienced, helpful friends to measure its potential and decide what to do next. In the context, we talked few startup mindsets such as Big Idea, Unicorn, Do stuff that matters, etc. It’s no surprise for such a conversation as all entrepreneurs and of course, investors evaluate ideas a lot, sometimes may be up to a hundred times a day. Although professional investors have their own framework for finding the next Big Thing to put money on, I come up with a new framework, with getting inspiration from Nash Equilibrium in Game theory. …

Image for post
Image for post

I could never think how much one can learn by just running. It was a beautiful night beside the Caspian sea, with usual wind which made sea scream wild.

May be it’s hard to put all the things I think about during my runs but i can definately tell you that may be it is more than a year that I didn't learnt something new and special in this short period of time. I just love learning and exploring new things and Running satisfied my need much higher than my expectations.

I started my first run with a quote I also shared in my Instagram…

Image for post
Image for post

It’s been a while since TensorFlow is open-sourced and slowly is becoming more and more popular. One of the features that TF has is the ability to define and train your model using Python API and port the learned model in C++. Until the latest version of TF it’s been a pain in the neck of how to do it. Some people find workarounds. …

Image for post
Image for post
Love in Nature

“Death leaves a heartache no one can heal, love leaves a memory no one can steal”

“Even I myself always wondered if I truly love her or not. At last I found it out, may be too late (Remedy after death), but it still is an answer for a question in mind!

I figured out that I still missed her, crave her and worst of all, continue to loop true all memories in all places, times,… we were together in spite of the fact that now I know that we were not ‘Birds of a feather to flock together’ and had quite a lot quarrels and conversations just because of ‘Difference in our feathers!’.

About

Hamed MP

Product Manager @anyfin | Ex-AI MS.c. & Runner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store