Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 2.58 KB

toward_pandas_1.0.md

File metadata and controls

48 lines (30 loc) · 2.58 KB

Source

Video by Marc Garcia

tl;dr

import fletcher as fr
import pandas as pd

df = pd.DataFrame({
    'str_column': fr.FletcherArray(['Test', None, 'Strings'])
})
df.info()

# <class 'pandas.core.frame.DataFrame'>
# # RangeIndex: 3 entries, 0 to 2
# # Data columns (total 1 columns):
# # str_column    2 non-null string
# # dtypes: string(1)
# # memory usage: 108.0 bytes

Afterword

  • Pandas'community recognize the current memory backend limitation and prepare for a switch to arrow in the futur, but you already can use Fletcher in your project 😲 .

  • Even if most of the API stay the same you better don't forgot to check for new features.

  • I got another nail the coffin to my use of inplace 😬.