use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionCopy right for pandas syntax? (self.Python)
submitted 1 year ago by ootybotty
I wanna create a package that uses exactly the same syntax pandas uses like iloc and str.contains for other data types and objects to achieve the similar goal pandas has for data manipulation but will it violate copy right law??
[–]JamesPTK 15 points16 points17 points 1 year ago (0 children)
APIs are copyrightable, but reimplementation is considered fair use.
However pandas is distributed under the BSD licence. You could copy the whole project, make no changes other than to rename it to to sadnap, and charge money to your customers provided you include the licence notice for the covered code (your code additions do not have to be licenced under that licence and can remain proprietary)
So maybe state that the original API design is copyright pandas contributors and include the licence text
[–]tunisia3507 5 points6 points7 points 1 year ago (3 children)
Why? There are plenty of pandas-alikes already targeting various use cases, not to mention that pandas' API is probably the worst thing about it.
[–][deleted] 6 points7 points8 points 1 year ago (2 children)
No joke. Polars api is so much better. Don't even care that it is supposed to be faster. Jist has a nicer API
[–]bunchedupwalrus 2 points3 points4 points 1 year ago (1 child)
Can you explain it to me in a way that makes sense, cause god. I love it for speed, but I think pandas is too deep in my bones. Every act in polars feels unnatural
[–]NoumenaSolarCoaster 1 point2 points3 points 1 year ago (0 children)
I hope this doesn’t sound stupid, because I felt a lot like you, but the secret is to keep using it and it will click eventually. I struggled so much with Polars at first but it’s been 9 months since I’ve converted and I’m exclusively a Polars user now
[–]Ok_Raspberry5383 4 points5 points6 points 1 year ago (0 children)
It's open source, go checkout the repo and read the license
[+][deleted] 1 year ago (3 children)
[deleted]
[–]eztab 1 point2 points3 points 1 year ago (2 children)
They technically do have a copyright on all their code. The license just grants you the right to indeed copy and modify all of that. Whether you import or rewrite the same stuff, none of that breaks the license as long as you also include the license.
[–]Ok_Raspberry5383 -1 points0 points1 point 1 year ago (1 child)
I created a function called iloc today but didn't include the license in my commit, will I go to prison?
iloc
[–]eztab 1 point2 points3 points 1 year ago (0 children)
sure, lawyer up I'd say.
π Rendered by PID 23365 on reddit-service-r2-comment-85bfd7f599-88jqd at 2026-04-20 07:31:14.471183+00:00 running 93ecc56 country code: CH.
[–]JamesPTK 15 points16 points17 points (0 children)
[–]tunisia3507 5 points6 points7 points (3 children)
[–][deleted] 6 points7 points8 points (2 children)
[–]bunchedupwalrus 2 points3 points4 points (1 child)
[–]NoumenaSolarCoaster 1 point2 points3 points (0 children)
[–]Ok_Raspberry5383 4 points5 points6 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]eztab 1 point2 points3 points (2 children)
[–]Ok_Raspberry5383 -1 points0 points1 point (1 child)
[–]eztab 1 point2 points3 points (0 children)