VOOZH about

URL: https://www.analyticsvidhya.com/blog/2018/04/pandas-will-drop-all-support-for-python-2-next-year/

⇱ Pandas will No Longer Support Python 2 Next Year


India's Most Futuristic AI Conference Is Back – Bigger, Sharper, Bolder

  • d
  • :
  • h
  • :
  • m
  • :
  • s

Pandas will No Longer Support Python 2 Next Year

Pranav Dar Last Updated : 17 Apr, 2018
2 min read

Overview

  • Pandas will drop support for Python 2 from 1st January, 2019
  • This comes after Python’s core team announced they will stop support for Python 2.7 from 2020 onwards
  • Recent survey revealed almost 47% users are still using Python 2 so this will affect a large number of developers

Introduction

Pandas is one of the most common and popular python libraries out there. It provides fast and incredibly flexible data structures that make working with data really easy and straightforward. It’s essentially the first library you learn about when you start with Python.

Starting from 1st January 2019, pandas will no longer be supporting Python 2. This means that the final release before December 31st, 2018 will the last ever to support Python 2 and all releases post that will be for Python 3 only. This has been announced in line with python core team’s decision to drop support for Python 2.7 from 1st January, 2020 onwards.

πŸ‘ Image

Note here that pandas will NOT stop working – instead it will stop pushing out bug fixes, security enhancements and new features to the older version of Python. This will only be possible if someone outside the developer team volunteers to do it.

A recently conducted survey revealed that a massive 47% of users are still using Python 2 so they will have to switch over to the latest version very soon. A lot of other packages have also decided to drop their support for Python 2 recently, so this will just expedite the process.

You can read their official announcement on GitHub here.

Our take on this

The reaction to this announcement has been mixed on social media. While a few people argue that they shouldn’t be forced to upgrade their version, most folks understand the need for this change. By dropping support for Python 2, it becomes easier and more streamlined for developers and people maintaining the latest version. Another case to be made is that if the support isn’t removed, then users will not have a lot of incentive to upgrade.

But moving your scripts from Python 2 to 3 has seen the code break for a few people so be wary when you make the move. You can check out this link to learn more about porting your code from Python 2 to 3.

What are your thoughts on this? Will you be affected by this move?

Subscribe to AVBytes here to get regular data science, machine learning and AI updates in your inbox!

Senior Editor at Analytics Vidhya.Data visualization practitioner who loves reading and delving deeper into the data science and machine learning arts. Always looking for new ways to improve processes using ML and AI.

Login to continue reading and enjoy expert-curated content.

Free Courses

Generative AI - A Way of Life

Explore Generative AI for beginners: create text and images, use top AI tools, learn practical skills, and ethics.

Getting Started with Large Language Models

Master Large Language Models (LLMs) with this course, offering clear guidance in NLP and model training made simple.

Building LLM Applications using Prompt Engineering

This free course guides you on building LLM apps, mastering prompt engineering, and developing chatbots with enterprise data.

Improving Real World RAG Systems: Key Challenges & Practical Solutions

Explore practical solutions, advanced retrieval strategies, and agentic RAG systems to improve context, relevance, and accuracy in AI-driven applications.

Microsoft Excel: Formulas & Functions

Master MS Excel for data analysis with key formulas, functions, and LookUp tools in this comprehensive course.

Responses From Readers

Dr Howard B Bandy

I agree with the decision for both Python and Pandas support to be exclusively Python 3. About four years ago, I compared Python 2 with Python 3 in preparation for a major project. At that time, there were a few libraries that I planned to use that were compatible only with Python 2. That project was done using Python 2. I revisited that comparison recently and found that now all of the libraries I need are compatible with Python 3. I have switched to Python 3 for all new work. Support is a major expense for every software organization. Focusing efforts on one platform allows a higher level of support and lower costs. When support for Python 2 is discontinued, that does not mean that Python 2 will no longer work. Projects implemented using Python 2 will continue to run. Developers who wish to continue to use those programs can create a virtual environment devoted to precisely the program modules with specific versions they require.

Flagship Programs

GenAI Pinnacle Program| GenAI Pinnacle Plus Program| AI/ML BlackBelt Program| Agentic AI Pioneer Program

Free Courses

Generative AI| DeepSeek| OpenAI Agent SDK| LLM Applications using Prompt Engineering| DeepSeek from Scratch| Stability.AI| SSM & MAMBA| RAG Systems using LlamaIndex| Building LLMs for Code| Python| Microsoft Excel| Machine Learning| Deep Learning| Mastering Multimodal RAG| Introduction to Transformer Model| Bagging & Boosting| Loan Prediction| Time Series Forecasting| Tableau| Business Analytics| Vibe Coding in Windsurf| Model Deployment using FastAPI| Building Data Analyst AI Agent| Getting started with OpenAI o3-mini| Introduction to Transformers and Attention Mechanisms

Popular Categories

AI Agents| Generative AI| Prompt Engineering| Generative AI Application| News| Technical Guides| AI Tools| Interview Preparation| Research Papers| Success Stories| Quiz| Use Cases| Listicles

Generative AI Tools and Techniques

GANs| VAEs| Transformers| StyleGAN| Pix2Pix| Autoencoders| GPT| BERT| Word2Vec| LSTM| Attention Mechanisms| Diffusion Models| LLMs| SLMs| Encoder Decoder Models| Prompt Engineering| LangChain| LlamaIndex| RAG| Fine-tuning| LangChain AI Agent| Multimodal Models| RNNs| DCGAN| ProGAN| Text-to-Image Models| DDPM| Document Question Answering| Imagen| T5 (Text-to-Text Transfer Transformer)| Seq2seq Models| WaveNet| Attention Is All You Need (Transformer Architecture) | WindSurf| Cursor

Popular GenAI Models

Llama 4| Llama 3.1| GPT 4.5| GPT 4.1| GPT 4o| o3-mini| Sora| DeepSeek R1| DeepSeek V3| Janus Pro| Veo 2| Gemini 2.5 Pro| Gemini 2.0| Gemma 3| Claude Sonnet 3.7| Claude 3.5 Sonnet| Phi 4| Phi 3.5| Mistral Small 3.1| Mistral NeMo| Mistral-7b| Bedrock| Vertex AI| Qwen QwQ 32B| Qwen 2| Qwen 2.5 VL| Qwen Chat| Grok 3

AI Development Frameworks

n8n| LangChain| Agent SDK| A2A by Google| SmolAgents| LangGraph| CrewAI| Agno| LangFlow| AutoGen| LlamaIndex| Swarm| AutoGPT

Data Science Tools and Techniques

Python| R| SQL| Jupyter Notebooks| TensorFlow| Scikit-learn| PyTorch| Tableau| Apache Spark| Matplotlib| Seaborn| Pandas| Hadoop| Docker| Git| Keras| Apache Kafka| AWS| NLP| Random Forest| Computer Vision| Data Visualization| Data Exploration| Big Data| Common Machine Learning Algorithms| Machine Learning| Google Data Science Agent
πŸ‘ Av Logo White

Continue your learning for FREE

Forgot your password?
πŸ‘ Av Logo White

Enter OTP sent to

Edit

Wrong OTP.

Enter the OTP

Resend OTP

Resend OTP in 45s

πŸ‘ Popup Banner
πŸ‘ AI Popup Banner