1.1.1 • Published 4 years ago
react-pandas-table v1.1.1
react-pandas-table
A library designed to render Python Pandas tables in a React environment.
Install
npm install --save react-pandas-table
Example Usage
import React from 'react'
import { BasicTable } from 'react-pandas-table'
const ExampleComponent = () => {
return (
<BasicTable
data={exampleData}
includeIndexCol={false}
reformatCols={[
{
col: 'Exmaple Date Col',
type: 'date',
locale: 'en-GB',
params: {
year: 'numeric',
month: 'long',
day: 'numeric'
}
},
{
col: 'Example Currency Col',
type: 'number',
locale: 'en-GB',
params: {
style: 'currency',
currency: 'EUR'
}
},
{
col: 'Example Percentage Col',
type: 'number',
locale: 'en-GB',
params: {
style: 'percent',
minimumFractionDigits: 2
}
}
]}
total={['Example Currency Col', 'Example Percentage Col']}
headerStyles={{
backgroundColor: '#000000',
color: '#FFFFFF',
padding: 10
}}
cellStyles={{
backgroundColor: '#F3F4F6',
color: '#000000',
padding: 10
}}
/>
)
}
License
MIT © finnmaguire1998
1.1.1
4 years ago
1.1.0
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.2.7
4 years ago
0.2.6
4 years ago
0.2.5
4 years ago
0.2.4
4 years ago
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago