this post was submitted on 07 Oct 2024
35 points (94.9% liked)

Python

6471 readers
2 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 2 points 2 months ago* (last edited 2 months ago) (1 children)
try:
    import pandas
except:
    print("You did not install pandas, let me do it for you")
    import os
    os.system("pip install pandas")

Here is some cursed error handling

[โ€“] ExperimentalGuy 2 points 2 months ago

This is beautiful, but what would be even better is to have the program open a reverse shell so you can log into the computer to install pandas manually.