File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,10 @@ Or just vendor it, it's only a bunch of pure-Python files.
29
29
30
30
There are three steps to writing dataframe-agnostic code using Narwhals:
31
31
32
- 1 . use ` narwhals.translate_frame ` to wrap a pandas or Polars DataFrame to a Narwhals DataFrame
33
- 2 . (optional) use ` narwhals.get_namespace ` to get a namespace object
34
- 3 . use the subset of the Polars API defined in https://github.com/MarcoGorelli/narwhals/blob/main/narwhals/spec/__init__.py .
32
+ 1 . use ` narwhals.DataFrame ` to wrap a pandas or Polars DataFrame to a Narwhals DataFrame
33
+ 2 . use the subset of the Polars API supported by Narwhals
35
34
Some methods are only available if you called ` narwhals.translate_frame ` with ` is_eager=True `
36
- 4 . use ` narwhals.to_native ` to return an object to the user in their original
35
+ 3 . use ` narwhals.to_native ` to return an object to the user in its original
37
36
dataframe flavour. For example:
38
37
39
38
- if you started with pandas, you'll get pandas back
You can’t perform that action at this time.
0 commit comments