Skip to content

License issue: terminal.py contains code licensed under Creative Commons #21074

@karabill

Description

@karabill

Code Sample, a copy-pastable example if possible

NA

Problem description

The file pandas/io/formats/terminal.py contains source code taken from stack overflow (it explicitly says this in the terminal.py file). However, the source code that exist in stack overflow is licensed under Creative Commons Attribution-Share Alike, see: https://stackoverflow.com/help/licensing.

Pandas claims to be BSD 3 compliant, but it actually has code in terminal.py that is not under BSD.

Keep in mind that the part of the code that is under creative commons is affecting the python 2 implementation. The python 3 implementation does not need the code from stack overflow. So, some possible solutions would be (there might be other options that I am not aware of):

  1. Remove the code that is under CC. This will make the terminal.py unusable for python 2.
  2. Use backports.shutil_get_terminal_size and replace the code under CC. This will make pandas depend on the backports.shutil_get_terminal_size package.
  3. Provide a brand new implementation for the part of terminal.py that is under CC.

Expected Output

NA

Output of pd.show_versions()

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions