You are viewing a single thread.
View all comments
2 points
*
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

permalink
report
reply
2 points

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.

permalink
report
parent
reply

Python

!python@programming.dev

Create post

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

📅 Events
Past

November 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds

Community stats

  • 669

    Monthly active users

  • 170

    Posts

  • 708

    Comments