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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pandas", | |
| # "torch", | |
| # "torchvision", | |
| # "scikit-learn" | |
| # ] | |
| # /// |
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
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "faker", | |
| # ] | |
| # /// | |
| import random | |
| from typing impot Tuple |
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
| # /// script | |
| # requires-python = ">=3.11" | |
| # dependencies = [ | |
| # "pandas", | |
| # "faker" | |
| # ] | |
| # /// | |
| # from duckdb.experimental.spark.sql import SparkSession | |
| import pandas as pd |
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
| from typing import Any, List, Union | |
| from pyspark.sql import DataFrame | |
| from pyspark.sql.column import Column, _to_java_column | |
| def hint(self, name: str, *parameters: Union[str, int, List[Union[int, str]]]) -> DataFrame: | |
| """ | |
| Patches method from :class:`DataFrame`. | |
| Reference: https://github.com/apache/spark/pull/37616 | |
| """ |
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 io | |
| import os | |
| import pickle | |
| import sys, argparse | |
| from googleapiclient.discovery import build | |
| from google.auth.transport.requests import Request | |
| from googleapiclient.http import MediaIoBaseDownload | |
| from google_auth_oauthlib.flow import InstalledAppFlow | |
| # If modifying these scopes, delete the file token.pickle. |