#๐ i need help with pandas
63 messages ยท Page 1 of 1 (latest)
@slow ermine
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.
did you install openpyxl?
@slow ermine you just have to install openpyxl
ok I'll try then I'll let you know
don't be afraid of error messages. in this case, it told you exactly what the problem was, and the solution.
when I type pip install openpyxl it in the terminal it gives me an error
whenever you get an error, don't say that you got an error. just copy and paste the whole error message into the chat.
tht error is in italian
that's fine.
pip : Termine 'pip' non riconosciuto come nome di cmdlet, funzione, programma eseguibile o file script. Controllare l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In riga:1 car:1
- pip install openpyxl
-
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
what command do you do to run the program?
pip install openpyxl
that's to pip install. not to run the program
yes
I need the command that you use to run the python program that you are writing
ImportError: Missing optional dependency 'openpyxl'. Use pip or conda to install openpyxl.
what command did you do to get that error message?
that the program message
mport pandas as pd
file = pd.read_excel('rubi.xlsx')
print(file)
show what comes before that
i think i have to reinstall python
no
please show what comes before that text in the terminal
@slow ermine if you have started trying to reinstall python, I will not be able to help
I need to know what happens immediately before this appears on your terminal
you haven't shown that yet
you've shown the output of a hidden command. I need to know the command.
what's the command that you enter that does all of this?
import pandas as pd
file = pd.read_excel('rubi.xlsx')
print(file)
Hey @slow ermine!
It looks like you're trying to paste code into this channel.
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
You can **edit your original message** to correct your code block.
this is python code. not a command.
i know
how do you run the python program? are you pushing a button?
yes
what button
i clicked excecute pytohn file
okay. put this at the top of that python file
import sys; print('venv is', sys.executable); exit()
and then run the python file, and copy and paste the output as text (no screenshot) into this chat
@slow ermine please ping me when you have done that
okay, in powershell, try this
python -m pip install openpyxl
and then run the program again
but if that doesn't work, I unfortunately don't have more time to help.
thank you now it works!
oh, and delete import sys; print('venv is', sys.executable); exit() from the program
hmm, okay
i already deleted
ok
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.
๐ i need help with pandas