This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set default user agent header | |
| options(HTTPUserAgent = sprintf( | |
| "R/%s R (%s)", | |
| getRversion(), | |
| paste( | |
| getRversion(), | |
| R.version["platform"], | |
| R.version["arch"], | |
| R.version["os"] | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import polars as pl | |
| # Making data frames ------------------------------------------ | |
| # with dictionary | |
| df = pl.DataFrame({ | |
| 'name': ['foo', 'bar', 'baz'], | |
| 'bar': [0, 1, 2], | |
| 'qux': [0.0, 1.0, 2.0] | |
| }) |