Git Product home page Git Product logo

pandasversion's Introduction

Pandas Compatability Test

Run the Test

Build the docker files:

docker build -t pandas:0.19.2 -f pandas0-19-2.dockerfile .
docker build -t pandas:1.0.1 -f pandas1-0-1.dockerfile .

Run the test:

docker-compose up

Expected Output

Python 3.7.1 & pandas:1.0.1 will fail

pandas101_1   | raise TypeError(f"dtype '{dtype}' not understood")
pandas101_1   | TypeError: dtype '<enum 'Color'>' not understood

Python 3.5.2 & pandas:0.19.2 will succeed

Note that in order to get this to succeed I had to downgrade numpy below what comes with pandas. The packaged version of numpy doesn't work either.

This will however run successfully on databricks runtime 5.5

pandas0192_1  |   color    make    model  year
pandas0192_1  | 0     1  toyota  corolla  2014
pandas0192_1  | 1     2   honda    civic  2018
pandas0192_1  | 2     3  hyndai   accent  2020
pandas0192_1  | 3     4  nissan   sentra  2017

pandasversion's People

Contributors

shaunryan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.