{
  "id": 360439,
  "title": "Visualization of a Rocket League game with Plotly.",
  "url": "/competitions/tabular-playground-series-oct-2022/discussion/360439",
  "author_name": "Radhouane Touj",
  "post_date": "2022-10-16T18:31:40.670000",
  "votes": 10,
  "comment_count": 0,
  "views": 0,
  "content": "<p>In the following <a href=\"https://www.kaggle.com/code/tawejssh/tps-october-2022-eda-lightgbm\" target=\"_blank\">notebook</a>, I wrote a function that plots an event from a given game: it plots the balls and players movement in a 3 dimensional visualization using plotly.</p>\n<p>The function name is <strong>plot_event</strong> and it takes as input data, game number and event id. I used it to plot all events of a chosen game. In a future version, the function may include the boost information and the the time range of a goal.</p>\n<p>If team A is going to score in the event. we'll visualize players 0, 1 and 2.<br>\nif it's team B, plot_event will show players 3, 4 and 5.<br>\nFinally, if the event finishes with no goal, all players will be visualized.</p>\n<p>The notebook also explains the importance of precising columns' dtypes when reading csv files and how much it impacts the memory usage.</p>\n<p>You can find more interesting Plotly based visualizations in this <a href=\"https://www.kaggle.com/code/tawejssh/data-jobs-analysis-plotly-tutorial\" target=\"_blank\">notebook</a>.</p>\n<p>I hope this will be helpful and I would be glad to get your feedback and suggestions.</p>",
  "messages": [
    {
      "id": 1990789,
      "postDate": "2022-10-16T18:31:40.670Z",
      "content": "<p>In the following <a href=\"https://www.kaggle.com/code/tawejssh/tps-october-2022-eda-lightgbm\" target=\"_blank\">notebook</a>, I wrote a function that plots an event from a given game: it plots the balls and players movement in a 3 dimensional visualization using plotly.</p>\n<p>The function name is <strong>plot_event</strong> and it takes as input data, game number and event id. I used it to plot all events of a chosen game. In a future version, the function may include the boost information and the the time range of a goal.</p>\n<p>If team A is going to score in the event. we'll visualize players 0, 1 and 2.<br>\nif it's team B, plot_event will show players 3, 4 and 5.<br>\nFinally, if the event finishes with no goal, all players will be visualized.</p>\n<p>The notebook also explains the importance of precising columns' dtypes when reading csv files and how much it impacts the memory usage.</p>\n<p>You can find more interesting Plotly based visualizations in this <a href=\"https://www.kaggle.com/code/tawejssh/data-jobs-analysis-plotly-tutorial\" target=\"_blank\">notebook</a>.</p>\n<p>I hope this will be helpful and I would be glad to get your feedback and suggestions.</p>",
      "rawMarkdown": "In the following [notebook](https://www.kaggle.com/code/tawejssh/tps-october-2022-eda-lightgbm), I wrote a function that plots an event from a given game: it plots the balls and players movement in a 3 dimensional visualization using plotly.\n\nThe function name is **plot_event** and it takes as input data, game number and event id. I used it to plot all events of a chosen game. In a future version, the function may include the boost information and the the time range of a goal.\n\nIf team A is going to score in the event. we'll visualize players 0, 1 and 2.\nif it's team B, plot_event will show players 3, 4 and 5.\nFinally, if the event finishes with no goal, all players will be visualized.\n\nThe notebook also explains the importance of precising columns' dtypes when reading csv files and how much it impacts the memory usage.\n\nYou can find more interesting Plotly based visualizations in this [notebook](https://www.kaggle.com/code/tawejssh/data-jobs-analysis-plotly-tutorial).\n\nI hope this will be helpful and I would be glad to get your feedback and suggestions.",
      "votes": 10
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1990789": "In the following [notebook](https://www.kaggle.com/code/tawejssh/tps-october-2022-eda-lightgbm), I wrote a function that plots an event from a given game: it plots the balls and players movement in a 3 dimensional visualization using plotly.\n\nThe function name is **plot_event** and it takes as input data, game number and event id. I used it to plot all events of a chosen game. In a future version, the function may include the boost information and the the time range of a goal.\n\nIf team A is going to score in the event. we'll visualize players 0, 1 and 2.\nif it's team B, plot_event will show players 3, 4 and 5.\nFinally, if the event finishes with no goal, all players will be visualized.\n\nThe notebook also explains the importance of precising columns' dtypes when reading csv files and how much it impacts the memory usage.\n\nYou can find more interesting Plotly based visualizations in this [notebook](https://www.kaggle.com/code/tawejssh/data-jobs-analysis-plotly-tutorial).\n\nI hope this will be helpful and I would be glad to get your feedback and suggestions."
  }
}