Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
921e3ed
Added missing .gitignore file to ignore unneeded files.
jefpadfi Aug 6, 2020
856368d
Added in kivy garden matplotlib to fix import issues.
jefpadfi Aug 6, 2020
66fb205
Updated to work with newest version of all libraries.
jefpadfi Aug 6, 2020
b341b24
Updated .gitignore to ignore my pycharm .idea folder.
jefpadfi Aug 6, 2020
d7b65e9
Optimized imports.
jefpadfi Aug 6, 2020
b35e10d
Create python-publish.yml
jefpadfi Aug 6, 2020
7db06d7
Made PandasDataframeGuiKivy into a pypi package.
jefpadfi Aug 6, 2020
26caef6
Merge remote-tracking branch 'origin/master'
jefpadfi Aug 6, 2020
c032039
Create python-package.yml
jefpadfi Aug 6, 2020
e03dc8e
Update python-publish.yml
jefpadfi Aug 6, 2020
63d1d91
Update python-package.yml
jefpadfi Aug 6, 2020
b8942ad
Edited backend_kivy.py for github to be able to build it.
jefpadfi Aug 6, 2020
2a86f96
Edited backend_kivy.py for github to be able to build it.
jefpadfi Aug 6, 2020
693ffd1
Edited backend_kivy.py for github to be able to build it.
jefpadfi Aug 6, 2020
4e26ebf
Edited backend_kivy.py for github to be able to build it.
jefpadfi Aug 6, 2020
3e88b79
Delete python-publish.yml
jefpadfi Aug 6, 2020
cc48f88
Create python-publish.yml
jefpadfi Aug 6, 2020
dd8b647
Added in build status
jefpadfi Aug 6, 2020
f77ca2b
Added in BooleanProperty show_nav to Histogram and ScatterGraph to hi…
jefpadfi Aug 6, 2020
344b0fc
Added in BooleanProperty show_nav to Histogram and ScatterGraph to hi…
jefpadfi Aug 7, 2020
d964c9f
Added in BooleanProperty show_nav to Histogram and ScatterGraph to hi…
jefpadfi Aug 7, 2020
8392b93
Merge pull request #1 from jefpadfi/devleopment
jefpadfi Aug 7, 2020
7cc5e08
Archived and created new library to support PD into Kivy Apps
jefpadfi Aug 10, 2020
0722ee1
Merge remote-tracking branch 'origin/master'
jefpadfi Aug 10, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
131 changes: 131 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

.idea/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# ARCHIVED
This repo is no longer being worked on. I have created a new library that is based on this located [here](https://github.com/jefpadfi/pdfkivygu).
This repo will no longer be updated.

![Python package](https://github.com/jefpadfi/PandasDataframeGUIKivy/workflows/Python%20package/badge.svg?branch=master)

# DataframeGUIKivy

Port of Dataframe GUI module to a Kivy widget. Original module can be found at this repository: https://github.com/bluenote10/PandasDataFrameGUI

# Updates
This fork has been updated to use the current version of all required libraries.

* matplotlib _png is no longer needed to be imported and was removed
* pandas.DataFrame.from_items was [deprecated since version 0.23.0](https://github.com/pandas-dev/pandas/blob/v0.23.4/pandas/core/frame.py#L1422-L1507)
and has been replaced with pandas.DataFrame.from_dict
* kivy.garden.matplotlib was giving me trouble so I just included the source in garden.matplotlib
* added in requirements.txt so all requirements can be installed through pip.

## Demo Run Instructions

```sh
Expand Down
35 changes: 19 additions & 16 deletions demo.py → examples/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import datetime
import numpy as np
import pandas as pd
from dfguik import DfguiWidget
from pdfkivygui.dfguik import DfguiWidget


def create_dummy_data(size):
Expand All @@ -23,25 +23,28 @@ def choice(*values):
datetime.date(2016, 1, 1) + datetime.timedelta(days=int(delta))
for delta in np.random.randint(1, 50, size)
]
return pd.DataFrame.from_items([
("Date", random_dates),
("UserID", choice(*user_ids)),
("ProductID", choice(*product_ids)),
("IntColumn", choice(1, 2, 3)),
("FloatColumn", choice(np.nan, 1.0, 2.0, 3.0)),
("StringColumn", choice("A", "B", "C")),
("Gaussian 1", np.random.normal(0, 1, size)),
("Gaussian 2", np.random.normal(0, 1, size)),
("Uniform", np.random.uniform(0, 1, size)),
("Binomial", np.random.binomial(20, 0.1, size)),
("Poisson", np.random.poisson(1.0, size)),
])
return pd.DataFrame.from_dict({
"Date": random_dates,
"UserID": choice(*user_ids),
"ProductID": choice(*product_ids),
"IntColumn": choice(1, 2, 3),
"FloatColumn": choice(np.nan, 1.0, 2.0, 3.0),
"StringColumn": choice("A", "B", "C"),
"Gaussian 1": np.random.normal(0, 1, size),
"Gaussian 2": np.random.normal(0, 1, size),
"Uniform": np.random.uniform(0, 1, size),
"Binomial": np.random.binomial(20, 0.1, size),
"Poisson": np.random.poisson(1.0, size),
})




class DataFrameApp(App):
def build(self):
df = create_dummy_data(1000)
return DfguiWidget(df)



if __name__ == '__main__':
DataFrameApp().run()

Empty file added pdfkivygui/__init__.py
Empty file.
Loading