keplergl / keplergl/kepler.gl

[Bug] Loading dataframe is not working

Open
#2,322 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
Run the demo in jupyter notebook

import pandas as pd
import keplergl
df = pd.read_csv('hex_data.csv')
%run hex_config.py
w1 = keplergl.KeplerGl(height=400, data={'data_1': df}, config=config)
w1

**Expected behavior**
expected a map with hex information is shown
![image](https://github.com/keplergl/kepler.gl/assets/6743839/79912c3d-eca1-42c0-bc39-1bf1173de515)

**Screenshots**
But it shows nothing. If data={'data_1': df} is removed, a map can be displayed
![image](https://github.com/keplergl/kepler.gl/assets/6743839/cef5f796-b088-43ee-94bc-f0b7eede1172)

![image](https://github.com/keplergl/kepler.gl/assets/6743839/527f77d7-ebb9-450f-ba43-8421207fcd1b)

**Desktop (please complete the following information):**
- OS: Windows 10
- Browser: Chrome
- Version: 116

Contributor guide

No contributing guide indexed for this repository

Research direction

Run the provided Jupyter notebook reproduction with pandas data loaded and compare it with the version that omits data={'data_1': df}. Trace why the map does not render when the dataframe is supplied; done means the map displays the expected hex information with the dataframe loaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, pandas, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.