top of page
Search

Managing python versions

  • Writer: netznana
    netznana
  • Oct 7, 2020
  • 1 min read

Python is one of the most popular programming language available today. I am new to the data science field. However, during the short life span in data science that I have experienced so far, I am glad to have this python as my good friend to help me to analyze data.

The problem with Python though is how fast it is updating. I have struggled with this issue since I had codes from Python 2 that were not compatible with Python 3 anymore. The solutions in this situation is simple.

  1. Downgrade your Python

  2. Update your code

Which one to chose? That depends on the context. In my case, the codes from Python 2 were not too long to manually adjust the old packages with the new. However, if this is not an option for you, better downgrade your Python. If you can create or have access to multiple virtual environments, then you can have both Python 2 and 3 installed.

 
 
 

Recent Posts

See All
Reusability of codes

So I am working on my first project in analyzing a dataset using pandas dataframe and wrote a bunch of codes to carry this out. However,...

 
 
 
Useful panda dataframe functions

So recently I happened to code a function for a dataframe and it took me almost 4 hours to get it done. The pseudo code was simple, but I...

 
 
 

留言


bottom of page