markfairbanks / tidypolars

Tidy interface to polars
http://tidypolars.readthedocs.io
MIT License
343 stars 11 forks source link

Convert from polars/pandas to tibble #27

Closed markfairbanks closed 3 years ago

markfairbanks commented 3 years ago

We should be able to just call

import pandas as pd
pandas_df = pd.DataFrame({'x': range(3), 'y': range(3)})

import polars as pl
polars_df = pl.DataFrame({'x': range(3), 'y': range(3)})

tp.tibble(pandas_df)
tp.tibble(polars_df)