Skip to content

Commit c491a68

Browse files
committed
update readme
1 parent bad046b commit c491a68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ Or just vendor it, it's only a bunch of pure-Python files.
2929

3030
There are three steps to writing dataframe-agnostic code using Narwhals:
3131

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
3534
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
3736
dataframe flavour. For example:
3837

3938
- if you started with pandas, you'll get pandas back

0 commit comments

Comments
 (0)