在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:CermakM/jupyter-datatables开源软件地址:https://github.com/CermakM/jupyter-datatables开源编程语言:JavaScript 59.5%开源软件介绍:Jupyter DataTablesJupyter Notebook extension to leverage pandas DataFrames by integrating DataTables JS. AboutData scientists and in fact many developers work with What if those distribution plots were part of the standard DataFrame and we had the ability to quickly search through the table with minimal effort? What if it was the default representation? The jupyter-datatables uses jupyter-require to draw the table. Installationpip install jupyter-datatables Usageimport numpy as np
import pandas as pd
from jupyter_datatables import init_datatables_mode
init_datatables_mode() That's it, your default pandas representation will now use Jupyter DataTables! df = pd.DataFrame(np.abs(np.random.randn(50, 5)), columns=list(string.ascii_uppercase[:5])) In most cases, you don't need to worry too much about the size of your data. Jupyter DataTables calculates required sample size based on a confidence interval (by default this would be For example, for a data containing With additional note:
We can also handle wide tables with ease. df = pd.DataFrame(np.abs(np.random.randn(50, 20)), columns=list(string.ascii_uppercase[:20])) As per 0.3.0, there is a support for interactive tooltips: And also support for custom indices including dft = pd.DataFrame({'A': np.random.rand(5),
'B': [1, 1, 3, 2, 1],
'C': 'This is a very long sentence that should automatically be trimmed',
'D': [pd.Timestamp('20010101'), pd.Timestamp('20010102'), pd.Timestamp('20010103'), pd.Timestamp('20010104'), pd.Timestamp('20010105')],
'E': pd.Series([1.0] * 5).astype('float32'),
'F': [False, True, False, False, True],
})
dft.D = dft.D.apply(pd.to_datetime)
dft.set_index('D', inplace=True) Current status and future plans:Check out the Project Board where we track issues and TODOs for our Jupyter tooling!
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论