load csv file into kusto datatable
Data upload procedure:
- The following Python packages are required --> pip install pandas azure-devops azure-kusto-data datetime
- Save CSV file in Windows desktop folder.
- Assign values to arguments cluster, database, and file_path.
- Run the script.
- Authentication is attempted with Azure CLI. If it fails, interactive login is attempted. authenticate in browser using correct work or personal browser profile.
- The Kusto datatable function name will be the folder {your user_id}_DataTables, and named "{CSV file_name}autoloaded_csv{your user_id})()".
- To drop the datatable function in kusto, execute this command --> ".drop function {function_name}".
- Function and Column names in Kusto datatable function will be cleaned to remove special characters and spaces.
- You will need to refresh the cluster/database in the Kusto IDE to see the new datatable function.