#๐Ÿ”’ project

28 messages ยท Page 1 of 1 (latest)

regal gazelleBOT
#

@limber horizon

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

odd mist
#

Do you know how to open and read files with python?

limber horizon
odd mist
#

Have you worked with csv files before?

limber horizon
#

no

odd mist
#

Are you comfortable using for loops?

limber horizon
#

i've learned it but i've never put it into practice before

odd mist
#

You'll need to use a for loop to access each line of this csv file

#

python has the csv module specifically for parsing csv files

#

it handles splitting each line of the file into its individual columns which makes it all easier to access

#

see if you can start at least by opening the file with python code

limber horizon
#

i can open it using vs code

odd mist
#

what editor you use doesn't really matter

#

I'm not saying to literally open the file

limber horizon
#

oh ok

odd mist
#

I'm saying to read the contents of the file using python

odd mist
limber horizon
#

oh i guess i dont know how to do that, maybe this project is too much for someone at my level

odd mist
#

There's only a few features you'd really have to learn to do this which overall are fairly basic

#

.rp open file

broken pivotBOT
#

Here are the top 5 results:

Why Is It Important to Close Files in Python?
Reading and Writing Files in Python (Guide)
Python GUI Programming With Tkinter
Context Managers and Python's with Statement
Python mmap: Improved File I/O With Memory Mapping
odd mist
#

This 2nd link here would be a good intro to working with files using python

#

.rp csv

broken pivotBOT
#

Here are the top 5 results:

Python Practice Problems: Parsing CSV Files
Reading and Writing CSV Files in Python
pandas: How to Read and Write Files
Python import: Advanced Techniques and Tips
How to Use Generators and yield in Python
odd mist
#

and again this 2nd link would be good for specifically dealing with csv files

limber horizon
#

could you give me an example of what this code would look like

regal gazelleBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.