Git Product home page Git Product logo

interactive_datetime_filter's Introduction

Hi there ๐Ÿ‘‹

๐ŸŒฑ Projects:

โšก Employment:

  • Software Developer at Iberdrola - designing, developing, and implementing software solutions for the advancement of renewable energy systems and services. My work requires me to develop cloud-native data analytics applications and to design robotic systems. This entails creating client and server-side software, producing high-fidelity CAD/CAM assemblies, and automating sub-systems with micro-controllers.

๐Ÿ“• Latest Blog Posts

๐Ÿ“ซ Contact:

LinkedIn Medium GrabCAD

interactive_datetime_filter's People

Contributors

mkhorasani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

interactive_datetime_filter's Issues

StreamlitAPIException: ("Expected bytes, got a 'int' object", 'Conversion failed for column time with type object')

Great tutorial! I cloned your repo and it comes up fine:
image

however I get the following error when I try to move the slider

image

2021-12-30 14:44:48.333 Traceback (most recent call last):
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/type_util.py", line 379, in data_frame_to_bytes
table = pa.Table.from_pandas(df)
File "pyarrow/table.pxi", line 1650, in pyarrow.lib.Table.from_pandas
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/pyarrow/pandas_compat.py", line 594, in dataframe_to_arrays
arrays = [convert_column(c, f)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/pyarrow/pandas_compat.py", line 594, in
arrays = [convert_column(c, f)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/pyarrow/pandas_compat.py", line 581, in convert_column
raise e
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/pyarrow/pandas_compat.py", line 575, in convert_column
result = pa.array(col, type=type_, from_pandas=True, safe=safe)
File "pyarrow/array.pxi", line 311, in pyarrow.lib.array
File "pyarrow/array.pxi", line 83, in pyarrow.lib._ndarray_to_array
File "pyarrow/error.pxi", line 122, in pyarrow.lib.check_status
pyarrow.lib.ArrowTypeError: ("Expected bytes, got a 'int' object", 'Conversion failed for column time with type object')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.dict)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/interactive_datetime_filter.py", line 48, in
st.write(filtered_df)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/elements/write.py", line 183, in write
self.dg.dataframe(arg)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/elements/dataframe_selector.py", line 85, in dataframe
return self.dg._arrow_dataframe(data, width, height)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/elements/arrow.py", line 82, in _arrow_dataframe
marshall(proto, data, default_uuid)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/elements/arrow.py", line 160, in marshall
proto.data = type_util.data_frame_to_bytes(df)
File "/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/type_util.py", line 392, in data_frame_to_bytes
raise errors.StreamlitAPIException(e)
streamlit.errors.StreamlitAPIException: ("Expected bytes, got a 'int' object", 'Conversion failed for column time with type object')

/Users/qt02537/local/repos/learn/21Q4/TDS/interactive_datetime_filter/.venv/lib/python3.8/site-packages/streamlit/elements/arrow_altair.py:91: FutureWarning: This dataframe has a column name that matches the 'value_name' column name of the resulting Dataframe. In the future this will raise an error, please set the 'value_name' parameter of DataFrame.melt to a unique name.
chart = _generate_chart(ChartType.LINE, data, width, height)


I'm using an M1 Macbook Air running Python 3.8 in a virtual environment.

The following is the output of "pip freeze":
(.venv) qt02537@MacBook-Air ~/local/repos/learn/21Q4/TDS/interactive_datetime_filter (main)
14:49:55$ cat requirements.txt
altair==4.2.0
appnope==0.1.2
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
astor==0.8.1
attrs==21.4.0
backcall==0.2.0
backports.zoneinfo==0.2.1
base58==2.1.1
bleach==4.1.0
blinker==1.4
cachetools==5.0.0
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.9
click==7.1.2
debugpy==1.5.1
decorator==5.1.0
defusedxml==0.7.1
entrypoints==0.3
gitdb==4.0.9
GitPython==3.1.24
idna==3.3
importlib-resources==5.4.0
ipykernel==6.6.0
ipython==7.30.1
ipython-genutils==0.2.0
ipywidgets==7.6.5
jedi==0.18.1
Jinja2==3.0.3
jsonschema==4.3.2
jupyter-client==7.1.0
jupyter-core==4.9.1
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.2
MarkupSafe==2.0.1
matplotlib-inline==0.1.3
mistune==0.8.4
nbclient==0.5.9
nbconvert==6.3.0
nbformat==5.1.3
nest-asyncio==1.5.4
notebook==6.4.6
numpy==1.21.5
packaging==21.3
pandas==1.3.5
pandocfilters==1.5.0
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
Pillow==8.4.0
prometheus-client==0.12.0
prompt-toolkit==3.0.24
protobuf==3.19.1
ptyprocess==0.7.0
pyarrow==6.0.1
pycparser==2.21
pydeck==0.7.1
Pygments==2.11.0
Pympler==1.0.1
pyparsing==3.0.6
pyrsistent==0.18.0
python-dateutil==2.8.2
pytz==2021.3
pytz-deprecation-shim==0.1.0.post0
pyzmq==22.3.0
requests==2.26.0
Send2Trash==1.8.0
six==1.16.0
smmap==5.0.0
streamlit==1.3.1
terminado==0.12.1
testpath==0.5.0
toml==0.10.2
toolz==0.11.2
tornado==6.1
traitlets==5.1.1
typing_extensions==4.0.1
tzdata==2021.5
tzlocal==4.1
urllib3==1.26.7
validators==0.18.2
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.2
zipp==3.6.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.