Repository: iris-hep/func_adl

Issue:
Add `as_awkward` and `as_pandas`, etc
These would do both `AsAwkwardArray` and `value` - just short hand to make it easier for the user.

Discussion:
codecov-commenter: # [Codecov](https://codecov.io/gh/iris-hep/func_adl/pull/106?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep) Report
> Merging [#106](https://codecov.io/gh/iris-hep/func_adl/pull/106?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep) (8ba1def) into [master](https://codecov.io/gh/iris-hep/func_adl/commit/9df94767c64bf0d6a4e5762f533f60756f248017?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep) (9df9476) will **increase** coverage by `0.00%`.
> The diff coverage is `100.00%`.

```diff
@@           Coverage Diff           @@
##           master     #106   +/-   ##
=======================================
  Coverage   97.25%   97.25%           
=======================================
  Files          13       13           
  Lines        1273     1277    +4     
=======================================
+ Hits         1238     1242    +4     
  Misses         35       35           
```

| Flag | Coverage Δ | |
|---|---|---|
| unittests | `97.25% <100.00%> (+<0.01%)` | :arrow_up: |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep#carryforward-flags-in-the-pull-request-comment) to find out more.

| [Impacted Files](https://codecov.io/gh/iris-hep/func_adl/pull/106?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep) | Coverage Δ | |
|---|---|---|
| [func\_adl/object\_stream.py](https://codecov.io/gh/iris-hep/func_adl/pull/106/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep#diff-ZnVuY19hZGwvb2JqZWN0X3N0cmVhbS5weQ==) | `98.93% <100.00%> (+0.04%)` | :arrow_up: |

Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=iris-hep)


Patch:
diff --git a/func_adl/object_stream.py b/func_adl/object_stream.py
index 7c7ee4c..f25cec0 100644
--- a/func_adl/object_stream.py
+++ b/func_adl/object_stream.py
@@ -238,6 +238,8 @@ class ObjectStream(Generic[T]):
             function_call("ResultPandasDF", [self._q_ast, as_ast(columns)])
         )
 
+    as_pandas = AsPandasDF
+
     def AsROOTTTree(
         self, filename: str, treename: str, columns: Union[str, List[str]] = []
     ) -> ObjectStream[ReturnedDataPlaceHolder]:
@@ -274,6 +276,8 @@ class ObjectStream(Generic[T]):
             )
         )
 
+    as_ROOT_tree = AsROOTTTree
+
     def AsParquetFiles(
         self, filename: str, columns: Union[str, List[str]] = []
     ) -> ObjectStream[ReturnedDataPlaceHolder]:
@@ -310,6 +314,8 @@ class ObjectStream(Generic[T]):
             function_call("ResultParquet", [self._q_ast, as_ast(columns), as_ast(filename)])
         )
 
+    as_parquet = AsParquetFiles
+
     def AsAwkwardArray(
         self, columns: Union[str, List[str]] = []
     ) -> ObjectStream[ReturnedDataPlaceHolder]:
@@ -333,6 +339,8 @@ class ObjectStream(Generic[T]):
             function_call("ResultAwkwardArray", [self._q_ast, as_ast(columns)])
         )
 
+    as_awkward = AsAwkwardArray
+
     def _get_executor(
         self, executor: Optional[Callable[[ast.AST, Optional[str]], Awaitable[Any]]] = None
     ) -> Callable[[ast.AST, Optional[str]], Awaitable[Any]]:


Test patch:
diff --git a/tests/test_object_stream.py b/tests/test_object_stream.py
index 2fae533..f418451 100644
--- a/tests/test_object_stream.py
+++ b/tests/test_object_stream.py
@@ -193,6 +193,17 @@ def test_simple_query_awkward():
     assert isinstance(r, ast.AST)
 
 
+def test_simple_query_as_awkward():
+    r = (
+        my_event()
+        .SelectMany("lambda e: e.jets()")
+        .Select("lambda j: j.pT()")
+        .as_awkward(["analysis", "jetPT"])
+        .value()
+    )
+    assert isinstance(r, ast.AST)
+
+
 def test_two_similar_query_awkward():
     r1 = (
         my_event()