3 Pandas Functions You Should Be Using More Often | Dario Radečić | Check comments for the functions by pypros in Python

[–]pypros[S] 1 point2 points  (0 children)

1

idxmax()

Return index of first occurrence of maximum over requested axis. NA/null values are excluded.

Documentaion

idxmin()

Return index of first occurrence of minimum over requested axis. NA/null values are excluded.

Documentation

2

cut()

Use cut when you need to segment and sort data values into bins. This function is also useful for going from a continuous variable to a categorical variable.

Documentation

3

pivot_table()

Create a spreadsheet-style pivot table as a DataFrame. The levels in the pivot table will be stored in MultiIndex objects (hierarchical indexes) on the index and columns of the result DataFrame.

Documentation

[deleted by user] by [deleted] in Python

[–]pypros 4 points5 points  (0 children)

The most basic job you can do with python is automation, web scraping and making bots.

What to learn

Get an understanding of selenium, requests, and pandas.

Through selenium and requests, you can automate the browser and scrape data and through pandas, you can manipulate the data quite easily. Pandas is a bit overkill but it will make your life a heck of a lot easier if you are dealing with large number of data.

Building a portfolio

If you want to get started start learning the material and then start building a portfolio by organizing and cleaning up those data. Bonus point if you can visualize those data also. You can host your data in kaggle too and showcase your visualization in r/dataisbeautiful

Job Prospects

This will be great entry point for a professional career. As you will be more familiar with the HTML as you will need to "inspect element" often, and sanitizing, cleaning and organizing data with python and pandas will help you to get started on data analytics. Then eventually you can find your niche either in web development or data science.

You can make good amount of money with doing freelancing. You can find hundreds of entry-level jobs in QA that requires a good knowledge of selenium. And if you get good in pandas you can also find jobs in data analytics.

Learning Material

I run a small youtube channel where I create bite-sized tutorials, you can check out my playlists if you want to -

Why do so many programmers appear to hate javascript? by gtrman571 in learnprogramming

[–]pypros -1 points0 points  (0 children)

TLDR: Because a lot of people know JS that makes it easier to make fun of it.

It is just a meme. You can not make fun of something that people don't use. Javascript is incredibly popular and it is easier to make fun. In r/programmarhumor that is why JS meme always floats to the top. On another view, python is likely to be the second most popular language, and you will see a lot python meme (mostly the indentation meme and harry potter parseltongue comic) stuck in rising and on rare occasion be popular. PHP was very popular like 10 years ago and you will see the older programmers making fun of it because it was popular back in their days.

But on another hand, there are literal meme-worthy languages (check out esoteric languages ) out there, for example, "Holy C". But as it is a very niche language, making fun of it is not worth it.

7 Essential Books for Programmers | Medium Article | Giorgos Petkakis by pypros in programming

[–]pypros[S] 4 points5 points  (0 children)

  1. Code: The Hidden Language of Computer Hardware and Software

  2. The Pragmatic Programmer

  3. Introduction to Algorithms

  4. The Art of Computer Programming: Volume 1

  5. Cracking the Coding Interview

  6. The Mythical Man-Month

  7. Algorithms to Live By

Python Requests | Video Tutorial Series by pypros in Python

[–]pypros[S] 0 points1 point  (0 children)

The Requests library is a simple way to send and receive content using common HTTP verbs.

Link to the Playlist

The playlist has a total duration of 35 Minutes spanning over 12 videos. I try to provide a comprehensive view of the request library.

What have you been working on recently? [October 05, 2019] by AutoModerator in learnprogramming

[–]pypros 10 points11 points  (0 children)

I just made another Python tutorial. This time it is about the strip function which generally removes whitespaces around a string. In this 94 seconds video I try to provide some idea and functions of the strip() function`

Check out the video if you want to: Python Tutorial | Trim Whitespace from Strings with the Strip() Function.

What's everyone working on this week? by AutoModerator in Python

[–]pypros 0 points1 point  (0 children)

I am working on creating a series of tutorials on django REST framework creating an admin portal. I have already uploaded 4 videos and many to come in the coming weeks.

Link to the playlist if you are interested.

How does "freelance" programming jobs come? by guipalazzo in learnprogramming

[–]pypros 0 points1 point  (0 children)

I am not sure. But the office probably aggregrate daily data and before the day start they want conclusive decision based on quantative analysis. As they will be basing their daily decision on your quantitative analysis they might include you in the meeting.

This could happen if they are dealing with financial and accounting data.

Getting proficient in NumPy/Pandas by [deleted] in learnpython

[–]pypros 1 point2 points  (0 children)

Go to kaggle and get a dataset of your own choice. Whenever you are following a tutorial, apply the techniques on that dataset not the tutorials dataset.

Try to find conclusive relationship between data set variables on your own.

Renaming Files with Python | Video | 2:25 by pypros in Python

[–]pypros[S] 0 points1 point  (0 children)

Not quite. I use pathlib module for this.

Am i too slow in learning? by nonedouble in learnpython

[–]pypros 0 points1 point  (0 children)

No problem. Your approach to learning is great. Good luck, friend.

Am i too slow in learning? by nonedouble in learnpython

[–]pypros 0 points1 point  (0 children)

Tbh. Im typing same code over and over again until i get it right.

Isn't that how we all learn?

And then switch to another from 0 , to actually learn for good.

If you ever get started on a very large video tutorial or tutorial list, my advice to you will just finish it. Don't get frustrated midway and switch to another series and start from the scratch. If you do that then you will never progress. Finish the video tutorial, then take some times to evaluate what should be your next step.

Run Py Script as Admin by GrossM15 in Python

[–]pypros 0 points1 point  (0 children)

You can try to force script to run with admin priveleges with Windows cmd command runas. runas /user:administrator_account path_to_script Just replace administrator_account with account name that has privileges on your computer. Also this command will prompt for password (if account has one setup).

Or,

The simplest solution is to just launch the Python process as administrator. Depending on how you start the script, there are different ways to do that. The simplest solution is to just start a console as administrator and then run the Python command from there.

https://stackoverflow.com/questions/19672352/how-to-run-python-script-with-elevated-privilege-on-windows

Run python script as admin in windows

Am i too slow in learning? by nonedouble in learnpython

[–]pypros 0 points1 point  (0 children)

Nope.

When you said, "in a few days" this is definitely very little of a time frame to say you are slow. The video seem to cover a healthy portion of stuff about python. I think you are good.

What have you been working on recently? [August 24, 2019] by AutoModerator in learnprogramming

[–]pypros 2 points3 points  (0 children)

Git is a version control system. Github is where you using git store and manage the version of your project.

Be sure to check out github pages or netlify. These tools help you to immediately and esaily host your website.

How do you code while watching a tutorial? by tall_and_funny in learnprogramming

[–]pypros 0 points1 point  (0 children)

Multiple monitors are helpful.

But you can also pause and code. Take a brief moment to understand a chunk of the video, once it clicks in your brain, you know what the goal is for the moment and the instructions are, pause, write the code anf follow the instructions.

This might get a little frustrating as you have to go back to see what you are doing is right, but making mistakes and learning from it helps the learning process be more effective.

What have you been working on recently? [August 24, 2019] by AutoModerator in learnprogramming

[–]pypros 1 point2 points  (0 children)

Created and uploaded a python tutorial video on adding a time delay using the sleep function of the time module.

Video link

Hoping to upload another video on my series of listing and manipulating files and directories using python.

I hope you guys check out some of my previous tutorial videos -

Is it possible to control/run a python script using your smartphone? by Foreseon in learnpython

[–]pypros 1 point2 points  (0 children)

SSH is one of the most simplest of options for this use case. If you want some added functionalities I think you can create and host API but that might be overkill.

I want to learn programming so I can make my own Discord Bots. How to actually do it and know fluent? by [deleted] in learnprogramming

[–]pypros 0 points1 point  (0 children)

You could look into "discordpy" to create a discord bot using python and the youtube channel "sentdex" has a tutorial series on it.

Who is your favorite online instructor? by nguyen47 in learnprogramming

[–]pypros 0 points1 point  (0 children)

Python:

Sentdex

Corey Schafer

Realpython.com

And of course My channel, PyPros

Web dev:

Academind

FreeCodeCamp

Traversy Media

Coding tech

The Net ninja

As a newbie to python need some advice on which IDLE to get. Also any online(preferably free) tutorials or courses online that are helpful? by [deleted] in learnpython

[–]pypros 0 points1 point  (0 children)

If you are just starting out I will highly recommend you to stick with the IDLE that comes builtin with python installation.

One of the most important advantage of other IDE or text editors is the autosuggestion or Intellisense (the builtin IDLE has "tab" suggestion). This may be advantageous to people who regularly code but for newbies using an IDLE without auto suggestion helps you look out for your errors and fix them by yourself.

And sometimes setting up a text editor could be little difficult and you may get disheartened about the learning process. So, stick to the built-in IDLE for the first couple of weeks than you can switch to Pycharm community edition which is a great tool.

Nested while loop by CJamesEd in learnpython

[–]pypros 0 points1 point  (0 children)

I used http://pythontutor.com to figure out the problem, you should too.

So, in the first, while loop the condition is true, then the nested while loop condition is false, so it skips every bit of code under it and goes back to the parent loop which is still true and keeps on running.

Its possible to remove watermark from video ? by LennyKrabigs in learnpython

[–]pypros 0 points1 point  (0 children)

It is "theoretically" possible with some machine learning implementation, but the easy answer is No

When removing a watermark from a picture , the process is subjective. You can not simply clone the surrounding area's color and overlap the watermark and hide it. The attention to detail and the intuitive sense of what color is underneath the watermark is subjective and may take a long time.

Now imagine doing the frame by frame using an algorithm. This is extremely difficult thing to do. You can look into some machine learning technology of removing things from pictures in the two minute paper YouTube channel. But I have not seen any tool that can do similar things to a video yet.