inspirezonetech / TeachMePythonLikeIm5

Teach the Python programming language using a collection of super beginner friendly tutorials and challenges.
https://inspirezone.tech/
MIT License
25 stars 43 forks source link

showing one way to create dataframes from lists #139

Closed ifeomaaaa closed 1 year ago

ifeomaaaa commented 1 year ago

Please fill in this pull request template before submitting

1. This pull request resolves #138

(^Fill in the issue number after #)

2. Description

(Showing how to create a dataframe from a list of lists)

3. Fill in checklist by marking [x]

ifeomaaaa commented 1 year ago

@funbeedev I tried to add pip install pandas o my because I thought it would make the script run as it should. Without that code, the error message I initially got was that there was no module named pandas. This was confusing because how can GitHub actions not recognize that package?

Also, I can’t comment out ‘import pandas as pd’ otherwise I would not be able to create a dataframe at All. And so I would have to comment out the whole code, including the part where a list is transformed to a dataframe.

I already resolved the linting issue. The only one I can’t resolve is the one of not recognizing pandas as a module. I’ve seen other tutorials, I’ve fixed the code to the best of my abilities, and I honestly don’t think there’s more I can do in that regard because of the issues I’ve stated.

sabderemane commented 1 year ago

Thank you @ifeomaaaa for your contribution !