Skip to main content

Share and Edit Pandas Dataframes with a Link!

Project description

Instantly Share and Modify Dataframes With a Web Interface From Anywhere with One Line

Goal

This package enables cross-collaboration between nontechnical and technical contributors by allowing developers to generate a URL for free with one line of code that they can then send to nontechnical contributors enabling them to modify the dataframe with a web app. Then, they can send it back to the developer, directly generating the modified dataframe, maintaining code continuity, and removing the burden of file transfer and conversion to other file formats.

Technical Contributor Features

  • pip install share-df
  • one function call to generate link to send, accessible anywhere
  • changes made by client are recieved back as a dataframe for seamless development

Nontechnical Contributor Features

  • Easy Google OAuth login
  • Seamless UI to modify the dataframe
    • Change column names
    • Drag around columns
    • Change all values
    • Rename columns
    • Add new columns and rows
  • Send the results back with the click of a button

How to Run

  1. pip install share-df
  2. If you do not already have one, generate an auth token for free in less than a minute with ngrok
  3. Create a .env file in your directory with NGROK_AUTHTOKEN=
  4. import and call the function on any df!

Example Code

import pandas as pd
from share_df import pandaBear

df = pd.DataFrame({
    'Name': ['John', 'Alice', 'Bob', 'Carol'],
    'City': ['New York', 'London', 'Paris', 'Tokyo'],
    'Salary': [50000, 60000, 75000, 65000]
})

df = pandaBear(df)
print(df)

Future Functionality

  • True Asynchronicity with ipyparallel
  • Code Recreation (instead of overwriting the df just solve the code needed)
  • The package is not working on Google Collab currently, but is working for local scripting or notebooks

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

share_df-0.1.5.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

share_df-0.1.5-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file share_df-0.1.5.tar.gz.

File metadata

  • Download URL: share_df-0.1.5.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/23.5.0

File hashes

Hashes for share_df-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ca078e8aac60db4feb8f30067a26fccec7c02c7c45a1fcde45bce4f5ebd38672
MD5 21bf0f16d0ba055d76a8e907834124f8
BLAKE2b-256 a8ff7abffe3716d6fbc31d733ae798e03d82fc2eb85a209d747e0e766c9c3240

See more details on using hashes here.

File details

Details for the file share_df-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: share_df-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/23.5.0

File hashes

Hashes for share_df-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f661f2a23ac76a4d75aff9b2a0cc707889e38b2a040d8714f93101f83ac65531
MD5 44ad94dfacc2bf34aa135b24eaa96d05
BLAKE2b-256 325cfeb69d3f885d0e969faa8fbf4298c0af9cd67c05b2c80f519f2733ea5add

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page