The main goal of this release is to make sure that `AsParquetFiles` has the right semantics and is compatible with the `uproot` transformer.
As `servicex` moves towards having more backend file flexibility, this interface may change (and generate some depreciated warnings). Note that best practices (which allows for most flexibility) is to rewrite something like this:
python
import pandas as pd
from func_adl_servicex import ServiceXSourceUpROOT
dataset_name = "data15_13TeV:data15_13TeV.00282784.physics_Main.deriv.DAOD_PHYSLITE.r9264_p3083_p4165_tid21568807_00"
src = ServiceXSourceUpROOT(dataset_name, "CollectionTree")
data = src.Select("lambda e: e['AnalysisJetsAuxDyn.pt']") \
.AsParquetFiles('junk.parquet', ['JetPT']) \
.value()
df = pd.read_parquet(data[0])
print(df)
as this:
python
import pandas as pd
from func_adl_servicex import ServiceXSourceUpROOT
dataset_name = "data15_13TeV:data15_13TeV.00282784.physics_Main.deriv.DAOD_PHYSLITE.r9264_p3083_p4165_tid21568807_00"
src = ServiceXSourceUpROOT(dataset_name, "CollectionTree")
data = src.Select("lambda e: {'JetPT': e['AnalysisJetsAuxDyn.pt']}") \
.AsParquetFiles('junk.parquet') \
.value()
df = pd.read_parquet(data[0])
print(df)
In short - use dictionaries in your query to label the columns that come back.
What's Changed
* Fix markdown syntax in readme by klieret in https://github.com/iris-hep/func_adl_servicex/pull/48
* Make sure AsParquetFiles works correctly with uproot by gordonwatts in https://github.com/iris-hep/func_adl_servicex/pull/53
* Unclear sentence in readme by gordonwatts in https://github.com/iris-hep/func_adl_servicex/pull/54
New Contributors
* klieret made their first contribution in https://github.com/iris-hep/func_adl_servicex/pull/48
**Full Changelog**: https://github.com/iris-hep/func_adl_servicex/compare/2.0...2.1